Closed AviVahl closed 7 years ago
On windows, cwd contains the character \, so it must be escaped to \\ for the path to work in a string.
\
\\
before change: module.exports = require('C:\projects\my-project');
module.exports = require('C:\projects\my-project');
after change: module.exports = require('C:\\projects\\my-project');
module.exports = require('C:\\projects\\my-project');
change should not affect non-Windows platforms. as they use / as path separator.
/
Thanks @AviVahl!
@yortus thx for merging! If possible, could you please publish it as a quick bug-fix release? We use your package and it's currently broken on Windows machines...
Published v0.2.1
On windows, cwd contains the character
\
, so it must be escaped to\\
for the path to work in a string.before change:
module.exports = require('C:\projects\my-project');
after change:
module.exports = require('C:\\projects\\my-project');
change should not affect non-Windows platforms. as they use
/
as path separator.