Skip to content

Commit ceccaf3

Browse files
committed
skip scripts
1 parent 5efa2af commit ceccaf3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

scripts/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ for dir in */; do
1111
subdir="${dir%/}"
1212

1313
# Check if a package.json file exists in the current subdirectory
14-
if [ -f "$subdir/package.json" ]; then
14+
if [[ -f "$subdir/package.json" && "$subdir" != "scripts" ]]; then
1515
echo "--> Found package.json in '$subdir'. Running 'npm run compile'..."
1616

1717
# Use a subshell (parentheses) for the 'cd' command.

scripts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"description": "Internal repo scripts",
55
"scripts": {
6-
"compile": "cp ../tsconfig.json.template ./tsconfig.json && tsc"
76
},
87
"author": "samstern@google.com",
98
"license": "Apache-2.0"

0 commit comments

Comments
 (0)