From 277e699817cdee46030b03103820264d840b5006 Mon Sep 17 00:00:00 2001 From: Tom Scholz Date: Sat, 10 Jun 2017 20:45:42 +0200 Subject: [PATCH] Explicitly list which directories and files to publish Switched from .npmignore to files array inside package.json - https://github.com/npm/npm/wiki/Files-and-Ignores - https://docs.npmjs.com/files/package.json --- .npmignore | 7 ------- package.json | 8 +++++++- 2 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 9f5f00804c2..00000000000 --- a/.npmignore +++ /dev/null @@ -1,7 +0,0 @@ -_site -bench -coverage -debug -docs -test -.nyc_output diff --git a/package.json b/package.json index 3587dacad27..fa0db4d17a5 100644 --- a/package.json +++ b/package.json @@ -131,5 +131,11 @@ "test-flow": "flow .", "test-cov": "nyc --require=flow-remove-types/register --reporter=text-summary --reporter=lcov --cache run-s test-unit test-render test-query", "prepublish": "in-publish && run-s build-dev build-min || not-in-publish" - } + }, + "files": [ + "dist/", + "flow-typed/", + "src/", + ".flowconfig" + ] }