@proteus-vue/create-proteus 0.3.0-beta.16 → 0.3.0-beta.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteus-vue/create-proteus",
3
- "version": "0.3.0-beta.16",
3
+ "version": "0.3.0-beta.20",
4
4
  "description": "Proteus 脚手架:npm create @proteus-vue/proteus my-app —— 一键生成 Web + 微信小程序(Skyline)双端工程",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -13,16 +13,16 @@
13
13
  "proteus": "proteus"
14
14
  },
15
15
  "dependencies": {
16
- "@proteus-vue/router": "0.3.0-beta.12",
17
- "@proteus-vue/runtime": "0.3.0-beta.13",
18
- "@proteus-vue/shared": "0.3.0-beta.11",
16
+ "@proteus-vue/router": "0.3.0-beta.21",
17
+ "@proteus-vue/runtime": "0.3.0-beta.21",
18
+ "@proteus-vue/shared": "0.3.0-beta.21",
19
19
  "vue": "^3.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@proteus-vue/cli": "0.3.0-beta.15",
23
- "@proteus-vue/compiler": "0.3.0-beta.15",
22
+ "@proteus-vue/cli": "0.3.0-beta.21",
23
+ "@proteus-vue/compiler": "0.3.0-beta.21",
24
24
  "@proteus-vue/devtools-runtime": "0.3.0-beta.11",
25
- "@proteus-vue/plugin-vite": "0.3.0-beta.15",
25
+ "@proteus-vue/plugin-vite": "0.3.0-beta.21",
26
26
  "@types/node": "^20.0.0",
27
27
  "@vitejs/plugin-vue": "^5.0.0",
28
28
  "tsx": "^4.0.0",
@@ -0,0 +1,12 @@
1
+ // src/shims/import-meta.d.ts —— vite 注入的 import.meta.env 类型声明
2
+ // shared 包是「源码直发」(消费者经 alias/源引用),但 packages/* 自身的 tsc(声明构建)
3
+ // 也要过:web-adapter 用 import.meta.env.BASE_URL 读子路径 base(PROTEUS_BASE 注入,
4
+ // 构建期被 vite 内联为字面量)——无此声明 tsc 报 TS2339。
5
+ interface ImportMeta {
6
+ readonly env?: {
7
+ readonly BASE_URL?: string
8
+ readonly MODE?: string
9
+ readonly DEV?: boolean
10
+ readonly PROD?: boolean
11
+ }
12
+ }