You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running tsc -b on a project whose output has been deleted from disk does not regenerate that output. For example, if my project is a directory containing an empty test.ts file and a tsconfig.json like the following:
Running tsc -b . the first time produces the file test.js. If I delete that file and run the command again, nothing happens. If I edit the source and run the command again, then the test.js file is generated as expected.
This applies to .d.ts and .map files as well. Additionally, if output directories are specified, like so:
{
"compilerOptions": {
// same as above, plus"outDir": "./lib",
"declarationDir": "./types",
"declaration": true,
"declarationMap": true,
}
}
Then the .d.ts file does not get regenerated (after being deleted from disk) even if I edit the source file.
π Actual behavior
The output files do not get regenerated after being deleted from disk.
π Expected behavior
I'd expect alll output files to be regenerated after being deleted from disk.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered:
π Search Terms
build, mode, output
π Version & Regression Information
β― Playground Link
No response
π» Code
Running
tsc -b
on a project whose output has been deleted from disk does not regenerate that output. For example, if my project is a directory containing an emptytest.ts
file and atsconfig.json
like the following:Running
tsc -b .
the first time produces the filetest.js
. If I delete that file and run the command again, nothing happens. If I edit the source and run the command again, then thetest.js
file is generated as expected.This applies to
.d.ts
and.map
files as well. Additionally, if output directories are specified, like so:Then the
.d.ts
file does not get regenerated (after being deleted from disk) even if I edit the source file.π Actual behavior
The output files do not get regenerated after being deleted from disk.
π Expected behavior
I'd expect alll output files to be regenerated after being deleted from disk.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: