@vixt/uni 0.12.1 → 0.12.2

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.
@@ -1,6 +1,5 @@
1
1
  import { PageMetaDatum } from "@uni-helper/vite-plugin-uni-pages";
2
2
  import { App } from "vue";
3
-
4
3
  //#region src/client/client.d.ts
5
4
  interface UniVixtApp {
6
5
  /** Uni-app app instance */
@@ -1,5 +1,5 @@
1
+ import "virtual:vixt:css";
1
2
  import * as Pinia from "pinia";
2
-
3
3
  //#region src/client/entry.d.ts
4
4
  declare function createApp(): {
5
5
  app: import("vue").App<Element>;
@@ -1,5 +1,4 @@
1
1
  import { UniVixtOptions } from "./node.mjs";
2
-
3
2
  //#region src/node/index.d.ts
4
3
  /** @hidden */
5
4
  declare const _default: (options?: import("@vixt/core").VixtOptions | undefined) => import("vite").PluginOption;
@@ -1,5 +1,4 @@
1
1
  import { VixtOptions } from "@vixt/core";
2
-
3
2
  //#region src/node/modules/preset-uni.d.ts
4
3
  declare const _default: import("@vixt/core").VixtModule<VixtOptions>;
5
4
  //#endregion
@@ -49,12 +49,13 @@ function getLayouts(files, dirs) {
49
49
  const layoutsMap = {};
50
50
  files.forEach((file) => {
51
51
  const name = getNameFromFilePath(file, dirs);
52
- layoutsMap[name] = {
52
+ const layoutInfo = {
53
53
  path: file,
54
54
  name: camelCase(name),
55
55
  pascalName: pascalCase(name),
56
56
  kebabName: kebabCase(name)
57
57
  };
58
+ layoutsMap[name] = layoutInfo;
58
59
  });
59
60
  return Object.values(layoutsMap);
60
61
  }
@@ -1,5 +1,4 @@
1
1
  import { ResolvedConfig } from "vite";
2
-
3
2
  //#region src/node/modules/uni-patch.d.ts
4
3
  /** 移除路径中的'../' */
5
4
  declare function overrideNormalizeNodeModules(): void;
@@ -4,7 +4,6 @@ import { ExtractPluginOptions } from "@vixt/core";
4
4
  import Uni from "@dcloudio/vite-plugin-uni";
5
5
  import Components from "@uni-helper/vite-plugin-uni-components";
6
6
  import Pages from "@uni-helper/vite-plugin-uni-pages";
7
-
8
7
  //#region src/node/node.d.ts
9
8
  interface UniVixtOptions {
10
9
  uni?: ExtractPluginOptions<typeof Uni>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/uni",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.12.2",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -43,11 +43,11 @@
43
43
  "mlly": "^1.8.2",
44
44
  "pathe": "^2.0.3",
45
45
  "vite": "^7.3.6",
46
- "vue": "^3.5.39",
47
- "@vixt/core": "0.12.1"
46
+ "vue": "^3.5.40",
47
+ "@vixt/core": "0.12.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@dcloudio/vite-plugin-uni": "3.0.0-5000720260410001",
51
- "pinia": "^3.0.4"
51
+ "pinia": "^4.0.2"
52
52
  }
53
53
  }