@@ -44,24 +44,27 @@ cd ../../src/platforms/wasm/compiler
44
44
# Check if TypeScript is available (local installation first, then global)
45
45
if [ -f " ../../../../.cache/js-tools/node_modules/.bin/tsc.cmd" ]; then
46
46
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
48
48
echo -e " ${GREEN} ✅ JSDoc type checking completed successfully${NC} "
49
49
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
51
52
fi
52
53
elif [ -f " ../../../../.cache/js-tools/node_modules/.bin/tsc" ]; then
53
54
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
55
56
echo -e " ${GREEN} ✅ JSDoc type checking completed successfully${NC} "
56
57
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
58
60
fi
59
61
elif command -v npx > /dev/null 2>&1 && npx tsc --version > /dev/null 2>&1 ; then
60
62
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
62
64
echo -e " ${GREEN} ✅ JSDoc type checking completed successfully${NC} "
63
65
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
65
68
fi
66
69
else
67
70
echo -e " ${YELLOW} ⚠️ TypeScript not found, skipping JSDoc type checking${NC} "
0 commit comments