File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @micro-app/cli" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "description" : " [CLI] Pluggable micro application framework." ,
55 "bin" : {
66 "micro-app" : " ./bin/micro-app.js" ,
4848 "jest" : " ^24.9.0" ,
4949 "webpack" : " ^4.39.2"
5050 },
51+ "peerDependencies" : {
52+ "@micro-app/core" : " ^0.1.3" ,
53+ "@micro-app/plugin-webpack-adapter" : " ^0.0.3"
54+ },
5155 "dependencies" : {
52- "@micro-app/core" : " ^0.1.1" ,
5356 "koa" : " ^2.8.1" ,
5457 "opn" : " ^5.5.0" ,
5558 "shelljs" : " ^0.8.3" ,
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const path = require('path');
55const chalk = require ( 'chalk' ) ;
66const fs = require ( 'fs' ) ;
77
8+ // TODO 抽离
89module . exports = function deployCommand ( api , opts ) {
910
1011 api . registerMethod ( 'beforeCommandDeploy' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const _ = require('lodash');
66
77module . exports = function adapter ( api , info ) {
88 const logger = api . logger ;
9- const _webpackConfig = api . getState ( 'webpackConfig' ) ;
9+ const _webpackConfig = api . resolveWebpackConfig ( ) ;
1010 const _webpackDevOptions = _webpackConfig . devServer || { } ;
1111
1212 const webpack = tryRequire ( 'webpack' ) ;
You can’t perform that action at this time.
0 commit comments