From 2428b9c258bdcb2e3240862b4a79f5aac9656e62 Mon Sep 17 00:00:00 2001 From: Erica Pisani Date: Thu, 16 Nov 2023 09:51:50 -0500 Subject: [PATCH] feat: create declaration maps when building project (#6170) 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 Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .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 2f52d9d1573..7a025d01ba6 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,