full ESM build

This commit is contained in:
Sebastian 2022-10-31 14:00:22 -03:00
parent ccd7f07c46
commit f0fde728a3
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
3 changed files with 5 additions and 5 deletions

View File

@ -23,8 +23,8 @@ install:
install -d $(install_target)/node_modules/taler-wallet-cli install -d $(install_target)/node_modules/taler-wallet-cli
install -d $(install_target)/node_modules/taler-wallet-cli/bin install -d $(install_target)/node_modules/taler-wallet-cli/bin
install -d $(install_target)/node_modules/taler-wallet-cli/dist install -d $(install_target)/node_modules/taler-wallet-cli/dist
install ./dist/taler-wallet-cli.js $(install_target)/node_modules/taler-wallet-cli/dist/ install ./dist/taler-wallet-cli.mjs $(install_target)/node_modules/taler-wallet-cli/dist/
install ./dist/taler-wallet-cli.js.map $(install_target)/node_modules/taler-wallet-cli/dist/ install ./dist/taler-wallet-cli.mjs.map $(install_target)/node_modules/taler-wallet-cli/dist/
install ./bin/taler-wallet-cli.mjs $(install_target)/node_modules/taler-wallet-cli/bin/ install ./bin/taler-wallet-cli.mjs $(install_target)/node_modules/taler-wallet-cli/bin/
ln -sf $(install_target)/node_modules/taler-wallet-cli/bin/taler-wallet-cli.mjs $(prefix)/bin/taler-wallet-cli.mjs ln -sf $(install_target)/node_modules/taler-wallet-cli/bin/taler-wallet-cli.mjs $(prefix)/bin/taler-wallet-cli.mjs
endif endif

View File

@ -1,6 +1,6 @@
#!/usr/bin/env node #!/usr/bin/env node
import { main } from '../dist/taler-wallet-cli.js'; import { main } from '../dist/taler-wallet-cli.mjs';
async function run() { async function run() {
try { try {

View File

@ -11,9 +11,9 @@
}, },
"author": "Florian Dold", "author": "Florian Dold",
"license": "GPL-3.0", "license": "GPL-3.0",
"main": "dist/taler-wallet-cli.js", "main": "dist/taler-wallet-cli.mjs",
"bin": { "bin": {
"taler-wallet-cli": "./bin/taler-wallet-cli.js" "taler-wallet-cli": "./bin/taler-wallet-cli.mjs"
}, },
"type": "module", "type": "module",
"scripts": { "scripts": {