aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-08-24 19:51:14 -0700
committerGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-08-24 19:51:14 -0700
commitb70210a005a4fa9ed6639e618020818fb0f695e8 (patch)
tree7b2a6bbeceea8630be74ce506895407711b724c8
parentb9c2309c8abd6adf4229773a4531c89da912a8a5 (diff)
downloadbun-b70210a005a4fa9ed6639e618020818fb0f695e8.tar.gz
bun-b70210a005a4fa9ed6639e618020818fb0f695e8.tar.zst
bun-b70210a005a4fa9ed6639e618020818fb0f695e8.zip
Use noEmit
-rw-r--r--docs/runtime/typescript.md2
-rw-r--r--packages/bun-plugin-server-components/tsconfig.json2
-rw-r--r--packages/bun-plugin-yaml/tsconfig.json2
-rw-r--r--packages/bun-types/scripts/bundle.ts2
-rw-r--r--packages/bun-types/tsconfig.docs.json13
-rw-r--r--packages/web-inspector-bun/tsconfig.json3
-rw-r--r--src/cli/tsconfig-for-init.json2
-rw-r--r--test/js/third_party/es-module-lexer/tsconfig.json3
-rw-r--r--test/tsconfig.json3
-rw-r--r--tsconfig.base.json14
10 files changed, 15 insertions, 31 deletions
diff --git a/docs/runtime/typescript.md b/docs/runtime/typescript.md
index d1fd81108..eade2f13b 100644
--- a/docs/runtime/typescript.md
+++ b/docs/runtime/typescript.md
@@ -78,8 +78,6 @@ 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 ca15ab14a..a03219b2e 100644
--- a/packages/bun-plugin-server-components/tsconfig.json
+++ b/packages/bun-plugin-server-components/tsconfig.json
@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
diff --git a/packages/bun-plugin-yaml/tsconfig.json b/packages/bun-plugin-yaml/tsconfig.json
index ca15ab14a..a03219b2e 100644
--- a/packages/bun-plugin-yaml/tsconfig.json
+++ b/packages/bun-plugin-yaml/tsconfig.json
@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
diff --git a/packages/bun-types/scripts/bundle.ts b/packages/bun-types/scripts/bundle.ts
index ce1c5ff4d..031a90359 100644
--- a/packages/bun-types/scripts/bundle.ts
+++ b/packages/bun-types/scripts/bundle.ts
@@ -75,7 +75,7 @@ const tsConfig = {
skipLibCheck: true,
jsx: "react-jsx",
allowImportingTsExtensions: true,
- emitDeclarationOnly: true,
+ noEmit: true,
composite: true,
allowSyntheticDefaultImports: true,
forceConsistentCasingInFileNames: true,
diff --git a/packages/bun-types/tsconfig.docs.json b/packages/bun-types/tsconfig.docs.json
index 05b4cb10b..5b357801a 100644
--- a/packages/bun-types/tsconfig.docs.json
+++ b/packages/bun-types/tsconfig.docs.json
@@ -1,10 +1,8 @@
{
"compilerOptions": {
"composite": true,
- "emitDeclarationOnly": true,
- "lib": [
- "ESNext"
- ],
+ "noEmit": true,
+ "lib": ["ESNext"],
"baseUrl": ".",
"rootDir": ".",
"outFile": "./types.d.ts",
@@ -12,14 +10,11 @@
"target": "esnext",
"disableSolutionSearching": true
},
- "include": [
- "./*.d.ts",
- "dist"
- ],
+ "include": ["./*.d.ts", "dist"],
"exclude": [
"node_modules",
"./node_modules",
"./node_modules/*",
"./node_modules/@types/node/index.d.ts"
]
-} \ No newline at end of file
+}
diff --git a/packages/web-inspector-bun/tsconfig.json b/packages/web-inspector-bun/tsconfig.json
index d2f5d2892..669cfeccf 100644
--- a/packages/web-inspector-bun/tsconfig.json
+++ b/packages/web-inspector-bun/tsconfig.json
@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"downlevelIteration": true,
"skipLibCheck": true,
@@ -14,7 +14,6 @@
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
- "noEmit": true,
"types": [
"bun-types" // add Bun global
]
diff --git a/src/cli/tsconfig-for-init.json b/src/cli/tsconfig-for-init.json
index be079b233..1449bc3d9 100644
--- a/src/cli/tsconfig-for-init.json
+++ b/src/cli/tsconfig-for-init.json
@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
diff --git a/test/js/third_party/es-module-lexer/tsconfig.json b/test/js/third_party/es-module-lexer/tsconfig.json
index 7cf08cdb5..1449bc3d9 100644
--- a/test/js/third_party/es-module-lexer/tsconfig.json
+++ b/test/js/third_party/es-module-lexer/tsconfig.json
@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
@@ -15,7 +15,6 @@
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
- "noEmit": true,
"types": [
"bun-types" // add Bun global
]
diff --git a/test/tsconfig.json b/test/tsconfig.json
index dcb869c93..af2af2bb5 100644
--- a/test/tsconfig.json
+++ b/test/tsconfig.json
@@ -1,14 +1,13 @@
{
"include": [".", "../packages/bun-types/index.d.ts"],
"compilerOptions": {
- "noEmit": true,
"lib": ["ESNext"],
"module": "ESNext",
"target": "ESNext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
diff --git a/tsconfig.base.json b/tsconfig.base.json
index 8b3ce385a..2c3b964da 100644
--- a/tsconfig.base.json
+++ b/tsconfig.base.json
@@ -1,13 +1,11 @@
{
"compilerOptions": {
- "lib": [
- "ESNext"
- ],
+ "lib": ["ESNext"],
"module": "esnext",
"target": "esnext",
"moduleResolution": "nodenext",
"allowImportingTsExtensions": true,
- "emitDeclarationOnly": true,
+ "noEmit": true,
"composite": true,
"strict": true,
"noImplicitAny": false,
@@ -16,11 +14,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"jsx": "react-jsx",
- "types": [
- "bun-types"
- ],
- "typeRoots": [
- "./packages"
- ],
+ "types": ["bun-types"],
+ "typeRoots": ["./packages"]
}
}