Better HN
topnewbestaskshowjobs
Log inSign up

gauben

8 karma · joined Apr 15, 2022 (4y ago) · 6 submissions

https://gautier.dev
Submissions

comment 1y ago · link · parent

Hey! Not sure how modern your codebase is, but you can consider the following tsconfig settings:

- rewriteRelativeImportExtensions: this will allow you to write `import foo from './foo.ts'` and have tsc transform it to `import foo from './foo.js'`

- erasableSyntaxOnly: this will error on non "erasable" syntax, that is, TypeScript code that has a runtime output (e.g. enums)

With these two settings enabled, you'd be able to run TypeScript code directly with Node: `node src/index.ts`, and cut boot up time substantially

comment 2y ago · link · parent

Hey! That's me, feel free to ask anything

comment 2y ago · link · parent

The irony keeps going!

comment 3y ago · link · parent

Hey, author here! Feel free to ask questions, I'll take the time to answer them all

comment 3y ago · link · parent

Hey there, Escape dev here! This project follows the steps of graphql.security, our fast and free graphql API scanner, check it out if you use graphql rather than swagger/openapi