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

Support yarn v3 #1112

Merged
merged 2 commits into from Jan 14, 2022
Merged

Support yarn v3 #1112

merged 2 commits into from Jan 14, 2022

Conversation

joshwooding
Copy link
Contributor

@joshwooding joshwooding commented Nov 29, 2021

Since modular-scripts and modular-views.macro depend on yarn workspaces and the command has changed in yarn v2+ the code needs to accommodate for that.

@changeset-bot
Copy link

changeset-bot bot commented Nov 29, 2021

🦋 Changeset detected

Latest commit: 251b8c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
modular-scripts Minor
modular-views.macro Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@joshwooding
Copy link
Contributor Author

I'm not too sure on how to add tests internally for modular. But I've tested the changes to modular-scripts in https://github.com/jpmorganchase/ui-toolkit/pull/295

@coveralls
Copy link
Collaborator

coveralls commented Nov 29, 2021

Coverage Status

Coverage increased (+0.3%) to 28.603% when pulling 251b8c2 on joshwooding:support-yarn-v3 into c36dfb5 on jpmorganchase:main.

@LukeSheard
Copy link
Contributor

I've nothing against this - but I think if we're going to add support for multiple package managers we should also considering writing this in a way that will allow us to read npm workspace output from v7.

There's also the question of yarn v2 which is just dropped here, perhaps we need to feature detect which strategy to read workspace information based semver major of the yarn --version output and default to a explode hook which says that the version of yarn for the current worktree is unsupported?

@joshwooding
Copy link
Contributor Author

I've nothing against this - but I think if we're going to add support for multiple package managers we should also considering writing this in a way that will allow us to read npm workspace output from v7.

There's also the question of yarn v2 which is just dropped here, perhaps we need to feature detect which strategy to read workspace information based semver major of the yarn --version output and default to a explode hook which says that the version of yarn for the current worktree is unsupported?

Technically we can support v2 as well but with the same caveat as only with nodeLinker: node-modules. v2 and v3 formats are the same.

@LukeSheard
Copy link
Contributor

with the same caveat as only with nodeLinker: node-modules

If there are setup caveats so this then they need to be added to modular check to ensure that users don't get weird error messages if there's incorrect setup.

Otherwise I'm happy to go with this, but adding a check for v4 when it's eventually released to throw in that condition.

If we add support for NPM then we'll cross that bridge when we get there.

@joshwooding
Copy link
Contributor Author

with the same caveat as only with nodeLinker: node-modules

If there are setup caveats so this then they need to be added to modular check to ensure that users don't get weird error messages if there's incorrect setup.

Otherwise I'm happy to go with this, but adding a check for v4 when it's eventually released to throw in that condition.

If we add support for NPM then we'll cross that bridge when we get there.

Cool, I'll make the changes.

@joshwooding
Copy link
Contributor Author

@LukeSheard All the changes should be done now? Mind reviewing again?

@LukeSheard LukeSheard merged commit d08e4c2 into jpmorganchase:main Jan 14, 2022
@github-actions github-actions bot mentioned this pull request Jan 14, 2022
@joshwooding joshwooding deleted the support-yarn-v3 branch January 14, 2022 13:22
LukeSheard added a commit that referenced this pull request Jan 14, 2022
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>
LukeSheard added a commit that referenced this pull request Jan 17, 2022
* upgrade @babel scope

* Bump resolve from 1.20.0 to 1.21.0 (#1252)

* Bump resolve from 1.20.0 to 1.21.0

Bumps [resolve](https://github.com/browserify/resolve) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/browserify/resolve/releases)
- [Commits](browserify/resolve@v1.20.0...v1.21.0)

---
updated-dependencies:
- dependency-name: resolve
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create quick-readers-boil.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump postcss from 8.4.4 to 8.4.5 (#1176)

* Bump postcss from 8.4.4 to 8.4.5

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.4 to 8.4.5.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.4.4...8.4.5)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create tiny-jobs-grow.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump esbuild-loader from 2.16.0 to 2.17.0 (#1171)

* Bump esbuild-loader from 2.16.0 to 2.17.0

Bumps [esbuild-loader](https://github.com/privatenumber/esbuild-loader) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/privatenumber/esbuild-loader/releases)
- [Commits](privatenumber/esbuild-loader@v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: esbuild-loader
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create violet-geese-cheer.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump babel-preset-react-app from 10.0.0 to 10.0.1 (#1200)

* Bump babel-preset-react-app from 10.0.0 to 10.0.1

Bumps [babel-preset-react-app](https://github.com/facebook/create-react-app/tree/HEAD/packages/babel-preset-react-app) from 10.0.0 to 10.0.1.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/main/CHANGELOG-1.x.md)
- [Commits](https://github.com/facebook/create-react-app/commits/babel-preset-react-app@10.0.1/packages/babel-preset-react-app)

---
updated-dependencies:
- dependency-name: babel-preset-react-app
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create wise-suits-melt.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump esbuild from 0.14.2 to 0.14.11 (#1271)

* Bump esbuild from 0.14.2 to 0.14.11

Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.2 to 0.14.11.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.14.2...v0.14.11)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create rare-cycles-cry.md

* fix failing tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>
Co-authored-by: Luke Sheard <me@lukesheard.com>

* Bump esbuild-loader from 2.17.0 to 2.18.0 (#1286)

Bumps [esbuild-loader](https://github.com/privatenumber/esbuild-loader) from 2.17.0 to 2.18.0.
- [Release notes](https://github.com/privatenumber/esbuild-loader/releases)
- [Commits](privatenumber/esbuild-loader@v2.17.0...v2.18.0)

---
updated-dependencies:
- dependency-name: esbuild-loader
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @svgr/core from 6.1.1 to 6.1.2 (#1173)

* Bump @svgr/core from 6.1.1 to 6.1.2

Bumps [@svgr/core](https://github.com/gregberge/svgr) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](gregberge/svgr@v6.1.1...v6.1.2)

---
updated-dependencies:
- dependency-name: "@svgr/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create rich-eagles-bow.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump react-error-overlay from 6.0.9 to 6.0.10 (#1194)

Bumps [react-error-overlay](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-error-overlay) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/main/CHANGELOG-1.x.md)
- [Commits](https://github.com/facebook/create-react-app/commits/react-error-overlay@6.0.10/packages/react-error-overlay)

---
updated-dependencies:
- dependency-name: react-error-overlay
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.3 (#1262)

* Bump @rollup/plugin-node-resolve from 13.0.6 to 13.1.3

Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.0.6 to 13.1.3.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.1.3/packages/node-resolve)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-node-resolve"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Create curvy-donkeys-check.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Support yarn v3 (#1112)

Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump @types/tmp from 0.2.2 to 0.2.3 (#1204)

Bumps [@types/tmp](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/tmp) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/tmp)

---
updated-dependencies:
- dependency-name: "@types/tmp"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* Bump @types/node from 16.11.11 to 17.0.8 (#1258)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.11 to 17.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luke Sheard <LukeSheard@users.noreply.github.com>

* fix patch-package (#1289)

* regenerate yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Wooding <12938082+joshwooding@users.noreply.github.com>
This was referenced Mar 16, 2022
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.

None yet

3 participants