Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer committed Oct 5, 2023
1 parent a21cd78 commit a2d5436
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/functions/check-tsconfig-for-v2-api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const TSCONFIG_TMPL = `{
"target": "ESNext", /** We allow the latest JavaScript feature set to be available as a target */
"module": "NodeNext", /** This tells TypeScript that we are using ECMAScript modules */
"moduleResolution": "NodeNext", /** This tells TypeScript that we use ECMAScript modules in Node.js and we have to import from files and specify an extension of the file */
"allowImportingTsExtensions": true /** This allows using .ts file extension instead of the standard .js extension. We allow this for better compatibility with Deno Edge Functions */
"allowImportingTsExtensions": true, /** This allows using .ts file extension instead of the standard .js extension. We allow this for better compatibility with Deno Edge Functions */
"checkJs": true, /** Enable type checking in JavaScript files as well */
"allowJs": true /** Make JavaScript files part of the program as well */
}
}`

Expand Down Expand Up @@ -87,7 +89,7 @@ export async function checkTsconfigForV2Api(config) {
log(
`${NETLIFYDEVLOG} For more information check out our ${terminalLink(
'documentation',
'https://docs.netlify.com/functions/create/?fn-language=ts',
'https://ntl.fyi/functions-api',
)}.`,
)
}

0 comments on commit a2d5436

Please sign in to comment.