-
-
Notifications
You must be signed in to change notification settings - Fork 383
Replace Yarn Berry by PNPM #2932
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,29 +25,25 @@ jobs: | |
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'yarn' | ||
cache: 'pnpm' | ||
cache-dependency-path: | | ||
yarn.lock | ||
pnpm-lock.yaml | ||
package.json | ||
src/**/package.json | ||
- run: yarn --immutable | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: Update version of JS packages | ||
run: yarn workspaces foreach -pA exec "npm version ${{ env.VERSION }} --no-git-tag-version --no-workspaces-update" | ||
run: pnpm version ${{ env.VERSION }} --no-git-tag-version --workspaces --no-workspaces-update | ||
|
||
- name: Commit changes | ||
run: | | ||
git add . | ||
git commit -m "Update versions to ${{ env.VERSION }}" | ||
|
||
- name: Replace local "workspace:*" occurrences | ||
run: | | ||
yarn workspaces foreach -pA exec "sed -i 's/\"workspace:\*\"/\"${{ env.VERSION }}\"/g' package.json" | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is automatically done when running |
||
- name: Publish on NPM | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
run: yarn workspaces foreach -A --no-private npm publish --access public --tolerate-republish | ||
run: pnpm publish --recursive --access public --no-git-checks | ||
|
||
- name: Push changes | ||
env: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
22.6 | ||
22.11 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad", | ||
"type": "module", | ||
"workspaces": [ | ||
"src/*/assets", | ||
"src/*/src/Bridge/*/assets" | ||
], | ||
"scripts": { | ||
"build": "yarn workspaces foreach -Ap --topological-dev run build", | ||
"test": "yarn workspaces foreach -Ap --topological-dev run test", | ||
"build": "pnpm run -r --aggregate-output build", | ||
"test": "pnpm run -r --aggregate-output test", | ||
"check": "biome check", | ||
"ci": "biome ci" | ||
}, | ||
|
@@ -17,28 +17,14 @@ | |
"@rollup/plugin-commonjs": "^28.0.6", | ||
"@rollup/plugin-node-resolve": "^16.0.1", | ||
"@rollup/plugin-typescript": "^12.1.4", | ||
"@testing-library/dom": "^10.4.0", | ||
"@testing-library/jest-dom": "^6.6.3", | ||
"@testing-library/user-event": "^14.6.1", | ||
"@testing-library/dom": "catalog:", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Catalogs are like an alias to a constraint version. |
||
"@testing-library/jest-dom": "catalog:", | ||
"@types/node": "^22.6.0", | ||
"@vitest/browser": "^2.1.1", | ||
"jsdom": "^26.1.0", | ||
"lightningcss": "^1.28.2", | ||
"playwright": "^1.47.0", | ||
"rollup": "^4.44.1", | ||
"tinyglobby": "^0.2.14", | ||
"tslib": "^2.6.3", | ||
"tsx": "^4.20.3", | ||
"typescript": "^5.8.3", | ||
"vitest": "^2.1.1" | ||
}, | ||
"resolutions": { | ||
"@swup/plugin/@swup/prettier-config": "link:node_modules/.cache/null", | ||
"@swup/plugin/@swup/browserslist-config": "link:node_modules/.cache/null", | ||
"@swup/plugin/microbundle": "link:node_modules/.cache/null", | ||
"@swup/plugin/prettier": "link:node_modules/.cache/null", | ||
"@swup/plugin/shelljs": "link:node_modules/.cache/null", | ||
"@swup/plugin/shelljs-live": "link:node_modules/.cache/null" | ||
"vitest": "catalog:" | ||
}, | ||
"version": "2.27.0" | ||
} |
Uh oh!
There was an error while loading. Please reload this page.
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.
--ignore-workspace
allows to ignore thepnpm-workspace.yaml
from parent folders, and install dependencies fromtest_apps/encore-app
only (test_apps/encore-app
is not a workspace on purpose)