Skip to content

Commit 4cc1b20

Browse files
committed
🐛 fixed some bugs
1 parent 58ca278 commit 4cc1b20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@micro-app/cli",
3-
"version": "0.2.0-beta.3",
3+
"version": "0.2.0-beta.4",
44
"description": "[CLI] Pluggable micro application framework.",
55
"bin": {
66
"micro-app": "./bin/micro-app.js",
@@ -46,7 +46,7 @@
4646
"coveralls": "^3.0.7",
4747
"eslint": "^5.16.0",
4848
"eslint-config-2o3t": "^1.1.17",
49-
"husky": "^3.0.8",
49+
"husky": "^3.0.9",
5050
"jest": "^24.9.0",
5151
"lint-staged": "^9.4.2",
5252
"webpack": "^4.39.2"

src/utils/merge-server-hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const fs = require('fs-extra');
66

77
function adapter(microConfig) {
88
const microServers = [];
9-
const root = microConfig.root;
109
const { hooks, options = {}, info } = microConfig;
1110
if (hooks) {
11+
const root = info.root;
1212
const hooksFile = path.resolve(root, hooks);
1313
if (fs.statSync(hooksFile).isDirectory()) {
1414
const hookFuncs = [];

src/utils/merge-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const path = require('path');
55

66
function adapter(microConfig) {
77
const microServers = [];
8-
const root = microConfig.root;
98
const { entry, options = {}, info } = microConfig;
109
if (entry) {
10+
const root = info.root;
1111
const entryFile = path.resolve(root, entry);
1212
const entryCallback = tryRequire.resolve(entryFile);
1313
if (entryCallback && typeof entryCallback === 'string') {

0 commit comments

Comments
 (0)