Use noEmit

This commit is contained in:
Colin McDonnell
2023-08-24 19:51:14 -07:00
parent b9c2309c8a
commit b70210a005
10 changed files with 15 additions and 31 deletions

View File

@@ -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",

View File

@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,

View File

@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,

View File

@@ -75,7 +75,7 @@ const tsConfig = {
skipLibCheck: true,
jsx: "react-jsx",
allowImportingTsExtensions: true,
emitDeclarationOnly: true,
noEmit: true,
composite: true,
allowSyntheticDefaultImports: true,
forceConsistentCasingInFileNames: true,

View File

@@ -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"
]
}
}

View File

@@ -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
]

View File

@@ -6,7 +6,7 @@
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,

View File

@@ -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
]

View File

@@ -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,

View File

@@ -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"]
}
}