File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments