@nocobase/app-server 0.7.2-alpha.7 → 0.7.4-alpha.4

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.
@@ -13,6 +13,7 @@ var _default = {
13
13
  database: process.env.DB_DATABASE,
14
14
  host: process.env.DB_HOST,
15
15
  port: process.env.DB_PORT,
16
- timezone: process.env.DB_TIMEZONE
16
+ timezone: process.env.DB_TIMEZONE,
17
+ tablePrefix: process.env.DB_TABLE_PREFIX
17
18
  };
18
19
  exports.default = _default;
package/lib/index.js CHANGED
@@ -22,7 +22,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
22
22
  const app = new (_server().Application)(_config.default);
23
23
 
24
24
  if (require.main === module) {
25
- app.parse();
25
+ app.runAsCLI();
26
26
  }
27
27
 
28
28
  var _default = app;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@nocobase/app-server",
3
- "version": "0.7.2-alpha.7",
3
+ "version": "0.7.4-alpha.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/preset-nocobase": "0.7.2-alpha.7"
9
+ "@nocobase/preset-nocobase": "0.7.4-alpha.4"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/nocobase/nocobase.git",
14
14
  "directory": "packages/app/server"
15
15
  },
16
- "gitHead": "c34194ae51395346b7cf1d1b6b5e127597d956ab"
16
+ "gitHead": "726c06b721b217a6aa5c1421b899d1315e552b57"
17
17
  }
@@ -10,4 +10,5 @@ export default {
10
10
  host: process.env.DB_HOST,
11
11
  port: process.env.DB_PORT as any,
12
12
  timezone: process.env.DB_TIMEZONE,
13
+ tablePrefix: process.env.DB_TABLE_PREFIX,
13
14
  } as IDatabaseOptions;
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@ import config from './config';
4
4
  const app = new Application(config);
5
5
 
6
6
  if (require.main === module) {
7
- app.parse();
7
+ app.runAsCLI();
8
8
  }
9
9
 
10
10
  export default app;