@vixt/uni 0.1.28 → 0.1.29

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 +3 -3
  2. package/package.json +4 -3
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, buildDirName, srcDir } = vixt.options;
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 '${buildDirName}/main.ts'
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, vixt.options);
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.28",
4
+ "version": "0.1.29",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/SoulLyoko/vixt#readme",
@@ -25,8 +25,9 @@
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
- "@vixt/vue": "0.1.28",
29
- "@vixt/core": "0.1.28"
28
+ "unocss-applet": "^0.9.0",
29
+ "@vixt/core": "0.1.29",
30
+ "@vixt/vue": "0.1.29"
30
31
  },
31
32
  "scripts": {
32
33
  "build": "unbuild"