Skip to content

Commit a2d5436

Browse files
author
Lukas Holzer
committed
chore: updates
1 parent a21cd78 commit a2d5436

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/functions/check-tsconfig-for-v2-api.mjs

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const TSCONFIG_TMPL = `{
2020
"target": "ESNext", /** We allow the latest JavaScript feature set to be available as a target */
2121
"module": "NodeNext", /** This tells TypeScript that we are using ECMAScript modules */
2222
"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 */
23-
"allowImportingTsExtensions": true /** This allows using .ts file extension instead of the standard .js extension. We allow this for better compatibility with Deno Edge Functions */
23+
"allowImportingTsExtensions": true, /** This allows using .ts file extension instead of the standard .js extension. We allow this for better compatibility with Deno Edge Functions */
24+
"checkJs": true, /** Enable type checking in JavaScript files as well */
25+
"allowJs": true /** Make JavaScript files part of the program as well */
2426
}
2527
}`
2628

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

0 commit comments

Comments
 (0)