File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,19 @@ function handleArguments(env) {
60
60
gutil . log ( chalk . red ( 'Local gulp (installed in gulpfile dir) is' , env . modulePackage . version ) ) ;
61
61
}
62
62
63
+ // chdir before requiring gulpfile to make sure
64
+ // we let them chdir as needed
65
+ if ( process . cwd ( ) !== env . cwd ) {
66
+ process . chdir ( env . cwd ) ;
67
+ gutil . log ( 'Working directory changed to' , chalk . magenta ( tildify ( env . cwd ) ) ) ;
68
+ }
69
+
63
70
var gulpFile = require ( env . configPath ) ;
64
71
gutil . log ( 'Using gulpfile' , chalk . magenta ( tildify ( env . configPath ) ) ) ;
65
72
66
73
var gulpInst = require ( env . modulePath ) ;
67
74
logEvents ( gulpInst ) ;
68
75
69
- if ( process . cwd ( ) !== env . cwd ) {
70
- process . chdir ( env . cwd ) ;
71
- gutil . log ( 'Working directory changed to' , chalk . magenta ( tildify ( env . cwd ) ) ) ;
72
- }
73
-
74
76
process . nextTick ( function ( ) {
75
77
if ( tasksFlag ) {
76
78
return logTasks ( gulpFile , gulpInst ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp" ,
3
3
"description" : " The streaming build system" ,
4
- "version" : " 3.6.1 " ,
4
+ "version" : " 3.6.2 " ,
5
5
"homepage" : " http://gulpjs.com" ,
6
6
"repository" : " gulpjs/gulp" ,
7
7
"author" : " Fractal <contact@wearefractal.com> (http://wearefractal.com/)" ,
You can’t perform that action at this time.
0 commit comments