Backports the following commits to 6.x: - [canvas/gulp-scripts] replace script path in argv with gulp path (#25352)
This commit is contained in:
parent
0b449f34d8
commit
f754cf8019
|
@ -8,7 +8,7 @@ const { resolve } = require('path');
|
|||
|
||||
exports.runGulpTask = function(name) {
|
||||
process.chdir(resolve(__dirname, '../../..'));
|
||||
process.argv.splice(2, 0, name);
|
||||
process.argv.splice(1, 1, require.resolve('gulp/bin/gulp'), name);
|
||||
require('gulp/bin/gulp');
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue