@nocobase/cli 1.0.0-alpha.13 → 1.0.0-alpha.15
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 +4 -4
- package/src/commands/test.js +1 -1
- package/src/util.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.15",
|
|
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.0.0-alpha.
|
|
11
|
+
"@nocobase/app": "1.0.0-alpha.15",
|
|
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": "1.0.0-alpha.
|
|
28
|
+
"@nocobase/devtools": "1.0.0-alpha.15"
|
|
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": "
|
|
35
|
+
"gitHead": "2793d371368e094ea2bba04cfbe9b9b73c44edba"
|
|
36
36
|
}
|
package/src/commands/test.js
CHANGED
|
@@ -68,7 +68,7 @@ function addTestCommand(name, cli) {
|
|
|
68
68
|
process.argv.splice(process.argv.indexOf('--single-thread=false'), 1);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
const cliArgs = ['--max_old_space_size=14096', './node_modules
|
|
71
|
+
const cliArgs = ['--max_old_space_size=14096', './node_modules/vitest/vitest.mjs', ...process.argv.slice(3)];
|
|
72
72
|
|
|
73
73
|
if (process.argv.includes('-h') || process.argv.includes('--help')) {
|
|
74
74
|
await run('node', cliArgs);
|
package/src/util.js
CHANGED
|
@@ -286,6 +286,7 @@ function buildIndexHtml(force = false) {
|
|
|
286
286
|
const data = fs.readFileSync(tpl, 'utf-8');
|
|
287
287
|
const replacedData = data
|
|
288
288
|
.replace(/\{\{env.APP_PUBLIC_PATH\}\}/g, process.env.APP_PUBLIC_PATH)
|
|
289
|
+
.replace(/\{\{env.API_CLIENT_STORAGE_PREFIX\}\}/g, process.env.API_CLIENT_STORAGE_PREFIX)
|
|
289
290
|
.replace(/\{\{env.API_BASE_URL\}\}/g, process.env.API_BASE_URL || process.env.API_BASE_PATH)
|
|
290
291
|
.replace(/\{\{env.WS_URL\}\}/g, process.env.WEBSOCKET_URL || '')
|
|
291
292
|
.replace(/\{\{env.WS_PATH\}\}/g, process.env.WS_PATH)
|
|
@@ -301,6 +302,7 @@ exports.initEnv = function initEnv() {
|
|
|
301
302
|
APP_KEY: 'test-jwt-secret',
|
|
302
303
|
APP_PORT: 13000,
|
|
303
304
|
API_BASE_PATH: '/api/',
|
|
305
|
+
API_CLIENT_STORAGE_PREFIX: 'NOCOBASE_',
|
|
304
306
|
DB_DIALECT: 'sqlite',
|
|
305
307
|
DB_STORAGE: 'storage/db/nocobase.sqlite',
|
|
306
308
|
DB_TIMEZONE: '+00:00',
|