Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling declaration files? #14

Open
pbadenski opened this issue Oct 29, 2020 · 0 comments
Open

Handling declaration files? #14

pbadenski opened this issue Oct 29, 2020 · 0 comments

Comments

@pbadenski
Copy link

I had to monkeypatch the code to include declaration files:

var declarationFiles = _b.compilerConfig.fileNames.filter(f => f.endsWith(".d.ts"));
var files = [sourceFileName].concat(declarationFiles);
var program = typescript_1.default.createProgram(files, options, compilerHost);

Am I missing something or doing something wrong?

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

No branches or pull requests

1 participant