Skip to content

Commit

Permalink
Make .ts import work again
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 31, 2024
1 parent 10237a8 commit 821571e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if test -f "${OUTPUT}tsconfig.json"; then
fi;

echo "⚙️ corepack yarn run tsc"
echo ""
tsc_result="$( cd "${OUTPUT}" && YARN_ENABLE_OFFLINE_MODE=1 corepack yarn run tsc --noEmit 2>&1 )"
test_exit=$?

Expand Down Expand Up @@ -385,6 +386,7 @@ if ls -U "${OUTPUT}/**/*.tst.ts" 1> /dev/null 2>&1; then

echo ""
echo "⚙️ corepack yarn tstyche"
echo ""
cd "${OUTPUT}" && corepack yarn tstyche 2> "${OUTPUT}tstyche.stderr.txt" 1> "${OUTPUT}tstyche.stdout.txt"

cat "${OUTPUT}tstyche.stdout.txt"
Expand Down Expand Up @@ -458,6 +460,8 @@ echo $jest_tests
# Run tests
echo ""
echo "⚙️ corepack yarn jest <...>"
echo ""

cd "${OUTPUT}" && YARN_ENABLE_OFFLINE_MODE=1 corepack yarn run jest "${OUTPUT}*" \
--bail 1 \
--ci \
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": {
"allowImportingTsExtensions": true
},
"include": ["src"],
"exclude": ["test", "node_modules"]
}

0 comments on commit 821571e

Please sign in to comment.