create-vite-taro 0.1.7 → 0.2.0

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": "create-vite-taro",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "description": "Create Vite 8 + React 19 + Taro apps for H5 and WeChat Mini Program targets.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4,11 +4,11 @@
4
4
  "version": "0.0.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "dev:wx": "NODE_ENV=development VITE_PLUGIN_TARO_TARGET=wx vite build --watch",
8
- "dev:h5": "NODE_ENV=development VITE_PLUGIN_TARO_TARGET=h5 vite",
9
- "build:wx": "NODE_ENV=production VITE_PLUGIN_TARO_TARGET=wx vite build",
10
- "build:h5": "NODE_ENV=production VITE_PLUGIN_TARO_TARGET=h5 vite build",
11
- "preview:h5": "NODE_ENV=production VITE_PLUGIN_TARO_TARGET=h5 vite preview --outDir dist/h5",
7
+ "dev:wx": "cross-env NODE_ENV=development VITE_PLUGIN_TARO_TARGET=wx vite build --watch",
8
+ "dev:h5": "cross-env NODE_ENV=development VITE_PLUGIN_TARO_TARGET=h5 vite",
9
+ "build:wx": "cross-env NODE_ENV=production VITE_PLUGIN_TARO_TARGET=wx vite build",
10
+ "build:h5": "cross-env NODE_ENV=production VITE_PLUGIN_TARO_TARGET=h5 vite build",
11
+ "preview:h5": "cross-env NODE_ENV=production VITE_PLUGIN_TARO_TARGET=h5 vite preview --outDir dist/h5",
12
12
  "typecheck": "tsgo -b"
13
13
  },
14
14
  "dependencies": {
@@ -20,7 +20,8 @@
20
20
  "@types/react": "^19.2.17",
21
21
  "@types/react-dom": "^19.2.3",
22
22
  "@typescript/native-preview": "latest",
23
+ "cross-env": "^10.1.0",
23
24
  "vite": "^8.0.16",
24
- "vite-plugin-taro": "^0.1.7"
25
+ "vite-plugin-taro": "^0.2.0"
25
26
  }
26
27
  }