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 Jun 27, 2018. It is now read-only.
I have a case where I'm modifying lib.d.ts extensively and dynamically and passing it along as a combined script for compilation and I need to disable lib.d.ts inclusion to avoid duplication errors. I did try adding noLib: true to compiler options as following var tss = new TypeScriptSimple({ noImplicitAny: false, noEmitOnError: true, removeComments: true, sourceMap: false, target: ts.ScriptTarget.ES5, noLib: true });
but it seems to get ignored as the compiler is still looking for lib.d.ts in \node_modules\typescript\lib folder. I verified it by deleting lib.d.ts file in that folder and then compiler starts failing due to not finding lib.d.ts in node_modules folder.
Currently I'm deleting the contents of lib.d.ts in node_modules folder to avoid errors but it is rather annoying because I need to switch back and forth between empty and non empty lib.d.ts file as my build process relies on having a properly typed lib.d.ts file.
I'm currently using version: 8.0.5.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I have a case where I'm modifying lib.d.ts extensively and dynamically and passing it along as a combined script for compilation and I need to disable lib.d.ts inclusion to avoid duplication errors. I did try adding noLib: true to compiler options as following
var tss = new TypeScriptSimple({ noImplicitAny: false, noEmitOnError: true, removeComments: true, sourceMap: false, target: ts.ScriptTarget.ES5, noLib: true });
but it seems to get ignored as the compiler is still looking for lib.d.ts in \node_modules\typescript\lib folder. I verified it by deleting lib.d.ts file in that folder and then compiler starts failing due to not finding lib.d.ts in node_modules folder.
Currently I'm deleting the contents of lib.d.ts in node_modules folder to avoid errors but it is rather annoying because I need to switch back and forth between empty and non empty lib.d.ts file as my build process relies on having a properly typed lib.d.ts file.
I'm currently using version: 8.0.5.
The text was updated successfully, but these errors were encountered: