The version 1.2.12 on npm has this code:
let pkgFile = __dirname + '/../package.json';
if (!fs_1.existsSync(pkgFile)) {
// tests will find it here
pkgFile = __dirname + '/../../package.json';
}
This fails on non-unix based systems. Should use the path helper to build the path.
The version 1.2.12 on npm has this code: let pkgFile = __dirname + '/../package.json'; if (!fs_1.existsSync(pkgFile)) { // tests will find it here pkgFile = __dirname + '/../../package.json'; }
This fails on non-unix based systems. Should use the path helper to build the path.