Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

noLib compiler flag seems to be ignored #100

Open
ErkoKnoll opened this issue Mar 24, 2018 · 0 comments
Open

noLib compiler flag seems to be ignored #100

ErkoKnoll opened this issue Mar 24, 2018 · 0 comments

Comments

@ErkoKnoll
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant