@vixt/uni 0.5.8 → 0.5.9
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.
- package/dist/index.mjs +3 -2
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateClient, generateCss, generateAppConfig, generatePlugins, defineVixtModule, generateIndexHtml, defineVitePlugin, resolveLayersDirs, createVixtPlugin } from '@vixt/core';
|
|
1
|
+
import { generateClient, generateCss, generateAppConfig, generatePlugins, defineVixtModule, generateIndexHtml, defineVitePlugin, resolveLayersDirs, isSamePath, createVixtPlugin } from '@vixt/core';
|
|
2
2
|
import path from 'pathe';
|
|
3
3
|
import { genarateAppComponent } from '@vixt/vue';
|
|
4
4
|
import fs from 'fs-extra';
|
|
@@ -274,6 +274,7 @@ function copyUniModules(options, vixt) {
|
|
|
274
274
|
const destPath = path.join(srcUniModulesPath, dir);
|
|
275
275
|
if (srcPath !== destPath) {
|
|
276
276
|
try {
|
|
277
|
+
fs.removeSync(destPath);
|
|
277
278
|
fs.copySync(srcPath, destPath);
|
|
278
279
|
fs.writeFileSync(path.join(destPath, ".gitignore"), "*", "utf-8");
|
|
279
280
|
} catch (e) {
|
|
@@ -292,7 +293,7 @@ const uniModules = defineVixtModule({
|
|
|
292
293
|
return {
|
|
293
294
|
name,
|
|
294
295
|
configureServer(server) {
|
|
295
|
-
const { uni_modules = [] } = resolveLayersDirs(vixt._layers);
|
|
296
|
+
const { uni_modules = [] } = resolveLayersDirs(vixt._layers.filter((e) => !isSamePath(e.cwd, vixt.options.rootDir)));
|
|
296
297
|
server.watcher.add(uni_modules);
|
|
297
298
|
server.watcher.on("all", (_, file) => {
|
|
298
299
|
const match = uni_modules.some((e) => path.normalize(file).match(e));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/uni",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.9",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dcloudio/types": "^3.4.
|
|
28
|
+
"@dcloudio/types": "^3.4.19",
|
|
29
29
|
"@uni-helper/uni-app-types": "^1.0.0-alpha.6",
|
|
30
30
|
"@uni-helper/uni-use": "^0.19.14",
|
|
31
31
|
"@uni-helper/unocss-preset-uni": "^0.2.11",
|
|
32
32
|
"@uni-helper/vite-plugin-uni-components": "^0.2.0",
|
|
33
|
-
"@uni-helper/vite-plugin-uni-layouts": "^0.1.
|
|
34
|
-
"@uni-helper/vite-plugin-uni-pages": "^0.2
|
|
35
|
-
"unocss-applet": "^0.
|
|
36
|
-
"@vixt/
|
|
37
|
-
"@vixt/
|
|
33
|
+
"@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
|
|
34
|
+
"@uni-helper/vite-plugin-uni-pages": "^0.3.2",
|
|
35
|
+
"unocss-applet": "^0.11.0",
|
|
36
|
+
"@vixt/vue": "0.5.9",
|
|
37
|
+
"@vixt/core": "0.5.9"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "unbuild",
|