@vixt/core 0.7.2 → 0.7.4

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.
@@ -91,6 +91,12 @@ function applyLayers({ config, layers = [] }) {
91
91
  } });
92
92
  layer.cwd = newCwd;
93
93
  }
94
+ if (isSamePath(layer.cwd, resolve(rootDir))) {
95
+ layer.config.rootDir ??= config.rootDir;
96
+ layer.config.srcDir ??= config.srcDir;
97
+ layer.config.modulesDir ??= config.modulesDir;
98
+ layer.config.pluginsDir ??= config.pluginsDir;
99
+ }
94
100
  layer.config.rootDir ??= layer.cwd;
95
101
  layer.config.srcDir ??= resolve(layer.config.rootDir, "src");
96
102
  layer.config.modulesDir ??= resolve(layer.config.srcDir, "modules");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.7.2",
4
+ "version": "0.7.4",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",