@vixt/uni 0.5.10 → 0.5.12
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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +15 -1
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -94,7 +94,9 @@ declare const uniPatch: (options?: any) => vite.PluginOption;
|
|
|
94
94
|
|
|
95
95
|
declare function uniVueUseResolver(): ImportsMap;
|
|
96
96
|
|
|
97
|
+
declare function genarateVirtualUniPagesTypes(vixt: Vixt): void;
|
|
98
|
+
|
|
97
99
|
declare const _default: (options?: _vixt_core.VixtOptions | undefined) => vite.PluginOption;
|
|
98
100
|
|
|
99
|
-
export { appUni, _default as default, generateMainTs, patchAdjustCssExtname, patchNormalizeNodeModules, patchUniComponents, patchUnocssGlobalBuildScan, presetUni, transformH5Runtime, transformMpRuntime, uniModules, uniPatch, uniVueUseResolver };
|
|
101
|
+
export { appUni, _default as default, genarateVirtualUniPagesTypes, generateMainTs, patchAdjustCssExtname, patchNormalizeNodeModules, patchUniComponents, patchUnocssGlobalBuildScan, presetUni, transformH5Runtime, transformMpRuntime, uniModules, uniPatch, uniVueUseResolver };
|
|
100
102
|
export type { ModuleOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -94,7 +94,9 @@ declare const uniPatch: (options?: any) => vite.PluginOption;
|
|
|
94
94
|
|
|
95
95
|
declare function uniVueUseResolver(): ImportsMap;
|
|
96
96
|
|
|
97
|
+
declare function genarateVirtualUniPagesTypes(vixt: Vixt): void;
|
|
98
|
+
|
|
97
99
|
declare const _default: (options?: _vixt_core.VixtOptions | undefined) => vite.PluginOption;
|
|
98
100
|
|
|
99
|
-
export { appUni, _default as default, generateMainTs, patchAdjustCssExtname, patchNormalizeNodeModules, patchUniComponents, patchUnocssGlobalBuildScan, presetUni, transformH5Runtime, transformMpRuntime, uniModules, uniPatch, uniVueUseResolver };
|
|
101
|
+
export { appUni, _default as default, genarateVirtualUniPagesTypes, generateMainTs, patchAdjustCssExtname, patchNormalizeNodeModules, patchUniComponents, patchUnocssGlobalBuildScan, presetUni, transformH5Runtime, transformMpRuntime, uniModules, uniPatch, uniVueUseResolver };
|
|
100
102
|
export type { ModuleOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -218,6 +218,19 @@ function uniVueUseResolver() {
|
|
|
218
218
|
return _cache || {};
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
function genarateVirtualUniPagesTypes(vixt) {
|
|
222
|
+
const { buildTypesDir } = vixt.options;
|
|
223
|
+
const codePath = path.resolve(buildTypesDir, "virtual-uni-pages.d.ts");
|
|
224
|
+
const code = `declare module 'virtual:uni-pages' {
|
|
225
|
+
import type { PageMetaDatum, SubPackage } from '@uni-helper/vite-plugin-uni-pages'
|
|
226
|
+
|
|
227
|
+
export const pages: PageMetaDatum[]
|
|
228
|
+
export const subPackages: SubPackage[]
|
|
229
|
+
}
|
|
230
|
+
`;
|
|
231
|
+
fs.outputFileSync(codePath, code);
|
|
232
|
+
}
|
|
233
|
+
|
|
221
234
|
const name$1 = "vixt:preset-uni";
|
|
222
235
|
const presetUni = defineVixtModule({
|
|
223
236
|
meta: { name: name$1 },
|
|
@@ -243,6 +256,7 @@ const presetUni = defineVixtModule({
|
|
|
243
256
|
unocss: {}
|
|
244
257
|
};
|
|
245
258
|
const options = vixt.options = defu(vixt.options, defaultOptions);
|
|
259
|
+
genarateVirtualUniPagesTypes(vixt);
|
|
246
260
|
const modules = [
|
|
247
261
|
Pages(options.uniPages),
|
|
248
262
|
Layouts(options.uniLayouts),
|
|
@@ -320,4 +334,4 @@ const defaults = {
|
|
|
320
334
|
};
|
|
321
335
|
const index = createVixtPlugin({ defaults });
|
|
322
336
|
|
|
323
|
-
export { appUni, index as default, generateMainTs, patchAdjustCssExtname, patchNormalizeNodeModules, patchUniComponents, patchUnocssGlobalBuildScan, presetUni, transformH5Runtime, transformMpRuntime, uniModules, uniPatch, uniVueUseResolver };
|
|
337
|
+
export { appUni, index as default, genarateVirtualUniPagesTypes, generateMainTs, patchAdjustCssExtname, patchNormalizeNodeModules, patchUniComponents, patchUnocssGlobalBuildScan, presetUni, transformH5Runtime, transformMpRuntime, uniModules, uniPatch, uniVueUseResolver };
|
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.12",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://soullyoko.github.io/vixt/",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@dcloudio/types": "^3.4.19",
|
|
29
29
|
"@uni-helper/uni-app-types": "^1.0.0-alpha.6",
|
|
30
|
-
"@uni-helper/uni-use": "^0.19.
|
|
30
|
+
"@uni-helper/uni-use": "^0.19.15",
|
|
31
31
|
"@uni-helper/unocss-preset-uni": "^0.2.11",
|
|
32
|
-
"@uni-helper/vite-plugin-uni-components": "^0.2.
|
|
32
|
+
"@uni-helper/vite-plugin-uni-components": "^0.2.3",
|
|
33
33
|
"@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
|
|
34
|
-
"@uni-helper/vite-plugin-uni-pages": "^0.3.
|
|
34
|
+
"@uni-helper/vite-plugin-uni-pages": "^0.3.19",
|
|
35
35
|
"unocss-applet": "^0.11.0",
|
|
36
|
-
"@vixt/core": "0.5.
|
|
37
|
-
"@vixt/vue": "0.5.
|
|
36
|
+
"@vixt/core": "0.5.12",
|
|
37
|
+
"@vixt/vue": "0.5.12"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "unbuild",
|