This commit is contained in:
Joao Moreno 2017-03-20 11:49:05 +01:00
parent 08528f2251
commit c9e7033fe4

View file

@ -457,7 +457,9 @@ export function readManifest(cwd = process.cwd(), nls = true): Promise<Manifest>
})
.then(validateManifest);
if (!nls) return manifest;
if (!nls) {
return manifest;
}
const manifestNLS = readFile(manifestNLSPath, 'utf8')
.catch<string>(err => err.code !== 'ENOENT' ? Promise.reject(err) : Promise.resolve('{}'))