From a759a44358711180b37cf4ad25f28af47e3de298 Mon Sep 17 00:00:00 2001 From: Jean Lauliac Date: Tue, 27 Feb 2018 08:28:13 -0800 Subject: [PATCH] npmignore: ignore tests and fixtures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This try to address #17672 and https://github.com/facebook/metro/issues/139. We should probably not include these folders in the released version of React Native, as they are used only for testing—am I incorrect? cc MoOx, t4deu. I ran: ``` npm pack tar -t -f react-native-1000.0.0.tgz | less ``` Then verified that `__fixture__` was not part of the package. https://github.com/facebook/react-native/pull/17672 [GENERAL] [BUGFIX] [.npmignore] - Do not publish test-specific files Closes https://github.com/facebook/react-native/pull/18019 Differential Revision: D7098211 Pulled By: jeanlauliac fbshipit-source-id: 0748ad8c064450bd2a9f4d6f49675a7f74fb300f --- Libraries/.npmignore | 1 + local-cli/.npmignore | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 Libraries/.npmignore create mode 100644 local-cli/.npmignore diff --git a/Libraries/.npmignore b/Libraries/.npmignore new file mode 100644 index 000000000..c912533dd --- /dev/null +++ b/Libraries/.npmignore @@ -0,0 +1 @@ +__tests__ diff --git a/local-cli/.npmignore b/local-cli/.npmignore new file mode 100644 index 000000000..e40506d71 --- /dev/null +++ b/local-cli/.npmignore @@ -0,0 +1,2 @@ +__fixtures__ +__tests__