Skip to content

Commit 9ccda10

Browse files
committed
✨ update
1 parent 2ffebf7 commit 9ccda10

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@micro-app/cli",
3-
"version": "0.2.0-beta.4",
3+
"version": "0.2.0-beta.5",
44
"description": "[CLI] Pluggable micro application framework.",
55
"main": "bin/base.js",
66
"bin": {

plugins/extends/server/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ module.exports = function extendServer(api, opts) {
2323
cache: true,
2424
description: '当前工程下的服务配置',
2525
}, function() {
26-
const microConfig = this.selfConfig;
26+
const microConfig = api.selfConfig;
2727
const _originalConfig = microConfig.originalConfig || {};
2828
const _serverConfig = _originalConfig.server || {};
2929
const { entry, options = {}, hooks } = _serverConfig;
3030
return {
31-
// ...microConfig,
3231
entry,
3332
hooks,
3433
options,
@@ -46,7 +45,7 @@ module.exports = function extendServer(api, opts) {
4645
cache: true,
4746
description: '当前工程下所有依赖的服务配置合集',
4847
}, function() {
49-
const selfConfig = this.selfConfig;
48+
const selfConfig = api.selfConfig;
5049
const micros = api.micros;
5150
const microsConfig = api.microsConfig;
5251
const config = {};
@@ -57,7 +56,6 @@ module.exports = function extendServer(api, opts) {
5756
const _serverConfig = _originalConfig.server || {};
5857
const { entry, options = {}, hooks } = _serverConfig;
5958
config[key] = {
60-
// ...microConfig,
6159
entry,
6260
hooks,
6361
options,

0 commit comments

Comments
 (0)