@nocobase/cli 0.19.0-alpha.1 → 0.19.0-alpha.3

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.19.0-alpha.1",
3
+ "version": "0.19.0-alpha.3",
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.19.0-alpha.1",
11
+ "@nocobase/app": "0.19.0-alpha.3",
12
12
  "@types/fs-extra": "^11.0.1",
13
13
  "@umijs/utils": "3.5.20",
14
14
  "chalk": "^4.1.1",
@@ -24,12 +24,12 @@
24
24
  "tsx": "^4.6.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@nocobase/devtools": "0.19.0-alpha.1"
27
+ "@nocobase/devtools": "0.19.0-alpha.3"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
31
  "url": "git+https://github.com/nocobase/nocobase.git",
32
32
  "directory": "packages/core/cli"
33
33
  },
34
- "gitHead": "64601944412fc4d2e2bd05f4b982118dd28247dc"
34
+ "gitHead": "3cee597df101a3f8f0f1e2a6f75fc2dddd02ac74"
35
35
  }
@@ -33,7 +33,7 @@ const checkServer = async (duration = 1000, max = 60 * 10) => {
33
33
  }
34
34
  })
35
35
  .catch((error) => {
36
- console.error('Request error:', error.message);
36
+ console.error('Request error:', error?.response?.data?.error);
37
37
  });
38
38
  }, duration);
39
39
  });
@@ -128,6 +128,12 @@ const filterArgv = () => {
128
128
  if (element === '--skip-reporter') {
129
129
  continue;
130
130
  }
131
+ if (element === '--build') {
132
+ continue;
133
+ }
134
+ if (element === '--production') {
135
+ continue;
136
+ }
131
137
  argv.push(element);
132
138
  }
133
139
  return argv;
@@ -150,8 +156,12 @@ module.exports = (cli) => {
150
156
  .option('--url [url]')
151
157
  .option('--skip-reporter')
152
158
  .option('--build')
159
+ .option('--production')
153
160
  .action(async (options) => {
154
161
  process.env.__E2E__ = true;
162
+ if (options.production) {
163
+ process.env.APP_ENV = 'production';
164
+ }
155
165
  if (options.build) {
156
166
  process.env.APP_ENV = 'production';
157
167
  await run('yarn', ['build']);
@@ -225,6 +235,6 @@ module.exports = (cli) => {
225
235
  process.env.APP_ENV = 'production';
226
236
  await run('yarn', ['build']);
227
237
  }
228
- await pTest(options);
238
+ await pTest({ ...options, concurrency: 1 * options.concurrency });
229
239
  });
230
240
  };