@vixt/uni 0.7.3 → 0.8.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.
- package/dist/index.mjs +3 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ function patchNormalizeNodeModules() {
|
|
|
45
45
|
const matched = `str = normalizePath(str).replace(NODE_MODULES_REGEX, 'node-modules');`;
|
|
46
46
|
const replaced = `str = normalizePath(str).replace(NODE_MODULES_REGEX, 'node-modules').replace(/\\.\\.\\//g, '');`;
|
|
47
47
|
const codePath = resolvePathSync("@dcloudio/uni-cli-shared/dist/utils.js");
|
|
48
|
-
let code = fs.readFileSync(codePath, "
|
|
48
|
+
let code = fs.readFileSync(codePath, "utf-8");
|
|
49
49
|
if (code.includes(matched)) {
|
|
50
50
|
code = code.replace(matched, replaced);
|
|
51
51
|
fs.writeFileSync(codePath, code);
|
|
@@ -150,8 +150,8 @@ function uniVueUseResolver() {
|
|
|
150
150
|
let indexesJson;
|
|
151
151
|
try {
|
|
152
152
|
const corePath = resolveModule("@vueuse/core") || process.cwd();
|
|
153
|
-
const path
|
|
154
|
-
indexesJson = JSON.parse(readFileSync(path
|
|
153
|
+
const path = resolveModule("@vueuse/core/indexes.json") || resolveModule("@vueuse/metadata/index.json") || resolveModule("@vueuse/metadata/index.json", { paths: [corePath] });
|
|
154
|
+
indexesJson = JSON.parse(readFileSync(path, "utf-8"));
|
|
155
155
|
} catch (error) {
|
|
156
156
|
console.error(error);
|
|
157
157
|
throw new Error("[auto-import] failed to load @vueuse/core, have you installed it?");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/uni",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
|
|
34
34
|
"@uni-helper/vite-plugin-uni-pages": "^0.3.23",
|
|
35
35
|
"unocss-applet": "^0.12.2",
|
|
36
|
-
"@vixt/vue": "0.
|
|
37
|
-
"@vixt/core": "0.
|
|
36
|
+
"@vixt/vue": "0.8.0",
|
|
37
|
+
"@vixt/core": "0.8.0"
|
|
38
38
|
}
|
|
39
39
|
}
|