Closed falsepopsky closed 1 year ago
Could save a few more bytes by using an .npmignore
file instead, as package.json
(and in turn the files
key and its contents) are published.
Thanks for the PR. I submitted another one which makes some fixes to tsconfig. However, that raises another question. While #1130 is seeking for the bundling of types, I'm not sure we want to add to the package size to do so, especially since an ESLint config file may have a different import approach then the rest of the package containing it.
I'm also wondering whether we should exclude /docs
.
:tada: This issue has been resolved in version 46.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Issue
This pull request addresses the issue of including unused files in the publish process. ex:
tsconfig.json
andtsconfig-prod.json
Solution
With this pull request, when adding the
src
anddocs
folders to thefiles
section inpackage.json
, the build process will automatically exclude other unused files. Note thatreadme
andlicense
files are always included (for documentation purposes please refer to this link).Before
After
npm pack
Additional Comments:
/dist
to imports requiring@typescript-eslint/types
because it was being inferred asany
, leading to lint errors.