handle package.json properly in CLI
This commit is contained in:
parent
ecf763126e
commit
1fa3cad2e7
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "taler-wallet-cli",
|
||||
"version": "0.6.12",
|
||||
"version": "0.7.1-dev",
|
||||
"description": "",
|
||||
"engines": {
|
||||
"node": ">=0.12.0"
|
||||
|
@ -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,
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user