@pubinfo-pr/vite 0.187.1 → 0.189.1

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.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { UserConfig, UserConfigFnObject } from "rolldown-vite";
1
+ import { UserConfig, UserConfigFnObject } from "vite";
2
2
  import * as vite_plugin_vue_devtools0 from "vite-plugin-vue-devtools";
3
3
  import { VitePluginVueDevToolsOptions } from "vite-plugin-vue-devtools";
4
4
  import * as _pubinfo_unplugin_openapi0 from "@pubinfo/unplugin-openapi";
5
5
  import { Options } from "@pubinfo/unplugin-openapi";
6
- export * from "rolldown-vite";
6
+ export * from "vite";
7
7
  export * from "vite-plugin-fake-server/client";
8
8
 
9
9
  //#region src/plugins/built-in/inject-auto.d.ts
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { defineConfig, loadEnv, mergeConfig, normalizePath } from "rolldown-vite";
2
+ import { defineConfig, loadEnv, mergeConfig, normalizePath } from "vite";
3
3
  import process, { cwd } from "node:process";
4
4
  import { logger } from "@pubinfo-pr/shared";
5
5
  import chalk from "chalk";
@@ -37,21 +37,21 @@ import { vitePluginFakeServer } from "vite-plugin-fake-server";
37
37
  import OpenAPI from "@pubinfo/unplugin-openapi/vite";
38
38
  import Unocss from "unocss/vite";
39
39
 
40
- export * from "rolldown-vite"
40
+ export * from "vite"
41
41
 
42
42
  export * from "vite-plugin-fake-server/client"
43
43
 
44
44
  //#region src/helper/alias.ts
45
45
  function alias(root) {
46
46
  const resolvePath = (name) => join(root, name);
47
- const resolveDeps = (name, path$1) => join(createRequire(import.meta.url).resolve(name), path$1);
47
+ const resolveDeps = (name) => dirname(createRequire(import.meta.url).resolve(name));
48
48
  return {
49
49
  "@": resolvePath("src"),
50
50
  "#": resolvePath("types"),
51
- "vue": resolveDeps("vue", "../"),
52
- "vue-router": resolveDeps("vue-router", "../"),
53
- "pinia": resolveDeps("pinia", "../"),
54
- "unocss": resolveDeps("unocss", "../")
51
+ "vue": resolveDeps("vue"),
52
+ "vue-router": resolveDeps("vue-router"),
53
+ "pinia": resolveDeps("pinia"),
54
+ "unocss": resolveDeps("unocss")
55
55
  };
56
56
  }
57
57
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/vite",
3
3
  "type": "module",
4
- "version": "0.187.1",
4
+ "version": "0.189.1",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -18,11 +18,13 @@
18
18
  "node": "^20.19.0 || >=22.12.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "vue": "^3.5.17"
21
+ "pinia": "^3.0.3",
22
+ "vue": "^3.5.17",
23
+ "vue-router": "^4.5.1"
22
24
  },
23
25
  "dependencies": {
24
- "@pubinfo-pr/devtools": "0.187.1",
25
- "@pubinfo-pr/shared": "0.187.1",
26
+ "@pubinfo-pr/devtools": "0.189.1",
27
+ "@pubinfo-pr/shared": "0.189.1",
26
28
  "@pubinfo/unplugin-openapi": "^0.9.1",
27
29
  "@vitejs/plugin-legacy": "^7.2.1",
28
30
  "@vitejs/plugin-vue": "^6.0.0",
@@ -39,12 +41,12 @@
39
41
  "micromatch": "^4.0.8",
40
42
  "picomatch": "^4.0.3",
41
43
  "pkg-types": "^2.3.0",
42
- "rolldown-vite": "^7.1.2",
43
44
  "terser": "^5.43.1",
44
45
  "unocss": "^66.4.2",
45
46
  "unplugin-auto-import": "^20.0.0",
46
47
  "unplugin-icons": "^22.2.0",
47
48
  "unplugin-vue-components": "^29.0.0",
49
+ "vite": "^8.0.0-beta.0",
48
50
  "vite-plugin-compression": "^0.5.1",
49
51
  "vite-plugin-dts": "^4.5.4",
50
52
  "vite-plugin-env-runtime": "^0.3.6",
@@ -58,7 +60,9 @@
58
60
  "@types/micromatch": "^4.0.9",
59
61
  "@types/node": "^24.0.10",
60
62
  "@types/picomatch": "^4.0.2",
61
- "vue": "^3.5.17"
63
+ "pinia": "^3.0.3",
64
+ "vue": "^3.5.17",
65
+ "vue-router": "^4.5.1"
62
66
  },
63
67
  "scripts": {
64
68
  "dev": "tsdown --watch",