From 2d3070e8dd9a9cf41621e60645c30d104a91b67f Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Wed, 16 Aug 2023 16:36:58 +0200 Subject: [PATCH] Add TypeScript declaration map (#171) * Add declarationMap for lib * Add schemas to tsconfigs --- .gitignore | 1 + tsconfig.json | 1 + tsconfig.lib.json | 2 ++ tsconfig.test.json | 1 + 4 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index dcaeb839..b6ec50e2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ credentials*.json .nyc_output *.tsbuildinfo *.d.ts +*.d.ts.map *.d.mts diff --git a/tsconfig.json b/tsconfig.json index 99b0bcdd..ba5c6d31 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "http://json.schemastore.org/tsconfig", "files": [], "references": [{ "path": "./tsconfig.lib.json" }, { "path": "./tsconfig.test.json" }] } diff --git a/tsconfig.lib.json b/tsconfig.lib.json index d09315d4..c78f71dc 100644 --- a/tsconfig.lib.json +++ b/tsconfig.lib.json @@ -1,8 +1,10 @@ { + "$schema": "http://json.schemastore.org/tsconfig", "extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node16/tsconfig.json"], "compilerOptions": { "composite": true, "emitDeclarationOnly": true, + "declarationMap": true, "rootDir": "lib", "moduleResolution": "node16", "types": ["node"], diff --git a/tsconfig.test.json b/tsconfig.test.json index 2ea1311f..6eed0e85 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,4 +1,5 @@ { + "$schema": "http://json.schemastore.org/tsconfig", "extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node16/tsconfig.json"], "compilerOptions": { "noEmit": true,