@vixt/core 0.4.4 → 0.4.5
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/dist/node/index.mjs +1 -2
- package/package.json +1 -1
package/dist/node/index.mjs
CHANGED
|
@@ -38,6 +38,7 @@ function applyLayers(layers, config) {
|
|
|
38
38
|
}
|
|
39
39
|
if (layer.cwd?.includes("node_modules")) {
|
|
40
40
|
const newCwd = resolve(buildLayersDir, layerName);
|
|
41
|
+
fs.removeSync(newCwd);
|
|
41
42
|
fs.copySync(layer.cwd, newCwd, {
|
|
42
43
|
filter: (src) => {
|
|
43
44
|
const nodeModulesPath = resolve(layer.cwd, "node_modules");
|
|
@@ -443,8 +444,6 @@ async function loadVixt(opts) {
|
|
|
443
444
|
const isForce = !!parsedArgv.options.force;
|
|
444
445
|
if (isForce) {
|
|
445
446
|
fs.removeSync(result.config.buildDir);
|
|
446
|
-
} else {
|
|
447
|
-
fs.removeSync(result.config.buildLayersDir);
|
|
448
447
|
}
|
|
449
448
|
result.layers = applyLayers(result.layers ?? [], result.config);
|
|
450
449
|
const layerModules = await applyLayerModules(result.layers ?? []);
|