aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-20 13:52:13 +0200
committerFlorian Dold <florian@dold.me>2021-08-20 13:52:13 +0200
commitde0d004dd94798c1713853c71d7f86f55fffb0a4 (patch)
treee5e4c9411ac387d2f26343e1c2054a3ac2b27455 /packages/taler-util
parentca3ff8e571872e89868d5bc11ed98718d688a5a7 (diff)
packaging fixes
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/package.json6
-rw-r--r--packages/taler-util/src/index.browser.ts21
-rw-r--r--packages/taler-util/src/index.node.ts2
-rw-r--r--packages/taler-util/src/index.ts24
4 files changed, 27 insertions, 26 deletions
diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json
index b4bc32214..4cbd829b9 100644
--- a/packages/taler-util/package.json
+++ b/packages/taler-util/package.json
@@ -5,10 +5,10 @@
"exports": {
".": "./lib/index.js"
},
- "module": "./lib/index.node.js",
- "main": "./lib/index.node.js",
+ "module": "./lib/index.js",
+ "main": "./lib/index.js",
"browser": {
- "./lib/index.node.js": "./lib/index.js"
+ "./lib/index.js": "./lib/index.browser.js"
},
"type": "module",
"types": "./lib/index.d.ts",
diff --git a/packages/taler-util/src/index.browser.ts b/packages/taler-util/src/index.browser.ts
new file mode 100644
index 000000000..a4b5cc8db
--- /dev/null
+++ b/packages/taler-util/src/index.browser.ts
@@ -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"; \ No newline at end of file
diff --git a/packages/taler-util/src/index.node.ts b/packages/taler-util/src/index.node.ts
deleted file mode 100644
index f0c805982..000000000
--- a/packages/taler-util/src/index.node.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from "./index.js";
-export * from "./talerconfig.js";
diff --git a/packages/taler-util/src/index.ts b/packages/taler-util/src/index.ts
index a4b5cc8db..06951231e 100644
--- a/packages/taler-util/src/index.ts
+++ b/packages/taler-util/src/index.ts
@@ -1,21 +1,3 @@
-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"; \ No newline at end of file
+export * from "./index.browser.js";
+export * from "./talerconfig.js";
+export * from "./globbing/minimatch.js";