Skip to content

Commit

Permalink
Fix paths-with-spaces handling for Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jan 24, 2020
1 parent 27e38f7 commit ffffb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get-paths.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const path = require('path');
exports.includeRaw = path.resolve(__dirname, 'include');
exports.include = exports.includeRaw.replace(/\\/g, '\\\\');
exports.includeRaw = [path.resolve(__dirname, 'include')];
exports.include = exports.includeRaw.map(x => `"${x}"`.replace(/\\/g, '\\\\')).join(' ');
exports.gyp = '';

0 comments on commit ffffb31

Please sign in to comment.