Skip to content

api/tsserverlibrary.d.ts generated by jake and gulp differ #29664

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

Closed
sheetalkamat opened this issue Jan 31, 2019 · 2 comments
Closed

api/tsserverlibrary.d.ts generated by jake and gulp differ #29664

sheetalkamat opened this issue Jan 31, 2019 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Infrastructure Issue relates to TypeScript team infrastructure

Comments

@sheetalkamat
Copy link
Member

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code

when running tests for api, the baseline for api/tsserverlibrary.d.ts is different with jake and gulp.
Jake generates ExternalProject::getExcludedFiles() return type as

getExcludedFiles(): readonly NormalizedPath[];

while gulp generates it as:

getExcludedFiles(): ReadonlyArray<NormalizedPath>;

Note the return type is inferred so seems like one is using lib/tsserver.js and other is using built/local/tsserver.js
Expected behavior:

Actual behavior:

Playground Link:

Related Issues:

@sheetalkamat
Copy link
Member Author

@rbuckton @weswigham can you please look.

@ahejlsberg
Copy link
Member

Wes and I were looking at this yesterday. It's because gulp uses the LKG compiler to generate the API files where jake uses the locally built compiler. I think we should just use the LKG compiler always and then make sure to update LKG before we release anything.

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Infrastructure Issue relates to TypeScript team infrastructure labels Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Infrastructure Issue relates to TypeScript team infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants