@tego/core 1.6.0-alpha.5 → 1.6.0-alpha.8

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.
@@ -740,6 +740,8 @@ const _Application = class _Application extends import_node_stream.EventEmitter
740
740
  if (this.db) {
741
741
  this.db.removeAllListeners();
742
742
  }
743
+ this._middleware = new import_utils.Toposort();
744
+ this._koa = new import_koa.default();
743
745
  this.createMainDataSource(options);
744
746
  this._env = new import_environment.Environment();
745
747
  this._cronJobManager = new import_cron_job_manager.CronJobManager(this);
@@ -50,9 +50,14 @@ var start_default = /* @__PURE__ */ __name((app) => {
50
50
  await app.upgrade();
51
51
  } else {
52
52
  await app.install();
53
+ await app.load();
54
+ await app.start({
55
+ dbSync: options == null ? void 0 : options.dbSync,
56
+ quickstart: options.quickstart,
57
+ cliArgs,
58
+ checkInstall: false
59
+ });
53
60
  }
54
- app["_started"] = true;
55
- await app.restart();
56
61
  app.logger.info("app has been started");
57
62
  return;
58
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tego/core",
3
- "version": "1.6.0-alpha.5",
3
+ "version": "1.6.0-alpha.8",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -31,18 +31,18 @@
31
31
  "winston": "^3.17.0",
32
32
  "ws": "^8.18.3",
33
33
  "xpipe": "^1.0.8",
34
- "@tachybase/acl": "1.6.0-alpha.5",
35
- "@tachybase/auth": "1.6.0-alpha.5",
36
- "@tachybase/cache": "1.6.0-alpha.5",
37
- "@tachybase/actions": "1.6.0-alpha.5",
38
- "@tachybase/data-source": "1.6.0-alpha.5",
39
- "@tachybase/di": "1.6.0-alpha.5",
40
- "@tachybase/database": "1.6.0-alpha.5",
41
- "@tachybase/globals": "1.6.0-alpha.5",
42
- "@tachybase/loader": "1.6.0-alpha.5",
43
- "@tachybase/logger": "1.6.0-alpha.5",
44
- "@tachybase/utils": "1.6.0-alpha.5",
45
- "@tachybase/resourcer": "1.6.0-alpha.5"
34
+ "@tachybase/acl": "1.6.0-alpha.8",
35
+ "@tachybase/actions": "1.6.0-alpha.8",
36
+ "@tachybase/cache": "1.6.0-alpha.8",
37
+ "@tachybase/auth": "1.6.0-alpha.8",
38
+ "@tachybase/data-source": "1.6.0-alpha.8",
39
+ "@tachybase/database": "1.6.0-alpha.8",
40
+ "@tachybase/di": "1.6.0-alpha.8",
41
+ "@tachybase/globals": "1.6.0-alpha.8",
42
+ "@tachybase/loader": "1.6.0-alpha.8",
43
+ "@tachybase/resourcer": "1.6.0-alpha.8",
44
+ "@tachybase/utils": "1.6.0-alpha.8",
45
+ "@tachybase/logger": "1.6.0-alpha.8"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/fs-extra": "11.0.4",