@vixt/uni 0.3.4 → 0.3.6

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 +7 -2
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -158,8 +158,13 @@ function copyUniModules(options, vixt) {
158
158
  const srcPath = path.join(uniModulesPath, dir);
159
159
  const destPath = path.join(srcUniModulesPath, dir);
160
160
  if (srcPath !== destPath) {
161
- fs.copySync(srcPath, destPath);
162
- fs.writeFileSync(path.join(destPath, ".gitignore"), "*", "utf-8");
161
+ try {
162
+ fs.copySync(srcPath, destPath);
163
+ fs.writeFileSync(path.join(destPath, ".gitignore"), "*", "utf-8");
164
+ } catch (e) {
165
+ console.error(`Error copying ${srcPath} to ${destPath}:
166
+ `, e);
167
+ }
163
168
  }
164
169
  });
165
170
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
3
  "type": "module",
4
- "version": "0.3.4",
4
+ "version": "0.3.6",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -26,8 +26,8 @@
26
26
  "@uni-helper/vite-plugin-uni-layouts": "^0.1.10",
27
27
  "@uni-helper/vite-plugin-uni-pages": "^0.2.28",
28
28
  "unocss-applet": "^0.10.0",
29
- "@vixt/core": "0.3.4",
30
- "@vixt/vue": "0.3.4"
29
+ "@vixt/core": "0.3.6",
30
+ "@vixt/vue": "0.3.6"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "unbuild"