diff --git a/compiled_starters/typescript/bun.lockb b/compiled_starters/typescript/bun.lockb index 9da3c184..b1b90ed9 100755 Binary files a/compiled_starters/typescript/bun.lockb and b/compiled_starters/typescript/bun.lockb differ diff --git a/compiled_starters/typescript/package.json b/compiled_starters/typescript/package.json index ac399c95..cdb7a8bb 100644 --- a/compiled_starters/typescript/package.json +++ b/compiled_starters/typescript/package.json @@ -9,6 +9,6 @@ "async": "^3.2.0" }, "devDependencies": { - "@types/node": "^20.12.11" + "@types/bun": "latest" } } diff --git a/compiled_starters/typescript/tsconfig.json b/compiled_starters/typescript/tsconfig.json index 74d153ab..238655f2 100644 --- a/compiled_starters/typescript/tsconfig.json +++ b/compiled_starters/typescript/tsconfig.json @@ -1,13 +1,27 @@ { - "compilerOptions": { - "target": "ES2020", - "module": "ES2020", - "moduleResolution": "node", - "esModuleInterop": true, - "strict": true, - "skipLibCheck": true, - }, - "ts-node": { - "esm": true - } -} \ No newline at end of file + "compilerOptions": { + // Enable latest features + "lib": ["ESNext", "DOM"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + + // Bundler mode + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, + + // Best practices + "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false + } +} diff --git a/solutions/typescript/01-jm1/code/bun.lockb b/solutions/typescript/01-jm1/code/bun.lockb index 9da3c184..b1b90ed9 100755 Binary files a/solutions/typescript/01-jm1/code/bun.lockb and b/solutions/typescript/01-jm1/code/bun.lockb differ diff --git a/solutions/typescript/01-jm1/code/package.json b/solutions/typescript/01-jm1/code/package.json index ac399c95..cdb7a8bb 100644 --- a/solutions/typescript/01-jm1/code/package.json +++ b/solutions/typescript/01-jm1/code/package.json @@ -9,6 +9,6 @@ "async": "^3.2.0" }, "devDependencies": { - "@types/node": "^20.12.11" + "@types/bun": "latest" } } diff --git a/solutions/typescript/01-jm1/code/tsconfig.json b/solutions/typescript/01-jm1/code/tsconfig.json index 74d153ab..238655f2 100644 --- a/solutions/typescript/01-jm1/code/tsconfig.json +++ b/solutions/typescript/01-jm1/code/tsconfig.json @@ -1,13 +1,27 @@ { - "compilerOptions": { - "target": "ES2020", - "module": "ES2020", - "moduleResolution": "node", - "esModuleInterop": true, - "strict": true, - "skipLibCheck": true, - }, - "ts-node": { - "esm": true - } -} \ No newline at end of file + "compilerOptions": { + // Enable latest features + "lib": ["ESNext", "DOM"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + + // Bundler mode + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, + + // Best practices + "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false + } +} diff --git a/starter_templates/typescript/code/bun.lockb b/starter_templates/typescript/code/bun.lockb index 9da3c184..b1b90ed9 100755 Binary files a/starter_templates/typescript/code/bun.lockb and b/starter_templates/typescript/code/bun.lockb differ diff --git a/starter_templates/typescript/code/package.json b/starter_templates/typescript/code/package.json index ac399c95..cdb7a8bb 100644 --- a/starter_templates/typescript/code/package.json +++ b/starter_templates/typescript/code/package.json @@ -9,6 +9,6 @@ "async": "^3.2.0" }, "devDependencies": { - "@types/node": "^20.12.11" + "@types/bun": "latest" } } diff --git a/starter_templates/typescript/code/tsconfig.json b/starter_templates/typescript/code/tsconfig.json index 74d153ab..238655f2 100644 --- a/starter_templates/typescript/code/tsconfig.json +++ b/starter_templates/typescript/code/tsconfig.json @@ -1,13 +1,27 @@ { - "compilerOptions": { - "target": "ES2020", - "module": "ES2020", - "moduleResolution": "node", - "esModuleInterop": true, - "strict": true, - "skipLibCheck": true, - }, - "ts-node": { - "esm": true - } -} \ No newline at end of file + "compilerOptions": { + // Enable latest features + "lib": ["ESNext", "DOM"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": true, + + // Bundler mode + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "verbatimModuleSyntax": true, + "noEmit": true, + + // Best practices + "strict": true, + "skipLibCheck": true, + "noFallthroughCasesInSwitch": true, + + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false + } +}