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
test: ensure correct TS version before running postinstall #29885
Conversation
integration/bazel-schematics/test.sh
Outdated
yarn add typescript@3.4.2 --dev --ignore-scripts | ||
yarn add typescript@3.4.2 | ||
# Run the postinstall script we renamed. | ||
yarn renamed-postinstall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also don't we want to hold off on the ngc
until after installLocalPackages
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we do. I think this is actually why we were having inconsistent results... the initial install used the Angular NPM packages, for which TS was correct.
But those packages are not pinned and eventually the new Angular version was propagated to npm, which caused the version skew.
Good eye!
ff14d51
to
58e2c0d
Compare
This seems adequate: cd demo
# Force more recent TS version until new Angular CLI projects also use it.
yarn add typescript@3.4.2 --dev
installLocalPackages |
58e2c0d
to
c763e5b
Compare
The bazel-schematics test could suffer from a version skew where new CLI projects were not yet using a new TS version, but Angular packages already were. This caused the the `ngc` call in the added `postinstall` to run and fail: https://circleci.com/gh/angular/angular/283109
c763e5b
to
0316bdc
Compare
Yes, I agree. That way the |
Overriding the review requirements as this is breaking tests in |
…9885) The bazel-schematics test could suffer from a version skew where new CLI projects were not yet using a new TS version, but Angular packages already were. This caused the the `ngc` call in the added `postinstall` to run and fail: https://circleci.com/gh/angular/angular/283109 PR Close angular#29885
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
The bazel-schematics test could suffer from a version skew where new CLI projects were not yet using a new TS version, but Angular packages already were.
This caused the the
ngc
call in the addedpostinstall
to run and fail: https://circleci.com/gh/angular/angular/283109Does this PR introduce a breaking change?
Other information