@midwayjs/web 3.1.4 → 3.1.5

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.
Files changed (2) hide show
  1. package/dist/cluster.js +2 -1
  2. package/package.json +4 -4
package/dist/cluster.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ var _a, _b;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  const core_1 = require("@midwayjs/core");
4
5
  const path_1 = require("path");
@@ -13,7 +14,7 @@ function runInAgent() {
13
14
  process.env['EGG_CLUSTER_MODE'] = 'true';
14
15
  const isAgent = runInAgent();
15
16
  debug('[egg]: run with egg-scripts in worker and init midway container in cluster mode');
16
- const appDir = process.cwd();
17
+ const appDir = (_b = (_a = JSON.parse(process.argv[2])) === null || _a === void 0 ? void 0 : _a.baseDir) !== null && _b !== void 0 ? _b : process.cwd();
17
18
  let baseDir;
18
19
  if ((0, utils_1.isTypeScriptEnvironment)()) {
19
20
  baseDir = (0, path_1.join)(appDir, 'src');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/web",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Midway Web Framework for Egg.js",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "devDependencies": {
30
30
  "@midwayjs/decorator": "^3.0.10",
31
31
  "@midwayjs/logger": "^2.15.0",
32
- "@midwayjs/mock": "^3.1.2",
32
+ "@midwayjs/mock": "^3.1.5",
33
33
  "axios": "0.26.1",
34
34
  "dayjs": "1.10.8",
35
35
  "egg-logger": "2.7.1",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@eggjs/router": "^2.0.0",
49
- "@midwayjs/core": "^3.1.2",
49
+ "@midwayjs/core": "^3.1.5",
50
50
  "egg": "^2.28.0",
51
51
  "egg-cluster": "^1.27.1",
52
52
  "find-up": "5.0.0",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=12"
62
62
  },
63
- "gitHead": "ca98130962ab629a65912870f82f64bd0e44566d"
63
+ "gitHead": "46a7851ad3ce6fc675bd7e1b7c9dff2c70009104"
64
64
  }