Skip to content

Commit

Permalink
chore: limit published files (#1745)
Browse files Browse the repository at this point in the history
By default, NPM will pack and publish all files in the directory.
For us, that was 50+ files including lint configs, Github templates,
RFCs, examples, etc.
This change limits the files to just those used by consumers when in the
context of a dependency. Plus what NPM always includes: README, LICENSE,
and CHANGELOG.
  • Loading branch information
mastermatt committed Oct 15, 2019
1 parent d687179 commit 69976a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,10 @@
"tests/"
]
},
"license": "MIT"
"license": "MIT",
"files": [
"index.js",
"lib",
"types/index.d.ts"
]
}

0 comments on commit 69976a7

Please sign in to comment.