mirror of
https://github.com/facebook/react-native.git
synced 2026-03-31 09:02:15 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50786 Follows https://github.com/facebook/react-native/pull/50784. Having any `.npmignore` files is a gotcha — remove and replace with `package.json#files`. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D73193257 fbshipit-source-id: de715d74195e4f53c817c11f244a61c79b8ce5bc
13 lines
351 B
Bash
Executable File
13 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
set -e
|
|
|
|
if git ls-files | grep -E '\.npmignore$'; then
|
|
echo "Error: Found unexpected .npmignore file(s). Please use package.json#files instead."
|
|
exit 1
|
|
fi
|