i18next-conv
Advanced tools
Comparing version 12.0.2 to 12.1.0
@@ -91,3 +91,3 @@ #!/usr/bin/env node | ||
console.log('(call program with argument -h for help.)'); | ||
process.exit(); // eslint-disable-line no-process-exit | ||
process.exit(1); // eslint-disable-line no-process-exit | ||
} | ||
@@ -110,2 +110,3 @@ | ||
console.log(red('failed writing file')); | ||
process.exitCode = 1; | ||
}); | ||
@@ -115,2 +116,3 @@ } else { | ||
console.log('(call program with argument -h for help.)'); | ||
process.exitCode = 1; | ||
} | ||
@@ -171,4 +173,9 @@ | ||
.catch((err) => { | ||
if (err.code === 'ENOENT') console.log(red(`file ${source} was not found.`)); | ||
if (err.code === 'ENOENT') { | ||
console.log(red(`file ${source} was not found.`)); | ||
} else { | ||
console.log(red(err.message)); | ||
} | ||
throw err; | ||
}); | ||
} |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "12.0.2", | ||
"version": "12.1.0", | ||
"type": "module", | ||
@@ -53,3 +53,3 @@ "engines": { | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^8.9.0", | ||
"eslint": "^8.10.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
@@ -59,5 +59,5 @@ "eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"mocha": "^9.2.0", | ||
"rollup": "^2.67.3" | ||
"mocha": "^9.2.1", | ||
"rollup": "^2.69.1" | ||
} | ||
} |
27597
278