Comparing version
#!/usr/bin/env node | ||
export declare function run(context: string, relativeProjectPath: string, sourcePackages: string[]): void; | ||
export declare function run(context: string, relativeProjectPath: string, sourcePackagesFilter: string[]): void; | ||
//# sourceMappingURL=copypack.d.ts.map |
@@ -5,6 +5,9 @@ #!/usr/bin/env node | ||
import path from "node:path"; | ||
export function run(context, relativeProjectPath, sourcePackages) { | ||
export function run(context, relativeProjectPath, sourcePackagesFilter) { | ||
const targetProjectPath = path.join(context, relativeProjectPath); | ||
const targetNodeModulesPath = validateProjectNoduleModules(targetProjectPath); | ||
const packageJsonPaths = ts.sys.readDirectory(context, undefined, undefined, sourcePackages); | ||
const packageJsonPaths = ts.sys.readDirectory(context, undefined, undefined, sourcePackagesFilter); | ||
if (packageJsonPaths.length === 0) { | ||
throw new Error(`No package.json files found for the given pattern [${sourcePackagesFilter}]`); | ||
} | ||
for (const filePath of packageJsonPaths) { | ||
@@ -11,0 +14,0 @@ try { |
{ | ||
"name": "copypack", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "like links but copies", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25149
1.12%310
0.98%