Skip to content

Commit

Permalink
fix(types-template): exclude package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Dec 4, 2023
1 parent 8f3cc61 commit 78e23a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js-packages/scripts/generate_types/generate_types_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ done
package_name_replacement=$(printf '%s\n' "$package_name" | sed -e 's/[\/&]/\\&/g')
sed -i "s/PKGNAME/$package_name_replacement/" "$gen/README.md"

rsync -ar --exclude .gitignore types/ "$gen"
# Types template has its own .gitignore, and the rest of files is auto-generated by this script/provided in types_template.
rsync -ar --exclude .gitignore --exclude package.json --exclude tsconfig.json --exclude README.md types/ "$gen"
for file in "$gen"/augment-* "$gen"/**/types.ts; do
sed -i '1s;^;//@ts-nocheck\n;' "$file"
done
Expand Down

0 comments on commit 78e23a0

Please sign in to comment.