@nocobase/cli 1.6.19 → 1.6.21

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.
Files changed (2) hide show
  1. package/package.json +5 -6
  2. package/src/util.js +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "1.6.19",
3
+ "version": "1.6.21",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./src/index.js",
@@ -8,7 +8,7 @@
8
8
  "nocobase": "./bin/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@nocobase/app": "1.6.19",
11
+ "@nocobase/app": "1.6.21",
12
12
  "@types/fs-extra": "^11.0.1",
13
13
  "@umijs/utils": "3.5.20",
14
14
  "chalk": "^4.1.1",
@@ -18,19 +18,18 @@
18
18
  "fast-glob": "^3.3.1",
19
19
  "fs-extra": "^11.1.1",
20
20
  "p-all": "3.0.0",
21
- "pm2": "^5.2.0",
21
+ "pm2": "^6.0.5",
22
22
  "portfinder": "^1.0.28",
23
- "serve": "^13.0.2",
24
23
  "tree-kill": "^1.2.2",
25
24
  "tsx": "^4.19.0"
26
25
  },
27
26
  "devDependencies": {
28
- "@nocobase/devtools": "1.6.19"
27
+ "@nocobase/devtools": "1.6.21"
29
28
  },
30
29
  "repository": {
31
30
  "type": "git",
32
31
  "url": "git+https://github.com/nocobase/nocobase.git",
33
32
  "directory": "packages/core/cli"
34
33
  },
35
- "gitHead": "58e1912d15868102d36095991b635d1ed0e700fa"
34
+ "gitHead": "2538df7c081e1bb558acead3f0cd87b6a7f02c78"
36
35
  }
package/src/util.js CHANGED
@@ -460,8 +460,16 @@ exports.initEnv = function initEnv() {
460
460
  process.env.SOCKET_PATH = generateGatewayPath();
461
461
  fs.mkdirpSync(dirname(process.env.SOCKET_PATH), { force: true, recursive: true });
462
462
  fs.mkdirpSync(process.env.PM2_HOME, { force: true, recursive: true });
463
- const pkgDir = resolve(process.cwd(), 'storage/plugins', '@nocobase/plugin-multi-app-manager');
464
- fs.existsSync(pkgDir) && fs.rmdirSync(pkgDir, { recursive: true, force: true });
463
+ const pkgs = [
464
+ '@nocobase/plugin-multi-app-manager',
465
+ '@nocobase/plugin-departments',
466
+ '@nocobase/plugin-field-attachment-url',
467
+ '@nocobase/plugin-workflow-response-message',
468
+ ];
469
+ for (const pkg of pkgs) {
470
+ const pkgDir = resolve(process.cwd(), 'storage/plugins', pkg);
471
+ fs.existsSync(pkgDir) && fs.rmdirSync(pkgDir, { recursive: true, force: true });
472
+ }
465
473
  };
466
474
 
467
475
  exports.generatePlugins = function () {