chore: don’t ship tsbuildinfo files in npm package (#6809)

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.
This commit is contained in:
Jack Franklin 2021-02-08 16:21:41 +00:00 committed by GitHub
parent 5f7b048080
commit 6fec36d8ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,10 @@
"release": "node utils/remove_version_suffix.js && standard-version --commit-all" "release": "node utils/remove_version_suffix.js && standard-version --commit-all"
}, },
"files": [ "files": [
"lib/", "lib/**/*.d.ts",
"lib/**/*.d.ts.map",
"lib/**/*.js",
"lib/**/*.js.map",
"install.js", "install.js",
"typescript-if-required.js", "typescript-if-required.js",
"cjs-entry.js", "cjs-entry.js",