From 6fec36d8bac114680e0403c620b34c1dcce7cf28 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Mon, 8 Feb 2021 16:21:41 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20don=E2=80=99t=20ship=20tsbuildinfo=20f?= =?UTF-8?q?iles=20in=20npm=20package=20(#6809)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR updates our `files` list to be more specific; rather than include everything from `lib`, we include just `.js`, `.d.ts`, and their equivalent sourcemaps. This prevents noisy meta-files like `.tsbuildinfo` sneaking into the package, which are no use to anyone. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0a87ed87c42..2025c56e74e 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,10 @@ "release": "node utils/remove_version_suffix.js && standard-version --commit-all" }, "files": [ - "lib/", + "lib/**/*.d.ts", + "lib/**/*.d.ts.map", + "lib/**/*.js", + "lib/**/*.js.map", "install.js", "typescript-if-required.js", "cjs-entry.js",