meixifrontserve 2.0.32 → 2.0.33

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": "meixifrontserve",
3
- "version": "2.0.32",
3
+ "version": "2.0.33",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "private": false,
@@ -20,7 +20,7 @@
20
20
  "author": "yuri_star",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "shelljs": "^0.8.5",
24
- "commander": "^10.0.0"
23
+ "commander": "^10.0.0",
24
+ "shelljs": "^0.8.5"
25
25
  }
26
26
  }
@@ -13,8 +13,8 @@ const shell = require('shelljs');
13
13
  // 打包环境
14
14
  class EnvByBuildController extends ServerController {
15
15
 
16
- constructor(projectName, envType,isV2 = false) {
17
- super(projectName,isV2);
16
+ constructor(projectName, envType, isV2 = false) {
17
+ super(projectName, isV2);
18
18
  this.port = 8888;
19
19
  this.envName = '';
20
20
  this.envType = envType;
@@ -76,9 +76,17 @@ class EnvByBuildController extends ServerController {
76
76
  exec('npm install --legacy-peer-deps', async (error, stdout, stderr) => {
77
77
  console.log(error);
78
78
  if (!error) {
79
- shell.exec(`npm run build:${this.envType}`, (error, stdout, stderr) => {
80
- console.log(error);
81
- })
79
+ if (this.isV2) {
80
+ exec('npm i tdesign-vue@naruto --legacy-peer-deps', async (error, stdout, stderr) => {
81
+ shell.exec(`npm run build:${this.envType}`, (error, stdout, stderr) => {
82
+ console.log(error);
83
+ })
84
+ })
85
+ } else {
86
+ shell.exec(`npm run build:${this.envType}`, (error, stdout, stderr) => {
87
+ console.log(error);
88
+ })
89
+ }
82
90
  } else {
83
91
  console.error('依赖下载失败!')
84
92
  }