diff --git a/src/webcrypto.ts b/src/webcrypto.ts index 21005d2..a351bb1 100644 --- a/src/webcrypto.ts +++ b/src/webcrypto.ts @@ -6,7 +6,6 @@ // Once node.js 18 is deprecated, we can just drop the import. // // Use full path so that Node.js can rewrite it to `cryptoNode.js`. -// @ts-ignore: `tsc` doesn't understand `@noble/ciphers/crypto` is a valid import. import { randomBytes, getWebcryptoSubtle } from '@noble/ciphers/crypto'; import { Cipher, concatBytes } from './utils.js'; import { number } from './_assert.js'; diff --git a/tsconfig.esm.json b/tsconfig.esm.json index a5b771e..ac89181 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -14,7 +14,7 @@ "noUnusedParameters": true, "baseUrl": ".", "paths": { - "@noble/ciphers/crypto": ["src/crypto"] + "@noble/ciphers/crypto": ["src/crypto.ts"] }, "module": "Node16", "outDir": "esm",