@nu-art/build-and-install 0.204.56 → 0.204.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/phases/phases.js +1 -1
package/package.json
CHANGED
package/phases/phases.js
CHANGED
|
@@ -463,7 +463,7 @@ exports.Phase_Compile = {
|
|
|
463
463
|
const packages = consts_1.MemKey_Packages.get();
|
|
464
464
|
if (pkg.type === 'sourceless' || pkg.type === types_1.PackageType_Python)
|
|
465
465
|
return;
|
|
466
|
-
if (fs.existsSync(pkg.output)) {
|
|
466
|
+
if (params_1.RuntimeParams.clean && fs.existsSync(pkg.output)) {
|
|
467
467
|
await fs_1.promises.rm(pkg.output, { recursive: true, force: true });
|
|
468
468
|
await fs_1.promises.mkdir(pkg.output, { recursive: true });
|
|
469
469
|
}
|