File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed
Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 4545 "webpack" : " ^4.42.1"
4646 },
4747 "dependencies" : {
48- "@micro-app/cli" : " ^0.3.11 " ,
48+ "@micro-app/cli" : " ^0.3.12 " ,
4949 "@micro-app/plugin-webpack" : " ^0.0.11"
5050 }
5151}
Original file line number Diff line number Diff line change 11'use strict' ;
22
3- const { assert } = require ( '@micro-app/shared-utils' ) ;
3+ const { assert, logger } = require ( '@micro-app/shared-utils' ) ;
44const { CONSTANTS } = require ( '@micro-app/core' ) ;
55const KEY = 'modifyVueConfig' ;
66
77// 注册全局, hacker, 外部调用
88module . exports = function registerMethod ( s ) {
9- assert ( s , 'service must be required!' ) ;
9+ assert ( s , 'service or api must be required!' ) ;
1010 if ( ! s . hasKey ( KEY ) ) {
1111 s . registerMethod ( KEY , {
1212 type : CONSTANTS . API_TYPE . MODIFY ,
1313 description : 'modify vue config.' ,
1414 } ) ;
15+ } else {
16+ logger . warn ( `[${ KEY } ]` , 'has exists.' ) ;
1517 }
1618} ;
Original file line number Diff line number Diff line change 323323 dependencies :
324324 sourcemap-codec "^1.4.4"
325325
326- " @micro-app/cli@^0.3.11 " :
327- version "0.3.11 "
328- resolved "https://registry.yarnpkg.com/@micro-app/cli/-/cli-0.3.11 .tgz#b570284d25950fd3bf3cec9922a19b75a547def7 "
329- integrity sha512-BOUBSBaSjNWbg6jd3SvjJ5W6mXQr9m4sZjGf33eLoh6GpVcf7XF2XGnwKyLVQwcVKj7oJ75aL/+9vrxkc/utNA ==
326+ " @micro-app/cli@^0.3.12 " :
327+ version "0.3.12 "
328+ resolved "https://registry.yarnpkg.com/@micro-app/cli/-/cli-0.3.12 .tgz#6fde028d5aa0a66d6a84009ca80c922b61882f7f "
329+ integrity sha512-VR6m+abGKpsWwlVfbGqSG/gKD6xxSL9yRuNKvhYorIdIBOCaYb7ksNiq/9YFeLGVxlaKeBXl0fpSAGRIoD9DiA ==
330330 dependencies :
331- " @micro-app/core" " ^0.3.20 "
331+ " @micro-app/core" " ^0.3.21 "
332332 " @zkochan/cmd-shim" " ^4.3.0"
333333 read-cmd-shim "^2.0.0"
334334 update-notifier "^4.1.0"
335335
336- " @micro-app/core@^0.3.20 " :
337- version "0.3.20 "
338- resolved "https://registry.yarnpkg.com/@micro-app/core/-/core-0.3.20 .tgz#f0a2d809eb82c8836c4dccaffdfb46383ed5554b "
339- integrity sha512-qpo/tENg6Qpb2kZSudq/9XHb/kPpcYUhlG/7wSgNr+f4uLfV9gF98Cqpz25lg5hya1q2yY6/y8/rPhLOaHqj0g ==
336+ " @micro-app/core@^0.3.21 " :
337+ version "0.3.21 "
338+ resolved "https://registry.yarnpkg.com/@micro-app/core/-/core-0.3.21 .tgz#43315fa1713580d7500900f5ef90e183b9455b56 "
339+ integrity sha512-k7KOtQ6pxJbRAaMW8xF3jmuJxOQXjHXLCHtLNayU3ma1SNxOTGBbGbF7VyOBoo7V1sGlC40UjMaMJiqfvdE5lw ==
340340 dependencies :
341341 " @micro-app/shared-utils" " ^0.1.16"
342342 dotenv "^8.2.0"
You can’t perform that action at this time.
0 commit comments