@nocobase/cli 0.12.0-alpha.5 → 0.13.0-alpha.2

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.12.0-alpha.5",
3
+ "version": "0.13.0-alpha.2",
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.12.0-alpha.5",
11
+ "@nocobase/app": "0.13.0-alpha.2",
12
12
  "@types/fs-extra": "^11.0.1",
13
13
  "@umijs/utils": "3.5.20",
14
14
  "chalk": "^4.1.1",
@@ -17,18 +17,19 @@
17
17
  "execa": "^5.1.1",
18
18
  "fast-glob": "^3.2.12",
19
19
  "fs-extra": "^11.1.1",
20
+ "newrelic": "^10.6.2",
20
21
  "pm2": "^5.2.0",
21
22
  "portfinder": "^1.0.28",
22
23
  "serve": "^13.0.2",
23
24
  "tsx": "^3.12.7"
24
25
  },
25
26
  "devDependencies": {
26
- "@nocobase/devtools": "0.12.0-alpha.5"
27
+ "@nocobase/devtools": "0.13.0-alpha.2"
27
28
  },
28
29
  "repository": {
29
30
  "type": "git",
30
31
  "url": "git+https://github.com/nocobase/nocobase.git",
31
32
  "directory": "packages/core/cli"
32
33
  },
33
- "gitHead": "689cc16e83361c4d0b91907e0deac30bdb907692"
34
+ "gitHead": "c43183b714350217788cf0466e1f32bcaa527302"
34
35
  }
@@ -54,8 +54,6 @@ module.exports = (cli) => {
54
54
  });
55
55
  }
56
56
 
57
- await runAppCommand('install', ['--silent']);
58
-
59
57
  if (server || !client) {
60
58
  console.log('starting server', serverPort);
61
59
 
@@ -99,6 +97,7 @@ module.exports = (cli) => {
99
97
  env: {
100
98
  PORT: clientPort,
101
99
  APP_ROOT: `${APP_PACKAGE_ROOT}/client`,
100
+ WEBSOCKET_URL: process.env.WEBSOCKET_URL || `ws://localhost:${serverPort}/ws`,
102
101
  PROXY_TARGET_URL:
103
102
  process.env.PROXY_TARGET_URL || (serverPort ? `http://127.0.0.1:${serverPort}` : undefined),
104
103
  },
@@ -12,11 +12,10 @@ module.exports = (cli) => {
12
12
  .option('-h, --help')
13
13
  .option('--ts-node-dev')
14
14
  .action((options) => {
15
- const { tsNodeDev } = options;
16
15
  if (isDev()) {
17
16
  promptForTs();
18
- run(tsNodeDev ? 'ts-node-dev' : 'ts-node', [
19
- '-P',
17
+ run('tsx', [
18
+ '--tsconfig',
20
19
  './tsconfig.server.json',
21
20
  '-r',
22
21
  'tsconfig-paths/register',
@@ -41,16 +41,6 @@ module.exports = (cli) => {
41
41
  return;
42
42
  }
43
43
  await postCheck(opts);
44
- const restartMark = resolve(process.cwd(), 'storage', 'restart');
45
- if (!existsSync(restartMark)) {
46
- if (opts.quickstart) {
47
- await run('node', [`${APP_PACKAGE_ROOT}/lib/index.js`, 'install', '--ignore-installed']);
48
- await run('node', [`${APP_PACKAGE_ROOT}/lib/index.js`, 'upgrade']);
49
- }
50
- if (opts.dbSync) {
51
- await run('node', [`${APP_PACKAGE_ROOT}/lib/index.js`, 'db:sync']);
52
- }
53
- }
54
44
  if (opts.daemon) {
55
45
  run('pm2', ['start', `${APP_PACKAGE_ROOT}/lib/index.js`, '--', ...process.argv.slice(2)]);
56
46
  } else {