From ffb1cf3db94a75fae1226d4eefca0c1d34dd1036 Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Thu, 8 Dec 2016 22:26:49 -0800 Subject: [PATCH] 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. --- .npmignore | 13 ------------- package.json | 8 ++++++++ 2 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index e5c8da9..0000000 --- a/.npmignore +++ /dev/null @@ -1,13 +0,0 @@ -test/ -tmp/ -.github/ -.documentup.json -.gitignore -.eslintrc -.eslintignore -.lgtm -.travis.yml -.gitattributes -appveyor.yml -RELEASE.md -CONTRIBUTING.md diff --git a/package.json b/package.json index cbb6357..462f7db 100644 --- a/package.json +++ b/package.json @@ -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",