dist build should be ESM also

This commit is contained in:
Sebastian 2022-10-31 13:40:09 -03:00
parent 0e7a0741c6
commit ccd7f07c46
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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,