From e66df996e4290d33de121d7d6ea85d9a6d7d1dba Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Mon, 12 Feb 2024 14:18:53 +0000 Subject: [PATCH] Do not do ts-ignore in webcrypto --- src/webcrypto.ts | 1 - tsconfig.esm.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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",