Skip to content

Commit fddf767

Browse files
committed
ci: optimize typecheck
1 parent 8fe496c commit fddf767

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"build:renderer": "vite build",
1414
"start": "bun build:preload && electron .",
1515
"typecheck": "./scripts/typecheck.sh",
16-
"typecheck:main": "./scripts/typecheck.sh --main",
1716
"debug": "bun src/debug/index.ts",
1817
"lint": "./scripts/lint.sh",
1918
"lint:fix": "./scripts/lint.sh --fix",

scripts/lint.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ if [ "$1" = "--fix" ]; then
1515
else
1616
echo "Running eslint..."
1717
eslint "$ESLINT_PATTERN"
18-
echo "Running typecheck (renderer)..."
19-
bun run typecheck
20-
echo "Running typecheck (main)..."
21-
bun run typecheck:main
18+
./scripts/typecheck.sh
2219
echo "All lint checks passed!"
2320
fi

scripts/typecheck.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
77

88
cd "$PROJECT_ROOT"
99

10-
if [ "$1" = "--main" ]; then
11-
echo "Running typecheck (main)..."
12-
tsc --noEmit -p tsconfig.main.json
13-
elif [ "$1" = "--renderer" ]; then
14-
echo "Running typecheck (renderer)..."
15-
tsc --noEmit
16-
else
17-
echo "Running typecheck (renderer)..."
18-
tsc --noEmit
19-
echo "Running typecheck (main)..."
20-
tsc --noEmit -p tsconfig.main.json
21-
echo "All typechecks passed!"
22-
fi
10+
bun x concurrently -g \
11+
"tsc --noEmit" \
12+
"tsc --noEmit -p tsconfig.main.json"

0 commit comments

Comments
 (0)