File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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" ,
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"
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ const fs = require('fs-extra');
66
77function 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 = [ ] ;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ const path = require('path');
55
66function 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' ) {
You can’t perform that action at this time.
0 commit comments