Skip to content

Commit

Permalink
Exclude *.tsbuildinfo from shipped package
Browse files Browse the repository at this point in the history
`@rollup/plugin-typescript` emits a warning while building,
hinting that `outputToFilesystem` defaults to true. To keep behavior and remove the warning, we just set it to `true`.

Although "noEmit" is set to `true` for the tsconfig, rollup writes a .tsbuildinfo.
The .tsbuildinfo is then also shipped inside the npm module and doesn't offer any benefit for library consumers.
  • Loading branch information
nikeee committed Nov 14, 2024
1 parent 380f5d6 commit a94eafa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/packages/babel-plugin-react-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "dist/index.js",
"license": "MIT",
"files": [
"dist"
"dist",
"!*.tsbuildinfo"
],
"scripts": {
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const DEV_ROLLUP_CONFIG = {
plugins: [
typescript({
tsconfig: './tsconfig.json',
outputToFilesystem: true,
compilerOptions: {
noEmit: true,
},
Expand Down

0 comments on commit a94eafa

Please sign in to comment.