Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb36f84

Browse files
committed
update
1 parent 86d9b7d commit eb36f84

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

ci/lint-js-fast

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,27 @@ cd ../../src/platforms/wasm/compiler
4444
# Check if TypeScript is available (local installation first, then global)
4545
if [ -f "../../../../.cache/js-tools/node_modules/.bin/tsc.cmd" ]; then
4646
echo -e "${BLUE}Using local TypeScript for JSDoc type checking...${NC}"
47-
if ../../../../.cache/js-tools/node_modules/.bin/tsc.cmd --noEmit --project jsconfig.json 2>/dev/null; then
47+
if ../../../../.cache/js-tools/node_modules/.bin/tsc.cmd --noEmit --project jsconfig.json; then
4848
echo -e "${GREEN}✅ JSDoc type checking completed successfully${NC}"
4949
else
50-
echo -e "${YELLOW}⚠️ JSDoc type checking found type issues (expected - will be addressed separately)${NC}"
50+
echo -e "${RED}❌ JSDoc type checking failed with errors${NC}"
51+
exit 1
5152
fi
5253
elif [ -f "../../../../.cache/js-tools/node_modules/.bin/tsc" ]; then
5354
echo -e "${BLUE}Using local TypeScript for JSDoc type checking...${NC}"
54-
if ../../../../.cache/js-tools/node_modules/.bin/tsc --noEmit --project jsconfig.json 2>/dev/null; then
55+
if ../../../../.cache/js-tools/node_modules/.bin/tsc --noEmit --project jsconfig.json; then
5556
echo -e "${GREEN}✅ JSDoc type checking completed successfully${NC}"
5657
else
57-
echo -e "${YELLOW}⚠️ JSDoc type checking found type issues (expected - will be addressed separately)${NC}"
58+
echo -e "${RED}❌ JSDoc type checking failed with errors${NC}"
59+
exit 1
5860
fi
5961
elif command -v npx >/dev/null 2>&1 && npx tsc --version >/dev/null 2>&1; then
6062
echo -e "${BLUE}Using global TypeScript for JSDoc type checking...${NC}"
61-
if npx tsc --noEmit --project jsconfig.json 2>/dev/null; then
63+
if npx tsc --noEmit --project jsconfig.json; then
6264
echo -e "${GREEN}✅ JSDoc type checking completed successfully${NC}"
6365
else
64-
echo -e "${YELLOW}⚠️ JSDoc type checking found type issues (expected - will be addressed separately)${NC}"
66+
echo -e "${RED}❌ JSDoc type checking failed with errors${NC}"
67+
exit 1
6568
fi
6669
else
6770
echo -e "${YELLOW}⚠️ TypeScript not found, skipping JSDoc type checking${NC}"

0 commit comments

Comments
 (0)