Skip to content

Commit 047777e

Browse files
committed
Fixes build:docs failing on windows due to evil backslashes
1 parent 7a62bd1 commit 047777e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,12 @@ gulp.task( 'deploy:custom', function() {
248248
} );
249249

250250
gulp.task('build:docs', function () {
251-
exec('./node_modules/.bin/jsdoc lib/ --configure ./.jsdocrc.json', err => {
251+
var cmd = './node_modules/.bin/jsdoc lib/ --configure ./.jsdocrc.json';
252+
253+
if (os.platform() !== 'darwin')
254+
cmd = cmd.replace(/\//g, '\\');
255+
256+
exec(cmd, err => {
252257
if (err) {
253258
console.error(err)
254259
}

0 commit comments

Comments
 (0)