dist build should be ESM also
This commit is contained in:
parent
0e7a0741c6
commit
ccd7f07c46
@ -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 {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user