Skip to content

Commit ee8809c

Browse files
committed
🎨 依赖适配
1 parent 1abf46a commit ee8809c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -48,8 +48,11 @@
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",

plugins/commands/deploy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const path = require('path');
55
const chalk = require('chalk');
66
const fs = require('fs');
77

8+
// TODO 抽离
89
module.exports = function deployCommand(api, opts) {
910

1011
api.registerMethod('beforeCommandDeploy', {

src/adapter/index.js

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

77
module.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');

0 commit comments

Comments
 (0)