From 83bab7313db39b1ae833bf662e78dfd732875bbe Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Wed, 15 Nov 2023 14:46:11 -0500 Subject: [PATCH] feat: create declaration maps when building project Intended to improve the DX for devs actively working on the project. These will not be published in the bundled version of the project nor should they be added to source control --- .gitignore | 1 + package.json | 3 ++- tsconfig.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 365fde02afd..0a6646b5d33 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ coverage src/**/*.mjs !src/functions-templates/**/*.mjs src/**/*.d.mts +src/**/*.d.mts.map tsconfig.tsbuildinfo # node sdk diff --git a/package.json b/package.json index 8064cd96e12..9db9f9a364b 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "/src/lib/templates/**", "!/src/**/node_modules/**", "!/src/**/*.test.js", - "!/src/**/*.mts" + "!/src/**/*.mts", + "!/src/**/*.d.mts.map" ], "homepage": "https://github.com/netlify/cli", "keywords": [ diff --git a/tsconfig.json b/tsconfig.json index 5557c8e2509..3fcb847662f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "module": "NodeNext", "moduleResolution": "NodeNext", "declaration": true, - "declarationMap": false, + "declarationMap": true, "removeComments": false, "downlevelIteration": true, "forceConsistentCasingInFileNames": true,