From 083c4cf5d96314c44dd716cf3cc931e95b651bbd Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 23 Dec 2022 12:59:29 +0100 Subject: spill extra functionality from wallet-cli into taler-harness We want to keep taler-wallet-cli smaller and have fewer dependencies. --- packages/taler-wallet-cli/build.mjs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'packages/taler-wallet-cli/build.mjs') diff --git a/packages/taler-wallet-cli/build.mjs b/packages/taler-wallet-cli/build.mjs index b6b3f4a16..14b626815 100755 --- a/packages/taler-wallet-cli/build.mjs +++ b/packages/taler-wallet-cli/build.mjs @@ -53,17 +53,15 @@ function git_hash() { export const buildConfig = { entryPoints: ["src/index.ts"], - outfile: "dist/taler-wallet-cli.cjs", + outfile: "dist/taler-wallet-cli.mjs", bundle: true, minify: false, target: [ - 'es6' + 'es2020' ], - format: 'cjs', - platform: 'node', + format: 'esm', + platform: 'neutral', sourcemap: true, - jsxFactory: 'h', - jsxFragment: 'Fragment', define: { '__VERSION__': `"${_package.version}"`, '__GIT_HASH__': `"${GIT_HASH}"`, @@ -76,4 +74,3 @@ esbuild console.log(e) process.exit(1) }); - -- cgit v1.2.3