diff options
author | 2023-08-23 20:35:51 +0300 | |
---|---|---|
committer | 2023-08-23 10:35:51 -0700 | |
commit | b01764b31ee768872f3689d489b0e89914a8e460 (patch) | |
tree | 95297ffe41015cb8c3bb7b84449ada53d6d6b691 | |
parent | 851763174e77be5dfe409ffb3ee4cb79659cbde4 (diff) | |
download | bun-b01764b31ee768872f3689d489b0e89914a8e460.tar.gz bun-b01764b31ee768872f3689d489b0e89914a8e460.tar.zst bun-b01764b31ee768872f3689d489b0e89914a8e460.zip |
Fix more types. (#4273)
-rw-r--r-- | docs/runtime/typescript.md | 2 | ||||
-rw-r--r-- | packages/bun-plugin-server-components/tsconfig.json | 13 | ||||
-rw-r--r-- | packages/bun-plugin-yaml/tsconfig.json | 13 | ||||
-rw-r--r-- | packages/web-inspector-bun/tsconfig.json | 2 | ||||
-rw-r--r-- | src/cli/tsconfig-for-init.json | 2 | ||||
-rw-r--r-- | test/js/third_party/es-module-lexer/tsconfig.json | 2 | ||||
-rw-r--r-- | test/tsconfig.json | 2 | ||||
-rw-r--r-- | tsconfig.base.json | 2 |
8 files changed, 22 insertions, 16 deletions
diff --git a/docs/runtime/typescript.md b/docs/runtime/typescript.md index eade2f13b..d1fd81108 100644 --- a/docs/runtime/typescript.md +++ b/docs/runtime/typescript.md @@ -78,6 +78,8 @@ These are the recommended `compilerOptions` for a Bun project. "moduleResolution": "bundler", "noEmit": true, "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "moduleDetection": "force", // if TS 4.x or earlier "moduleResolution": "nodenext", diff --git a/packages/bun-plugin-server-components/tsconfig.json b/packages/bun-plugin-server-components/tsconfig.json index 910d88534..ca15ab14a 100644 --- a/packages/bun-plugin-server-components/tsconfig.json +++ b/packages/bun-plugin-server-components/tsconfig.json @@ -1,13 +1,13 @@ { "compilerOptions": { - "lib": [ - "ESNext" - ], + "lib": ["ESNext"], "module": "esnext", "target": "esnext", "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, @@ -19,8 +19,5 @@ "bun-types" // add Bun global ] }, - "include": [ - "**/*.ts", - "modules.d.ts" - ] -}
\ No newline at end of file + "include": ["**/*.ts", "modules.d.ts"] +} diff --git a/packages/bun-plugin-yaml/tsconfig.json b/packages/bun-plugin-yaml/tsconfig.json index 910d88534..ca15ab14a 100644 --- a/packages/bun-plugin-yaml/tsconfig.json +++ b/packages/bun-plugin-yaml/tsconfig.json @@ -1,13 +1,13 @@ { "compilerOptions": { - "lib": [ - "ESNext" - ], + "lib": ["ESNext"], "module": "esnext", "target": "esnext", "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, @@ -19,8 +19,5 @@ "bun-types" // add Bun global ] }, - "include": [ - "**/*.ts", - "modules.d.ts" - ] -}
\ No newline at end of file + "include": ["**/*.ts", "modules.d.ts"] +} diff --git a/packages/web-inspector-bun/tsconfig.json b/packages/web-inspector-bun/tsconfig.json index 1760229b2..d2f5d2892 100644 --- a/packages/web-inspector-bun/tsconfig.json +++ b/packages/web-inspector-bun/tsconfig.json @@ -6,6 +6,8 @@ "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "downlevelIteration": true, "skipLibCheck": true, "jsx": "preserve", diff --git a/src/cli/tsconfig-for-init.json b/src/cli/tsconfig-for-init.json index 29f8aa003..7cf08cdb5 100644 --- a/src/cli/tsconfig-for-init.json +++ b/src/cli/tsconfig-for-init.json @@ -6,6 +6,8 @@ "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, diff --git a/test/js/third_party/es-module-lexer/tsconfig.json b/test/js/third_party/es-module-lexer/tsconfig.json index 29f8aa003..7cf08cdb5 100644 --- a/test/js/third_party/es-module-lexer/tsconfig.json +++ b/test/js/third_party/es-module-lexer/tsconfig.json @@ -6,6 +6,8 @@ "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, diff --git a/test/tsconfig.json b/test/tsconfig.json index de9a0a544..dcb869c93 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -8,6 +8,8 @@ "moduleResolution": "bundler", "moduleDetection": "force", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "strict": true, "downlevelIteration": true, "skipLibCheck": true, diff --git a/tsconfig.base.json b/tsconfig.base.json index fabca7d00..8b3ce385a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -7,6 +7,8 @@ "target": "esnext", "moduleResolution": "nodenext", "allowImportingTsExtensions": true, + "emitDeclarationOnly": true, + "composite": true, "strict": true, "noImplicitAny": false, "allowJs": true, |