@vixt/core 0.6.7 → 0.7.0

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.
Files changed (2) hide show
  1. package/dist/node/index.mjs +10 -13
  2. package/package.json +4 -4
@@ -74,22 +74,13 @@ async function loadVixtConfig(opts) {
74
74
  return result;
75
75
  }
76
76
  function applyLayers(layers, config) {
77
- const { rootDir, buildLayersDir } = config;
77
+ const { rootDir } = config;
78
78
  return layers.filter((e) => e.cwd).map((layer) => {
79
- const meta = layer.config?.meta ?? {};
79
+ layer.config ??= {};
80
+ layer.config.meta ??= {};
81
+ const meta = layer.config.meta;
80
82
  const layerName = meta.name || layer.cwd.split("/").pop();
81
83
  if (!isSamePath(layer.cwd, resolve(rootDir))) meta.alias = `#/layers/${layerName}`;
82
- if (layer.cwd?.includes("node_modules")) {
83
- const newCwd = resolve(buildLayersDir, layerName);
84
- fs.removeSync(newCwd);
85
- fs.copySync(layer.cwd, newCwd, { filter: (src) => {
86
- const nodeModulesPath = resolve(layer.cwd, "node_modules");
87
- const tsConfigPath = resolve(layer.cwd, "tsconfig.json");
88
- return !isSamePath(src, nodeModulesPath) && !isSamePath(src, tsConfigPath);
89
- } });
90
- layer.cwd = newCwd;
91
- }
92
- layer.config ??= {};
93
84
  layer.config.rootDir ??= layer.cwd;
94
85
  layer.config.srcDir ??= resolve(layer.config.rootDir, "src");
95
86
  layer.config.modulesDir ??= resolve(layer.config.srcDir, "modules");
@@ -585,6 +576,12 @@ var vite_default = defineVixtModule({
585
576
  base: app?.baseURL,
586
577
  define: defineEnv
587
578
  });
579
+ },
580
+ configResolved(config) {
581
+ Object.assign(config.env, {
582
+ ...env$1,
583
+ ...config.env
584
+ });
588
585
  }
589
586
  };
590
587
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.6.7",
4
+ "version": "0.7.0",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -28,8 +28,8 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@types/fs-extra": "^11.0.4",
31
- "@vitejs/plugin-basic-ssl": "^2.1.0",
32
- "@vitejs/plugin-legacy": "^7.2.1",
31
+ "@vitejs/plugin-basic-ssl": "^2.1.3",
32
+ "@vitejs/plugin-legacy": "^8.0.0-beta.0",
33
33
  "@vue/tsconfig": "^0.8.1",
34
34
  "c12": "^3.3.3",
35
35
  "cac": "^6.7.14",
@@ -41,7 +41,7 @@
41
41
  "mlly": "^1.8.0",
42
42
  "pathe": "^2.0.3",
43
43
  "pkg-types": "^2.3.0",
44
- "vite": "^7.3.0",
44
+ "vite": "^7.3.1",
45
45
  "vite-bundle-analyzer": "^1.3.2",
46
46
  "vite-plugin-checker": "^0.12.0"
47
47
  }