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
{{ message }}
This repository has been archived by the owner on May 5, 2022. It is now read-only.
deletecompilerOptions.outDir;// always emit relative to source file
TypeScript thinks that the output file is the same as the source file and reports as:
[error] Cannot write file '/Users/zenorbi/Desktop/test/src/test.js' because it would overwrite input file.
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
Since gulp-tsb removes the outDir compiler at
gulp-tsb/src/builder.ts
Line 61 in 35f134a
TypeScript checks for this at https://github.com/Microsoft/TypeScript/blob/b1878e62bfeea57a926185e87449d89f34ba5742/src/compiler/program.ts#L2618 and can be suppressed by adding
options.suppressOutputPathCheck = true;
before
gulp-tsb/src/index.ts
Line 65 in 35f134a
However this would use internal TypeScript options. Would you accept a PR for this?
The text was updated successfully, but these errors were encountered: