From 8c39a6ac5a56adf83123cc6ffa3e378cacf84481 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 14 Feb 2024 01:10:32 +0000 Subject: [PATCH] tsconfig: change module to Node16, copy noble-ciphers change --- src/package.json | 3 +++ tsconfig.esm.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 src/package.json diff --git a/src/package.json b/src/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/src/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 0222cfa..ec6b547 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -14,11 +14,11 @@ "noUnusedParameters": true, "baseUrl": ".", "paths": { - "@noble/hashes/crypto": ["src/crypto"] + "@noble/hashes/crypto": ["src/crypto.ts"] }, - "module": "es2020", + "module": "Node16", "outDir": "esm", - "moduleResolution": "bundler" + "moduleResolution": "Node16" }, "include": ["src"], "exclude": ["node_modules", "lib"]