Skip to content

Commit a94eafa

Browse files
committed
Exclude *.tsbuildinfo from shipped package
`@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.
1 parent 380f5d6 commit a94eafa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compiler/packages/babel-plugin-react-compiler/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "dist/index.js",
66
"license": "MIT",
77
"files": [
8-
"dist"
8+
"dist",
9+
"!*.tsbuildinfo"
910
],
1011
"scripts": {
1112
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",

compiler/packages/babel-plugin-react-compiler/rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const DEV_ROLLUP_CONFIG = {
2828
plugins: [
2929
typescript({
3030
tsconfig: './tsconfig.json',
31+
outputToFilesystem: true,
3132
compilerOptions: {
3233
noEmit: true,
3334
},

0 commit comments

Comments
 (0)