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

build(compiler-cli): fix tsconfig.json #22722

Closed
wants to merge 1 commit into from

Conversation

benbraou
Copy link
Contributor

@benbraou benbraou commented Mar 12, 2018

Fixes #22721

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] angular.io application / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

In compiler-cli/tsconfig.json, there is a circularity issue (it is extending itself)

{
   "extends": "./tsconfig.json",
   "compilerOptions": {
       "target": "es2015",
       "lib": [
           "es2015"
       ]
   }
}

Issue Number: N/A
#22721

What is the new behavior?

update compiler-cli/tsconfig.json introduced by c602563

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@benbraou
Copy link
Contributor Author

I removed the tsconfig.json which made all dependencies in compiler-cli spec files resolved correctly.
Hopefully, this is the accepted way to go

@kara kara added the area: core Issues related to the framework runtime label Mar 13, 2018
@IgorMinar
Copy link
Contributor

It's odd that my VS Code doesn't complain about this. It is obviously wrong.

However if you delete the file, the editors will not understand that it's ok to use es2015 apis in the compiler-cli code. The proper fix would be to change the extends to "../tsconfig.json". Can you please update your PR to that?

@IgorMinar IgorMinar self-assigned this Mar 15, 2018
@IgorMinar IgorMinar added type: bug/fix action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Mar 15, 2018
@benbraou
Copy link
Contributor Author

Thanks @IgorMinar for the feedback

  1. My VS Code started to complain after I deleted both node_modules and dist folders and then I did yarn install + run build and test scripts. Maybe this is how you could reproduce
  2. I updated my PR as you suggested to have compiler-cli/tsconfig.json have the "extends": "../tsconfig.json"
  3. When I did that, all dependencies in the spec files were correctly resolved. However, jasmine types were missing (I kept getting the error Cannot find name 'describe' )

jasmine

4. So, I declared the type `jasmine` in `compiler-cli/tsconfig.json` and that solved the issue for me.

I have updated my PR accordingly. Please let me know if this is not the way to go

@benbraou
Copy link
Contributor Author

rebased on top of master and force pushed in order to have a new travis build (previous was failing due to timeout in aio)

@IgorMinar IgorMinar added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Mar 15, 2018
@ngbot
Copy link

ngbot bot commented Mar 15, 2018

I see that you just added the PR action: merge label, but the following checks are still failing:
    failure missing required label: "PR target: *"

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@IgorMinar IgorMinar added the target: major This PR is targeted for the next major release label Mar 15, 2018
@IgorMinar
Copy link
Contributor

thank you!

@mhevery mhevery closed this in 269c3a1 Mar 16, 2018
@benbraou benbraou deleted the issue22721 branch March 16, 2018 09:41
leo6104 pushed a commit to leo6104/angular that referenced this pull request Mar 25, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes target: major This PR is targeted for the next major release type: bug/fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Circularity issue in compiler-cli/tsconfig.json
4 participants