@nocobase/cli 0.21.0-alpha.7 → 0.21.0-alpha.9

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": "@nocobase/cli",
3
- "version": "0.21.0-alpha.7",
3
+ "version": "0.21.0-alpha.9",
4
4
  "description": "",
5
5
  "license": "Apache-2.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": "0.21.0-alpha.7",
11
+ "@nocobase/app": "0.21.0-alpha.9",
12
12
  "@types/fs-extra": "^11.0.1",
13
13
  "@umijs/utils": "3.5.20",
14
14
  "chalk": "^4.1.1",
@@ -25,12 +25,12 @@
25
25
  "tsx": "^4.6.2"
26
26
  },
27
27
  "devDependencies": {
28
- "@nocobase/devtools": "0.21.0-alpha.7"
28
+ "@nocobase/devtools": "0.21.0-alpha.9"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
32
32
  "url": "git+https://github.com/nocobase/nocobase.git",
33
33
  "directory": "packages/core/cli"
34
34
  },
35
- "gitHead": "b1be3993f8aa81173d01bc390aa8e4c5adcc0e2d"
35
+ "gitHead": "a6fe6c4ee532c04e5a50ec777bf76436ca624cbd"
36
36
  }
@@ -85,6 +85,7 @@ async function appReady() {
85
85
  async function runApp(options = {}) {
86
86
  console.log('installing...');
87
87
  await run('nocobase', ['install', '-f']);
88
+ await run('nocobase', ['pm', 'enable-all']);
88
89
  if (await isPortReachable(process.env.APP_PORT)) {
89
90
  console.log('app started');
90
91
  return;
@@ -232,6 +233,7 @@ module.exports = (cli) => {
232
233
 
233
234
  e2e.command('reinstall-app').action(async (options) => {
234
235
  await run('nocobase', ['install', '-f'], options);
236
+ await run('nocobase', ['pm2', 'enable-all']);
235
237
  });
236
238
 
237
239
  e2e.command('install-deps').action(async () => {
@@ -24,7 +24,7 @@ module.exports = (cli) => {
24
24
  const packageRoots = getPackagesDir(false);
25
25
  for (const dir of packageRoots) {
26
26
  try {
27
- await run('yarn', ['test:server', '--coverage', dir]);
27
+ await run('yarn', ['test:server', dir, '--coverage']);
28
28
  } catch (e) {
29
29
  continue;
30
30
  }
@@ -35,7 +35,7 @@ module.exports = (cli) => {
35
35
  const packageRoots = getPackagesDir(true);
36
36
  for (const dir of packageRoots) {
37
37
  try {
38
- await run('yarn', ['test:client', '--coverage', dir]);
38
+ await run('yarn', ['test:client', dir, '--coverage']);
39
39
  } catch (e) {
40
40
  continue;
41
41
  }