@varlet/cli 2.8.0-alpha.1676455225773 → 2.8.0-alpha.1676475806986

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.
@@ -2,6 +2,7 @@ import vue from '@vitejs/plugin-vue';
2
2
  import jsx from '@vitejs/plugin-vue-jsx';
3
3
  import { build, createServer } from 'vite';
4
4
  export async function vite(mode) {
5
+ process.env.NODE_ENV = mode === 'dev' ? 'development' : 'production';
5
6
  const run = mode === 'build' ? build : createServer;
6
7
  const result = await run({
7
8
  plugins: [vue(), jsx()],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "2.8.0-alpha.1676455225773",
3
+ "version": "2.8.0-alpha.1676475806986",
4
4
  "type": "module",
5
5
  "description": "cli of varlet",
6
6
  "bin": {
@@ -68,8 +68,8 @@
68
68
  "vite": "4.0.4",
69
69
  "vue": "3.2.25",
70
70
  "vue-jest": "^5.0.0-alpha.8",
71
- "@varlet/vite-plugins": "2.8.0-alpha.1676455225773",
72
- "@varlet/shared": "2.8.0-alpha.1676455225773"
71
+ "@varlet/vite-plugins": "2.8.0-alpha.1676475806986",
72
+ "@varlet/shared": "2.8.0-alpha.1676475806986"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/babel__core": "^7.1.12",
@@ -82,8 +82,8 @@
82
82
  "@types/semver": "^7.3.9",
83
83
  "@types/inquirer": "^9.0.2",
84
84
  "@types/sharp": "0.31.1",
85
- "@varlet/icons": "2.8.0-alpha.1676455225773",
86
- "@varlet/touch-emulator": "2.8.0-alpha.1676455225773"
85
+ "@varlet/icons": "2.8.0-alpha.1676475806986",
86
+ "@varlet/touch-emulator": "2.8.0-alpha.1676475806986"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@vue/runtime-core": "3.2.16",
@@ -93,8 +93,8 @@
93
93
  "lodash-es": "^4.17.21",
94
94
  "vue": "3.2.25",
95
95
  "vue-router": "4.0.12",
96
- "@varlet/icons": "2.8.0-alpha.1676455225773",
97
- "@varlet/touch-emulator": "2.8.0-alpha.1676455225773"
96
+ "@varlet/icons": "2.8.0-alpha.1676475806986",
97
+ "@varlet/touch-emulator": "2.8.0-alpha.1676475806986"
98
98
  },
99
99
  "scripts": {
100
100
  "dev": "tsc --watch",