diff --git a/bun.lock b/bun.lock index 9b9449f738..d4159c2495 100644 --- a/bun.lock +++ b/bun.lock @@ -14,9 +14,7 @@ "devDependencies": { "@actions/artifact": "5.0.1", "@tsconfig/bun": "catalog:", - "@types/bun": "catalog:", "@types/mime-types": "3.0.1", - "@types/node": "catalog:", "@typescript/native-preview": "catalog:", "glob": "13.0.5", "husky": "9.1.7", diff --git a/github/tsconfig.json b/github/tsconfig.json index d74dc69847..bfa0fead54 100644 --- a/github/tsconfig.json +++ b/github/tsconfig.json @@ -1,8 +1,29 @@ { - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@tsconfig/bun/tsconfig.json", "compilerOptions": { - "types": ["node", "bun"] - }, - "include": ["./index.ts", "./sst-env.d.ts"] + // Environment setup & latest features + "lib": ["ESNext"], + "target": "ESNext", + "module": "Preserve", + "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, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + + // Some stricter flags (disabled by default) + "noUnusedLocals": false, + "noUnusedParameters": false, + "noPropertyAccessFromIndexSignature": false + } } diff --git a/nix/scripts/tsconfig.json b/nix/scripts/tsconfig.json deleted file mode 100644 index 989b013a78..0000000000 --- a/nix/scripts/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@tsconfig/bun/tsconfig.json", - "compilerOptions": { - "types": ["node", "bun"] - }, - "include": ["./**/*.ts"] -} diff --git a/package.json b/package.json index 69e6e25817..fc73a94d26 100644 --- a/package.json +++ b/package.json @@ -76,9 +76,7 @@ "devDependencies": { "@actions/artifact": "5.0.1", "@tsconfig/bun": "catalog:", - "@types/bun": "catalog:", "@types/mime-types": "3.0.1", - "@types/node": "catalog:", "@typescript/native-preview": "catalog:", "glob": "13.0.5", "husky": "9.1.7", diff --git a/script/tsconfig.json b/script/tsconfig.json deleted file mode 100644 index 989b013a78..0000000000 --- a/script/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "@tsconfig/bun/tsconfig.json", - "compilerOptions": { - "types": ["node", "bun"] - }, - "include": ["./**/*.ts"] -} diff --git a/tsconfig.json b/tsconfig.json index d01da02700..65fa6c7f31 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,5 @@ { "$schema": "https://json.schemastore.org/tsconfig", "extends": "@tsconfig/bun/tsconfig.json", - "compilerOptions": { - "types": ["node"] - }, - "include": ["sst.config.ts", "sst-env.d.ts", "infra/**/*.ts"] + "compilerOptions": {} }