microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.89k stars 12.47k forks source link

Unable to disable tsc .tsbuildinfo file creation #60360

Open kadirgun opened 1 day ago

kadirgun commented 1 day ago

🔎 Search Terms

.tsbuildinfo disable

🕗 Version & Regression Information

⏯ Playground Link

No response

💻 Code

{
  "compilerOptions": {
    "target": "ES2020",
    "useDefineForClassFields": true,
    "lib": ["ES2020", "DOM", "DOM.Iterable"],
    "module": "ESNext",
    "skipLibCheck": true,

    /* Bundler mode */
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    "moduleDetection": "force",
    "noEmit": true,
    "jsx": "react-jsx",
    "composite": false,
    "incremental": false,

    /* Linting */
    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noFallthroughCasesInSwitch": true,
    "baseUrl": "."
  },
  "include": ["src"]
}

🙁 Actual behavior

tsc -b

command started generating .tsbuildinfo file in version 5.6.3. In version 5.5 it did not.

🙂 Expected behavior

When the incremental option is set to false, it should not create a .tsbuildinfo file.

Additional information about the issue

No response

MartinJohns commented 1 day ago

This is working as intended. See: https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#.tsbuildinfo-is-always-written