chore: switch to files attribute from npmignore (#613)

Prefer the `files` attribute over `.npmignore` to minimize the bytes users
download when installing ShellJS. This cuts the size down from ~1.8M to ~1.2M.
This commit is contained in:
Nate Fischer 2016-12-08 22:26:49 -08:00 committed by Brandon Freitag
parent 40273b73c4
commit ffb1cf3db9
2 changed files with 8 additions and 13 deletions

View File

@ -1,13 +0,0 @@
test/
tmp/
.github/
.documentup.json
.gitignore
.eslintrc
.eslintignore
.lgtm
.travis.yml
.gitattributes
appveyor.yml
RELEASE.md
CONTRIBUTING.md

View File

@ -23,6 +23,14 @@
"license": "BSD-3-Clause",
"homepage": "http://github.com/shelljs/shelljs",
"main": "./shell.js",
"files": [
"global.js",
"make.js",
"plugin.js",
"shell.js",
"bin",
"src"
],
"scripts": {
"posttest": "npm run lint",
"test": "node scripts/run-tests && ava --serial ava-test/*.js",