@samitouri / QOS-React-2 / commits / 3c15d219aa

[compiler] Disable emit of .tsbuildinfo (#31459)

## Summary `@rollup/plugin-typescript` emits a warning while building, hinting that `outputToFilesystem` defaults to true. Although "noEmit" is set to `true` for the tsconfig, rollup writes a `dist/.tsbuildinfo`. That file is then also shipped inside the npm module and doesn't offer any benefit for library consumers. Setting this option to false results in the file not being written and thus omitted from the npm module. ## How did you test this change? `dist/.tsbuildinfo` is not emitted any more.

Niklas Mollenhauer committed Nov 14, 2024 at 21:43 UTC 3c15d219aa6a573504d42ec0bcff1c0c9f35a842
2 files changed +3 -1
compiler/packages/babel-plugin-react-compiler/package.json
+2 -1
@@ -5,7 +5,8 @@
5 "main": "dist/index.js",
6 "license": "MIT",
7 "files": [
8 - "dist"
8 + "dist",
9 + "!*.tsbuildinfo"
10 ],
11 "scripts": {
12 "build": "rimraf dist && rollup --config --bundleConfigAsCjs",
compiler/packages/babel-plugin-react-compiler/rollup.config.js
+1
@@ -28,6 +28,7 @@ const DEV_ROLLUP_CONFIG = {
28 plugins: [
29 typescript({
30 tsconfig: './tsconfig.json',
31 + outputToFilesystem: true,
32 compilerOptions: {
33 noEmit: true,
34 },