From c2b3f0e0a048e9a815259f3c77ca91f6abbade4d Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sat, 24 Aug 2024 13:36:19 +0900 Subject: [PATCH] Refine tsconfig.json for CI. --- x/dhkem-secp256k1/tsconfig.json | 5 ++++- x/dhkem-x25519/tsconfig.json | 5 ++++- x/dhkem-x448/tsconfig.json | 5 ++++- x/hybridkem-x25519-kyber768/tsconfig.json | 6 +++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/x/dhkem-secp256k1/tsconfig.json b/x/dhkem-secp256k1/tsconfig.json index a391478bc..3a08cdc69 100644 --- a/x/dhkem-secp256k1/tsconfig.json +++ b/x/dhkem-secp256k1/tsconfig.json @@ -2,10 +2,13 @@ "compilerOptions": { "module": "es2022", "target": "es2022", + "paths": { + "@hpke/core": ["../core/mod.ts"] + }, "allowImportingTsExtensions": true }, "include": [ "mod.ts", - "../../src/kems/dhkemSecp256k1.ts" + "src/**/*" ] } diff --git a/x/dhkem-x25519/tsconfig.json b/x/dhkem-x25519/tsconfig.json index c5f138a75..3a08cdc69 100644 --- a/x/dhkem-x25519/tsconfig.json +++ b/x/dhkem-x25519/tsconfig.json @@ -2,10 +2,13 @@ "compilerOptions": { "module": "es2022", "target": "es2022", + "paths": { + "@hpke/core": ["../core/mod.ts"] + }, "allowImportingTsExtensions": true }, "include": [ "mod.ts", - "../../src/kems/dhkemX25519.ts" + "src/**/*" ] } diff --git a/x/dhkem-x448/tsconfig.json b/x/dhkem-x448/tsconfig.json index 056194d40..3a08cdc69 100644 --- a/x/dhkem-x448/tsconfig.json +++ b/x/dhkem-x448/tsconfig.json @@ -2,10 +2,13 @@ "compilerOptions": { "module": "es2022", "target": "es2022", + "paths": { + "@hpke/core": ["../core/mod.ts"] + }, "allowImportingTsExtensions": true }, "include": [ "mod.ts", - "../../src/kems/dhkemX448.ts" + "src/**/*" ] } diff --git a/x/hybridkem-x25519-kyber768/tsconfig.json b/x/hybridkem-x25519-kyber768/tsconfig.json index 5c79696cb..f8ecb0e30 100644 --- a/x/hybridkem-x25519-kyber768/tsconfig.json +++ b/x/hybridkem-x25519-kyber768/tsconfig.json @@ -2,10 +2,14 @@ "compilerOptions": { "module": "es2022", "target": "es2022", + "paths": { + "@hpke/core": ["../core/mod.ts"], + "@hpke/dhkem-x25519": ["../dhkem-x25519/mod.ts"], + }, "allowImportingTsExtensions": true }, "include": [ "mod.ts", - "../../src/kems/hybridkemX25519Kyber768.ts" + "src/**/*" ] }