Skip to content

Commit

Permalink
fix: apply tsconfig.json only to matched files (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Feb 6, 2023
1 parent cadb7cc commit 7a35586
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -238,7 +238,7 @@ No. tsx's integration with Node.js is designed to be seamless so there is no con
Transformations are handled by esbuild, so it shares the same limitations such as:

- Compatibility with code executed via `eval()` is not preserved
- Only certain `tsconfig.json` properties are supported
- Only [certain `tsconfig.json` properties](https://esbuild.github.io/content-types/#tsconfig-json) are supported
- [`emitDecoratorMetadata`](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata) is not supported

For details, refer to esbuild's [JavaScript caveats](https://esbuild.github.io/content-types/#javascript-caveats) and [TypeScript caveats](https://esbuild.github.io/content-types/#typescript-caveats) documentation.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -45,9 +45,9 @@
"*.{js,ts,mjs,mts,cjs,cts,json}": "pnpm lint"
},
"dependencies": {
"@esbuild-kit/cjs-loader": "^2.4.1",
"@esbuild-kit/cjs-loader": "^2.4.2",
"@esbuild-kit/core-utils": "^3.0.0",
"@esbuild-kit/esm-loader": "^2.5.4"
"@esbuild-kit/esm-loader": "^2.5.5"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
Expand Down
29 changes: 15 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -2,5 +2,8 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"jsxFactory": "console.error"
}
},
"include": [
"../src"
]
}

0 comments on commit 7a35586

Please sign in to comment.