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 #!/usr/bin/env node
import { main } from '../lib/index.js'; import { main } from '../dist/taler-wallet-cli.js';
async function run() { async function run() {
try { try {

View File

@ -15,7 +15,7 @@ export default {
input: "lib/index.js", input: "lib/index.js",
output: { output: {
file: pkg.main, file: pkg.main,
format: "cjs", format: "es",
sourcemap: true, sourcemap: true,
sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => { sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
// Transform to source map paths to virtual path. Otherwise, // Transform to source map paths to virtual path. Otherwise,