full ESM build
This commit is contained in:
parent
ccd7f07c46
commit
f0fde728a3
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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": {
|
||||||
|
Loading…
Reference in New Issue
Block a user