@vixt/uni 0.3.0 → 0.3.2

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 +3 -3
package/dist/index.mjs CHANGED
@@ -157,7 +157,9 @@ function copyUniModules(_, vixt) {
157
157
  }).forEach((dir) => {
158
158
  const srcPath = path$1.join(uniModulesPath, dir);
159
159
  const destPath = path$1.join(srcUniModulesPath, dir);
160
- if (fs.statSync(srcPath).isDirectory() && srcPath !== destPath) {
160
+ const srcPkgVersion = fs.readJSONSync(path$1.join(srcPath, "package.json"), { throws: false })?.version;
161
+ const destPkgVersion = fs.readJSONSync(path$1.join(destPath, "package.json"), { throws: false })?.version;
162
+ if (srcPath !== destPath && srcPkgVersion !== destPkgVersion) {
161
163
  fs.removeSync(destPath);
162
164
  fs.copySync(srcPath, destPath);
163
165
  fs.writeFileSync(path$1.join(destPath, ".gitignore"), "*", "utf-8");
@@ -238,7 +240,7 @@ function useImports() {
238
240
  }
239
241
 
240
242
  const defaults = {
241
- modules: [appUni, uniModules, presetUni],
243
+ modules: [uniModules, appUni, presetUni],
242
244
  typescript: {
243
245
  tsConfig: {
244
246
  compilerOptions: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
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.0",
30
- "@vixt/vue": "0.3.0"
29
+ "@vixt/core": "0.3.2",
30
+ "@vixt/vue": "0.3.2"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "unbuild"