Merge pull request #8054 from lilliputten/win-build

Generate correct includes list for `build-index` script on windows hosts.
This commit is contained in:
Andreas Hocevar
2018-04-04 20:22:37 +02:00
committed by GitHub

View File

@@ -20,9 +20,10 @@ function getSymbols(callback) {
});
}
const srcPath = path.posix.resolve(__dirname, '../src').replace(/\\/g, '/');
function getPath(name) {
const fullPath = require.resolve(path.resolve('src', name));
return './' + path.posix.relative('src/', fullPath);
return './' + path.posix.relative(srcPath, fullPath.replace(/\\/g, '/'));
}
/**