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:
parent
9bf322503b
commit
69d6001c59
2 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"private": true,
|
||||
"name": "with-fauna",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue