-
Notifications
You must be signed in to change notification settings - Fork 454
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
fix(compiler): allow using files provided by tsconfig #1562
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pull Request Test Coverage Report for Build 4529
💛 - Coveralls |
ahnpnl
force-pushed
the
allow-specific-files-tsconfig
branch
from
April 24, 2020 13:02
5d04151
to
0d9913b
Compare
ahnpnl
force-pushed
the
allow-specific-files-tsconfig
branch
from
April 24, 2020 13:22
0d9913b
to
24b5726
Compare
kulshekhar
approved these changes
Apr 25, 2020
ahnpnl
added a commit
that referenced
this pull request
Apr 27, 2020
BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
Apr 28, 2020
BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
Apr 28, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
Apr 29, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
Apr 29, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
Apr 30, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
May 1, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
May 1, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
ahnpnl
added a commit
that referenced
this pull request
May 4, 2020
…g` (#1562) BREAKING CHANGE: Any custom typing files or files which are needed to be compiled and intended to use with `jest` need to be defined in `files` option of `tsconfig`. For example ``` // tsconfig.json { // ...other configs "files": [ "my-custom-typings.d.ts". "my-global-module.ts" ] } ```
2 tasks
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
include
received fromtsconfig
to an empty array to avoid loading unnecessary files to utilise incremental feature ofLanguageService
.This will fix an issue with custom typings mentioned in #1115 (comment)
Test plan
Added unit test and e2e test
Green CI
Does this PR introduce a breaking change?
Because of setting
include
to an empty array to improve performance forisolatedModules: false
, any custom typing files which are intended to use withjest
need to be defined infiles
option oftsconfig
.For example
Other information
N.A.