You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/functions/check-tsconfig-for-v2-api.mjs
+4-2
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ const TSCONFIG_TMPL = `{
20
20
"target": "ESNext", /** We allow the latest JavaScript feature set to be available as a target */
21
21
"module": "NodeNext", /** This tells TypeScript that we are using ECMAScript modules */
22
22
"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 */
24
26
}
25
27
}`
26
28
@@ -87,7 +89,7 @@ export async function checkTsconfigForV2Api(config) {
87
89
log(
88
90
`${NETLIFYDEVLOG} For more information check out our ${terminalLink(
0 commit comments