Skip to content

Commit

Permalink
build: don't typecheck when using ts-node
Browse files Browse the repository at this point in the history
As typechecking is separate from running code, ts-node needs to have it explicitly disabled. We've only noticed this problem once TypeScript's strict mode was enabled, as there are currently type problems.

As an aside, this will also be fractionally quicker.

Refs #398, #422, 163bd96
  • Loading branch information
thewilkybarkid committed Nov 4, 2021
1 parent 163bd96 commit a8e982f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build:templates": "copyfiles -u 2 src/backend/templates/email/**/*.hbs dist/backend",
"db": "mikro-orm",
"db:migrations": "node dist/scripts/dbMigrations.js",
"db:apiKey": "ts-node src/backend/scripts/dbApiKey.ts",
"db:apiKey": "ts-node --transpile-only src/backend/scripts/dbApiKey.ts",
"db:init": "node dist/scripts/dbInit.js",
"scan:migrations": "barrelsby --delete -l below -d src/backend/db/migrations",
"start:backend": "node dist/backend/index.js",
Expand Down

0 comments on commit a8e982f

Please sign in to comment.