@vixt/uni 0.1.28 → 0.1.30
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 +5 -4
package/dist/index.mjs
CHANGED
|
@@ -16,11 +16,11 @@ import { uniuseAutoImports } from '@uni-helper/uni-use';
|
|
|
16
16
|
import { resolveModule } from 'local-pkg';
|
|
17
17
|
|
|
18
18
|
function generateMainTs(options, vixt) {
|
|
19
|
-
const { buildDir,
|
|
19
|
+
const { buildDir, srcDir } = vixt.options;
|
|
20
20
|
const mainTsPath = path.resolve(srcDir, "main.ts");
|
|
21
21
|
if (!fs.existsSync(mainTsPath))
|
|
22
22
|
fs.outputFileSync(mainTsPath, `// Generated by Vixt
|
|
23
|
-
// This file transform from '${
|
|
23
|
+
// This file transform from '${path.basename(buildDir)}/main.ts'
|
|
24
24
|
`);
|
|
25
25
|
const appComponentTemplate = genarateAppComponent(vixt);
|
|
26
26
|
const cssTemplate = generateCss(options);
|
|
@@ -107,7 +107,7 @@ const name = "vixt:preset-uni";
|
|
|
107
107
|
const presetUni = defineVixtModule({
|
|
108
108
|
meta: { name },
|
|
109
109
|
setup(_, vixt) {
|
|
110
|
-
const { components, composables = [], constants = [], utils = [], stores = [] } = resolveLayersDirs(vixt._layers
|
|
110
|
+
const { components, composables = [], constants = [], utils = [], stores = [] } = resolveLayersDirs(vixt._layers);
|
|
111
111
|
const { buildTypesDir, buildImportsDir } = vixt.options;
|
|
112
112
|
const defaultOptions = {
|
|
113
113
|
uni: {},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vixt/uni",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.30",
|
|
5
5
|
"author": "SoulLyoko<https://github.com/SoulLyoko>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/SoulLyoko/vixt#readme",
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"@dcloudio/types": "^3.4.14",
|
|
22
22
|
"@uni-helper/uni-app-types": "^1.0.0-alpha.6",
|
|
23
23
|
"@uni-helper/uni-use": "^0.19.14",
|
|
24
|
-
"@uni-helper/unocss-preset-uni": "^0.2.
|
|
24
|
+
"@uni-helper/unocss-preset-uni": "^0.2.11",
|
|
25
25
|
"@uni-helper/vite-plugin-uni-components": "^0.2.0",
|
|
26
26
|
"@uni-helper/vite-plugin-uni-layouts": "^0.1.10",
|
|
27
27
|
"@uni-helper/vite-plugin-uni-pages": "^0.2.28",
|
|
28
|
-
"
|
|
29
|
-
"@vixt/
|
|
28
|
+
"unocss-applet": "^0.9.0",
|
|
29
|
+
"@vixt/vue": "0.1.30",
|
|
30
|
+
"@vixt/core": "0.1.30"
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
33
|
"build": "unbuild"
|