mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
refactor: hide script entrypoint helpers
This commit is contained in:
@@ -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("/");
|
||||
}
|
||||
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user