Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/python/setuptools/setuptools/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  copy-hook-metadata.ts

  Sprache: JAVA
 

#!/usr/bin/env tsx
/**
 * Copy HOOK.md files from src/hooks/bundled to dist/bundled
 */


import fs from "node:fs";
import path from "node:path";
import { ensureDirectory, logVerboseCopy, resolveBuildCopyContext } from "./lib/copy-assets.ts";

const context = resolveBuildCopyContext(import.meta.url);

const srcBundled = path.join(context.projectRoot, "src""hooks""bundled");
const distBundled = path.join(context.projectRoot, "dist""bundled");

function copyHookMetadata() {
  if (!fs.existsSync(srcBundled)) {
    console.warn(`${context.prefix} Source directory not found:`, srcBundled);
    return;
  }

  ensureDirectory(distBundled);

  const entries = fs.readdirSync(srcBundled, { withFileTypes: true });
  let copiedCount = 0;

  for (const entry of entries) {
    if (!entry.isDirectory()) {
      continue;
    }

    const hookName = entry.name;
    const srcHookDir = path.join(srcBundled, hookName);
    const distHookDir = path.join(distBundled, hookName);
    const srcHookMd = path.join(srcHookDir, "HOOK.md");
    const distHookMd = path.join(distHookDir, "HOOK.md");

    if (!fs.existsSync(srcHookMd)) {
      console.warn(`${context.prefix} No HOOK.md found for ${hookName}`);
      continue;
    }

    ensureDirectory(distHookDir);

    fs.copyFileSync(srcHookMd, distHookMd);
    copiedCount += 1;
    logVerboseCopy(context, `Copied ${hookName}/HOOK.md`);
  }

  console.log(`${context.prefix} Copied ${copiedCount} hook metadata files.`);
}

copyHookMetadata();

Messung V0.5 in Prozent
C=98 H=97 G=97

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.