Skip to content

Commit

Permalink
fix: replace npm with yarn for upgrades/releases
Browse files Browse the repository at this point in the history
  • Loading branch information
steabert committed Jan 7, 2025
1 parent 998d5e2 commit 0ff93c1
Show file tree
Hide file tree
Showing 4 changed files with 559 additions and 5 deletions.
523 changes: 523 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ npmAuthToken: "${NPM_AUTH_TOKEN-undefined}"
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

supportedArchitectures:
cpu:
Expand Down
9 changes: 4 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ tools:

# update a specific dependency to latest
update *packages:
just ncu -u {{ packages }}
npm install
npm update --include-workspace-root --workspaces {{ packages }}
yarn update-interactive

# CI verification
verify:
Expand All @@ -103,8 +101,9 @@ version $level='prerelease':
#!/usr/bin/env bash
current=$(jq -r '.version' package.json)
next=$(semver -i $level --preid alpha $current)
echo "update: $current => $next"
npm version $next --git-tag-version=false --workspace=streams --workspace=player --workspace=overlay --include-workspace-root
echo "update $workspace: $current => $next"
yarn workspaces foreach version --deferred $next
yarn version apply --all
# run vite development server, WORKSPACE=(player)
vite WORKSPACE *ARGS:
Expand Down

0 comments on commit 0ff93c1

Please sign in to comment.