@vixt/core 0.1.20 → 0.1.22

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/index.mjs +4 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -68,9 +68,11 @@ function resolveLayersDirs(layers = [], config) {
68
68
  const { srcDirName } = config;
69
69
  const dirs = {};
70
70
  for (const layer of layers) {
71
- const contents = fs.readdirSync(path.resolve(layer.cwd, srcDirName));
71
+ const srcPath = path.resolve(layer.cwd, srcDirName);
72
+ const isExist = fs.existsSync(srcPath);
73
+ const contents = isExist ? fs.readdirSync(srcPath) : [];
72
74
  for (const content of contents) {
73
- const fileOrDirPath = path.resolve(layer.cwd, srcDirName, content);
75
+ const fileOrDirPath = path.resolve(srcPath, content);
74
76
  if (fs.statSync(fileOrDirPath).isDirectory()) {
75
77
  dirs[content] ?? (dirs[content] = []);
76
78
  dirs[content].push(fileOrDirPath);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.1.20",
4
+ "version": "0.1.22",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -36,7 +36,7 @@
36
36
  "pathe": "^1.1.2",
37
37
  "pkg-types": "^1.2.1",
38
38
  "tsx": "^4.19.1",
39
- "vite": "^5.4.9",
39
+ "vite": "^5.4.10",
40
40
  "vite-plugin-checker": "^0.8.0",
41
41
  "vue-tsc": "2.1.6"
42
42
  },