From 978e2dc3f08c9cad18b9a1ca09ef3f86a42b1640 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 3 Jun 2021 15:32:04 -0700 Subject: [PATCH] chore(package) Use a "files" list We have a fairly small number of things that we wish to ship in our package, and they're all nicely arranged in a small number of folders. Instead of having a sprawling .npmignore file, we should just get with the recommended best practice, and use a "files" list in package.json. --- .npmignore | 49 ------------------------------------------------- package.json | 7 +++++++ 2 files changed, 7 insertions(+), 49 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index ae91e6482791f..0000000000000 --- a/.npmignore +++ /dev/null @@ -1,49 +0,0 @@ -*.swp -.*.swp -netlify.toml -npm-debug.log -/.github -/test -node_modules/marked -node_modules/marked-man -node_modules/tap -tap-snapshots -node_modules/.bin -node_modules/npm-registry-mock -/npmrc -/release/ -/coverage/ - -# don't need these in the npm package. -Makefile -.licensee.json -.mailmap -changelogs/* -configure -make.bat -scripts -html/*.png -docs/nav.yml -docs/config.json -docs/dockhand.js -docs/template.html -docs/package.json -docs/node_modules -# docs source files are required by `npm help-search` do not exclude those -!docs/content/ - -# don't ignore .npmignore files -# these are used in some tests. -!.npmignore - -/npm-*.tgz - -*.pyc - -Session.vim -.nyc_output -/.editorconfig - -# don't ship smoke tests -smoke-tests/ -tap-snapshots/smoke-tests-index.js-TAP.test.js diff --git a/package.json b/package.json index 3f54979cb954e..93497cf408363 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,13 @@ "workspaces": [ "docs" ], + "files": [ + "bin", + "docs/content/**/*.md", + "docs/output/**/*.html", + "lib", + "man" + ], "keywords": [ "install", "modules",