diff options
author | Florian Dold <florian@dold.me> | 2023-01-26 12:48:35 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-26 12:48:35 +0100 |
commit | 3cc26d00f85209c804d9f356598c0f749367ea74 (patch) | |
tree | 7b9d175cbc0de4312c98d80771fbda27f3fc8497 /packages/taler-util | |
parent | c57ba4c0cea133059ac30eae3c7e527886240059 (diff) | |
download | wallet-core-3cc26d00f85209c804d9f356598c0f749367ea74.tar.xz |
put taler wallet RPC into taler-util, make it cross-platform
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/package.json | 11 | ||||
-rw-r--r-- | packages/taler-util/tsconfig.json | 8 |
2 files changed, 14 insertions, 5 deletions
diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json index 15197c086..005d66123 100644 --- a/packages/taler-util/package.json +++ b/packages/taler-util/package.json @@ -12,6 +12,15 @@ "node": "./lib/index.node.js", "browser": "./lib/index.browser.js", "default": "./lib/index.js" + }, + "./twrpc": { + "default": "./lib/twrpc.js" + } + }, + "imports": { + "#twrpc-impl": { + "node": "./lib/twrpc-impl.node.js", + "default": "./lib/twrpc-impl.missing.js" } }, "scripts": { @@ -27,7 +36,7 @@ "esbuild": "^0.14.21", "prettier": "^2.5.1", "rimraf": "^3.0.2", - "typescript": "^4.8.4" + "typescript": "^4.9.4" }, "dependencies": { "big-integer": "^1.6.51", diff --git a/packages/taler-util/tsconfig.json b/packages/taler-util/tsconfig.json index cbf393f5a..34f35d253 100644 --- a/packages/taler-util/tsconfig.json +++ b/packages/taler-util/tsconfig.json @@ -4,11 +4,11 @@ "composite": true, "declaration": true, "declarationMap": false, - "target": "ES6", - "module": "ESNext", - "moduleResolution": "Node16", + "target": "ES2020", + "module": "ES2020", + "moduleResolution": "node16", "sourceMap": true, - "lib": ["es6"], + "lib": ["ES2020"], "types": ["node"], "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, |