packaging fixes
This commit is contained in:
parent
ca3ff8e571
commit
de0d004dd9
@ -5,10 +5,10 @@
|
|||||||
"exports": {
|
"exports": {
|
||||||
".": "./lib/index.js"
|
".": "./lib/index.js"
|
||||||
},
|
},
|
||||||
"module": "./lib/index.node.js",
|
"module": "./lib/index.js",
|
||||||
"main": "./lib/index.node.js",
|
"main": "./lib/index.js",
|
||||||
"browser": {
|
"browser": {
|
||||||
"./lib/index.node.js": "./lib/index.js"
|
"./lib/index.js": "./lib/index.browser.js"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
|
21
packages/taler-util/src/index.browser.ts
Normal file
21
packages/taler-util/src/index.browser.ts
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { TalerErrorCode } from "./taler-error-codes.js";
|
||||||
|
|
||||||
|
export { TalerErrorCode };
|
||||||
|
|
||||||
|
export * from "./amounts.js";
|
||||||
|
export * from "./backupTypes.js";
|
||||||
|
export * from "./codec.js";
|
||||||
|
export * from "./helpers.js";
|
||||||
|
export * from "./libtool-version.js";
|
||||||
|
export * from "./notifications.js";
|
||||||
|
export * from "./payto.js";
|
||||||
|
export * from "./ReserveStatus.js";
|
||||||
|
export * from "./ReserveTransaction.js";
|
||||||
|
export * from "./talerTypes.js";
|
||||||
|
export * from "./taleruri.js";
|
||||||
|
export * from "./time.js";
|
||||||
|
export * from "./transactionsTypes.js";
|
||||||
|
export * from "./walletTypes.js";
|
||||||
|
export * from "./i18n.js";
|
||||||
|
export * from "./logging.js";
|
||||||
|
export * from "./url.js";
|
@ -1,2 +0,0 @@
|
|||||||
export * from "./index.js";
|
|
||||||
export * from "./talerconfig.js";
|
|
@ -1,21 +1,3 @@
|
|||||||
import { TalerErrorCode } from "./taler-error-codes.js";
|
export * from "./index.browser.js";
|
||||||
|
export * from "./talerconfig.js";
|
||||||
export { TalerErrorCode };
|
export * from "./globbing/minimatch.js";
|
||||||
|
|
||||||
export * from "./amounts.js";
|
|
||||||
export * from "./backupTypes.js";
|
|
||||||
export * from "./codec.js";
|
|
||||||
export * from "./helpers.js";
|
|
||||||
export * from "./libtool-version.js";
|
|
||||||
export * from "./notifications.js";
|
|
||||||
export * from "./payto.js";
|
|
||||||
export * from "./ReserveStatus.js";
|
|
||||||
export * from "./ReserveTransaction.js";
|
|
||||||
export * from "./talerTypes.js";
|
|
||||||
export * from "./taleruri.js";
|
|
||||||
export * from "./time.js";
|
|
||||||
export * from "./transactionsTypes.js";
|
|
||||||
export * from "./walletTypes.js";
|
|
||||||
export * from "./i18n.js";
|
|
||||||
export * from "./logging.js";
|
|
||||||
export * from "./url.js";
|
|
||||||
|
@ -40,7 +40,6 @@ import {
|
|||||||
codecForString,
|
codecForString,
|
||||||
Logger,
|
Logger,
|
||||||
Configuration,
|
Configuration,
|
||||||
getTimestampNow,
|
|
||||||
} from "@gnu-taler/taler-util";
|
} from "@gnu-taler/taler-util";
|
||||||
import {
|
import {
|
||||||
NodeHttpLib,
|
NodeHttpLib,
|
||||||
|
@ -22,12 +22,8 @@ import * as fs from "fs";
|
|||||||
import * as util from "util";
|
import * as util from "util";
|
||||||
import {
|
import {
|
||||||
GlobalTestState,
|
GlobalTestState,
|
||||||
DbInfo,
|
|
||||||
pingProc,
|
pingProc,
|
||||||
ProcessWrapper,
|
ProcessWrapper,
|
||||||
runCommand,
|
|
||||||
setupDb,
|
|
||||||
sh,
|
|
||||||
} from "./harness";
|
} from "./harness";
|
||||||
import { Configuration } from "@gnu-taler/taler-util";
|
import { Configuration } from "@gnu-taler/taler-util";
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gnu-taler/taler-wallet-core": "workspace:*",
|
"@gnu-taler/taler-wallet-core": "workspace:*",
|
||||||
|
"@gnu-taler/taler-util": "workspace:*",
|
||||||
"tslib": "^2.1.0"
|
"tslib": "^2.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,13 @@
|
|||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"typeRoots": ["./node_modules/@types"]
|
"typeRoots": ["./node_modules/@types"]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"]
|
"include": ["src/**/*"],
|
||||||
|
"references": [
|
||||||
|
{
|
||||||
|
"path": "../taler-wallet-core/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../taler-util/"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -170,6 +170,7 @@ importers:
|
|||||||
|
|
||||||
packages/taler-wallet-embedded:
|
packages/taler-wallet-embedded:
|
||||||
specifiers:
|
specifiers:
|
||||||
|
'@gnu-taler/taler-util': workspace:*
|
||||||
'@gnu-taler/taler-wallet-core': workspace:*
|
'@gnu-taler/taler-wallet-core': workspace:*
|
||||||
'@rollup/plugin-commonjs': ^17.0.0
|
'@rollup/plugin-commonjs': ^17.0.0
|
||||||
'@rollup/plugin-json': ^4.1.0
|
'@rollup/plugin-json': ^4.1.0
|
||||||
@ -184,6 +185,7 @@ importers:
|
|||||||
tslib: ^2.1.0
|
tslib: ^2.1.0
|
||||||
typescript: ^4.2.3
|
typescript: ^4.2.3
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@gnu-taler/taler-util': link:../taler-util
|
||||||
'@gnu-taler/taler-wallet-core': link:../taler-wallet-core
|
'@gnu-taler/taler-wallet-core': link:../taler-wallet-core
|
||||||
tslib: 2.2.0
|
tslib: 2.2.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
Loading…
Reference in New Issue
Block a user