File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ exports.npmInstall = function (a) {
31
31
// 检测是否跳过 node_modules
32
32
var ignoreNpm = false ;
33
33
if ( configFile ) {
34
- var ykitConfig = requireg ( sysPath . join ( process . cwd ( ) , configFile ) ) ;
34
+ var ykitConfig = require ( sysPath . join ( process . cwd ( ) , configFile ) ) ;
35
+ if ( typeof ykitConfig . config === 'function' ) {
36
+ ykitConfig = ykitConfig . config ( ) ;
37
+ }
35
38
if ( ykitConfig . build && ykitConfig . build . ignoreNpm ) {
36
39
ignoreNpm = true ;
37
40
}
Original file line number Diff line number Diff line change @@ -33,7 +33,10 @@ exports.npmInstall = function(a) {
33
33
// 检测是否跳过 node_modules
34
34
let ignoreNpm = false ;
35
35
if ( configFile ) {
36
- const ykitConfig = requireg ( sysPath . join ( process . cwd ( ) , configFile ) ) ;
36
+ let ykitConfig = require ( sysPath . join ( process . cwd ( ) , configFile ) ) ;
37
+ if ( typeof ykitConfig . config === 'function' ) {
38
+ ykitConfig = ykitConfig . config ( ) ;
39
+ }
37
40
if ( ykitConfig . build && ykitConfig . build . ignoreNpm ) {
38
41
ignoreNpm = true ;
39
42
}
You can’t perform that action at this time.
0 commit comments