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

Update to yarn v2 #7468

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update to yarn v2 #7468

wants to merge 3 commits into from

Conversation

pjonsson
Copy link
Contributor

What this PR does

This mirrors the TerriaMap PR:
TerriaJS/TerriaMap#728

Fixes #6453

Test me

Not sure about the publish parts, I believe most other things are tested by CI.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

@@ -220,9 +220,8 @@
"yaml": "^1.10.0"
},
"scripts": {
"prepublish": "gulp post-npm-install",
"prepack": "gulp post-npm-install",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to prepack according to my understanding of the big warning box in the documentation: https://yarnpkg.com/advanced/lifecycle-scripts#prepublish

"postpublish": "bash -c \"if [ -z \"$GITHUB_ACTION\" ]; then git tag -a ${npm_package_version} -m \"${npm_package_version}\" && git push origin ${npm_package_version}; fi \"",
"postinstall": "gulp post-npm-install",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think gulp post-npm-install is always run after building, so removed the hook since the warning box in the documentation is quite strongly worded against this hook: https://yarnpkg.com/advanced/lifecycle-scripts#postinstall

This mirrors the TerriaMap PR:
TerriaJS/TerriaMap#728

Fixes TerriaJS#6453
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

Successfully merging this pull request may close these issues.

Clean up duplicates in yarn.lock
1 participant