Make sure all example packages has private: true (#28008)

Update the `check-exampels.sh` script to also ensure all examples has `private: true` (763d9979f7)

Update exampels (1) that did not have `private: true` (bcdc4a3ae0)
This commit is contained in:
Oscar Busk 2021-08-12 18:18:41 +02:00 committed by GitHub
parent 9bf322503b
commit 69d6001c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
{
"private": true,
"name": "with-fauna",
"version": "1.0.0",
"license": "MIT",

View file

@ -3,7 +3,7 @@
for folder in examples/* ; do
cp -n packages/create-next-app/templates/default/gitignore $folder/.gitignore;
if [ -f "$folder/package.json" ]; then
cat $folder/package.json | jq '.license = "MIT"' | sponge $folder/package.json
cat $folder/package.json | jq '.license = "MIT" | .private = true' | sponge $folder/package.json
fi
done;