@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.
@@ -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 ?? []);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.4.4",
4
+ "version": "0.4.5",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",