Generate correct includes list on windows hosts.

This commit is contained in:
lilliputten
2018-04-04 17:23:08 +03:00
parent 842cdcfcf7
commit 55bcd28729
+3 -2
View File
@@ -20,9 +20,10 @@ function getSymbols(callback) {
}); });
} }
const srcPath = path.posix.resolve(__dirname, '../src').replace(/\\/g,'/');
function getPath(name) { function getPath(name) {
const fullPath = require.resolve(path.resolve('src', name)); const fullPath = require.resolve(path.resolve('src', name)).replace(/\\/g,'/');
return './' + path.posix.relative('src/', fullPath); return './' + path.posix.relative(srcPath, fullPath);
} }
/** /**