From ccd7f07c460d20bd363875095699263e695cd491 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 31 Oct 2022 13:40:09 -0300 Subject: [PATCH] dist build should be ESM also --- packages/taler-wallet-cli/bin/taler-wallet-cli.mjs | 2 +- packages/taler-wallet-cli/rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs b/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs index bcec228e6..4fa3d45c4 100755 --- a/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs +++ b/packages/taler-wallet-cli/bin/taler-wallet-cli.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node -import { main } from '../lib/index.js'; +import { main } from '../dist/taler-wallet-cli.js'; async function run() { try { diff --git a/packages/taler-wallet-cli/rollup.config.js b/packages/taler-wallet-cli/rollup.config.js index d9ca132b7..fd3eed97b 100644 --- a/packages/taler-wallet-cli/rollup.config.js +++ b/packages/taler-wallet-cli/rollup.config.js @@ -15,7 +15,7 @@ export default { input: "lib/index.js", output: { file: pkg.main, - format: "cjs", + format: "es", sourcemap: true, sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => { // Transform to source map paths to virtual path. Otherwise,