Comparing version 1.1.0 to 1.1.1
@@ -31,3 +31,3 @@ #!/usr/bin/env node | ||
} | ||
run(resolve(source), resolve(target), matchers); | ||
run(resolve(source), resolve(target), matchers, forceCopy); | ||
if (watchMode) { | ||
@@ -34,0 +34,0 @@ watch(resolve(source), resolve(target), matchers); |
@@ -49,3 +49,10 @@ import ts from "typescript"; | ||
reportPackageDependencyChanges(targetPackageJsonPath, pkg); | ||
fs.rmSync(targetPackagePath, { recursive: true }); | ||
try { | ||
fs.rmSync(targetPackagePath, { recursive: true }); | ||
} | ||
catch (e) { | ||
if (!forceCopy) { | ||
throw e; | ||
} | ||
} | ||
fs.mkdirSync(targetPackagePath, { recursive: true }); | ||
@@ -52,0 +59,0 @@ fs.cpSync(currentPackageDirPath, targetPackagePath, { |
{ | ||
"name": "copypack", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "like links but copies", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -50,3 +50,3 @@ #!/usr/bin/env node | ||
run(resolve(source), resolve(target), matchers); | ||
run(resolve(source), resolve(target), matchers, forceCopy); | ||
@@ -53,0 +53,0 @@ if (watchMode) { |
@@ -77,3 +77,9 @@ import ts from "typescript"; | ||
reportPackageDependencyChanges(targetPackageJsonPath, pkg); | ||
fs.rmSync(targetPackagePath, { recursive: true }); | ||
try { | ||
fs.rmSync(targetPackagePath, { recursive: true }); | ||
} catch (e) { | ||
if (!forceCopy) { | ||
throw e; | ||
} | ||
} | ||
fs.mkdirSync(targetPackagePath, { recursive: true }); | ||
@@ -80,0 +86,0 @@ fs.cpSync(currentPackageDirPath, targetPackagePath, { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49431
817