handle package.json properly in CLI

This commit is contained in:
Florian Dold 2020-08-06 21:06:56 +05:30
parent ecf763126e
commit 1fa3cad2e7
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name": "taler-wallet-cli",
"version": "0.6.12",
"version": "0.7.1-dev",
"description": "",
"engines": {
"node": ">=0.12.0"

View File

@ -17,14 +17,12 @@ export default {
preferBuiltins: true,
}),
commonjs({
include: [/node_modules/, /dist/],
extensions: [".js", ".ts"],
ignoreGlobal: false,
sourceMap: false,
}),
json(),
commonjs({
sourceMap: false,
transformMixedEsModules: true,
}),
],
}

View File

@ -110,7 +110,7 @@ function applyVerbose(verbose: boolean): void {
function printVersion(): void {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const info = require("../../../package.json");
const info = require("../package.json");
console.log(`${info.version}`);
process.exit(0);
}