Skip to content

Incremental Builds are not Reliable v5.4.5Β #58427

@Jason3S

Description

@Jason3S

πŸ”Ž Search Terms

build, incremental, composit, tsbuildinfo, location, symlink

Related to: #48314
Maybe: #30946, #48981

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried

⏯ Playground Link

https://github.com/Jason3S/tsbuild-issue

πŸ’» Code

Given the following code:

src/window.ts

import type vscode from 'vscode';

export const state: vscode.WindowState = {
    focused: true,
}

tsconfig.json

{
    "$schema": "https://json.schemastore.org/tsconfig",
    "extends": "@tsconfig/node18/tsconfig.json",
    "compilerOptions": {
        "incremental": true,
        "tsBuildInfoFile": "./dist/compile.tsbuildInfo",
        "declaration": true,
        "declarationMap": true,
        "module": "Node16",
        "moduleResolution": "Node16",
        "sourceMap": true,
        "outDir": "dist",
        // "types": ["node", "vscode"],
        "rootDir": "src"
    },
    "include": ["src"],
    "exclude": []
}

πŸ™ Actual behavior

image

After deleting the outDir (dist), it works as expected.

image

πŸ™‚ Expected behavior

For tsc -b . to re-build files when there are changes to dependencies.

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions