MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / rewrite-esm-extensions.ts

File rewrite-esm-extensions.ts

packages/core/scripts/rewrite-esm-extensions.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { existsSync, readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
2import { dirname, extname, join, normalize, resolve } from "node:path";
3
4const distDir = resolve(import.meta.dirname, "../dist");

Callers

nothing calls this directly

Calls 4

resolveFunction · 0.85
listJavaScriptFilesFunction · 0.85
rewriteSpecifiersFunction · 0.85
normalizeFunction · 0.85

Tested by

no test coverage detected