refactor: hide script entrypoint helpers

This commit is contained in:
Peter Steinberger
2026-05-02 08:38:07 +01:00
parent 8731820ba2
commit 097c0de8e6
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ type SourceFileCollectionOptions = {
shouldSkipRepoPath?: (repoPath: string) => boolean;
};
export function normalizeRepoPath(filePath: string, repoRoot: string): string {
function normalizeRepoPath(filePath: string, repoRoot: string): string {
return path.relative(repoRoot, filePath).split(path.sep).join("/");
}

View File

@@ -184,7 +184,7 @@ function parseRunArgs(argv) {
};
}
export function main(argv = process.argv.slice(2)) {
function main(argv = process.argv.slice(2)) {
const { packageDir, command, args } = parseRunArgs(argv);
return withAugmentedPluginNpmManifestForPackage({ packageDir }, ({ packageDir: cwd }) => {
const result = spawnSync(command, args, {