Skip to content

🔄Switch from yarn to npm#912

Closed
soumeh01 wants to merge 8 commits into
mainfrom
yarn-to-npm
Closed

🔄Switch from yarn to npm#912
soumeh01 wants to merge 8 commits into
mainfrom
yarn-to-npm

Conversation

@soumeh01
Copy link
Copy Markdown
Collaborator

@soumeh01 soumeh01 commented Mar 18, 2026

  • Switch package manager from yarn to npm, updating docs, code references, dependencies, scripts, and GitHub workflows.

Checklist

  • 🤖 This change is covered by unit tests (if applicable).
  • 🤹 Manual testing has been performed (if necessary).
  • 🛡️ Security impacts have been considered (if relevant).
  • 📖 Documentation updates are complete (if required).
  • 🧠 Third-party dependencies and TPIP updated (if required).

@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@Open-CMSIS-Pack Open-CMSIS-Pack deleted a comment from qltysh Bot Mar 18, 2026
@qltysh
Copy link
Copy Markdown

qltysh Bot commented Mar 18, 2026

Qlty

Coverage Impact

This PR will not change total coverage.

🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@soumeh01 soumeh01 force-pushed the yarn-to-npm branch 3 times, most recently from a805578 to 99f057a Compare March 18, 2026 14:06
@soumeh01 soumeh01 added the Developer Efficiency CI/CD infrastructure and development process improvements label Mar 18, 2026
@soumeh01 soumeh01 requested a review from jreineckearm March 18, 2026 15:12
@soumeh01 soumeh01 marked this pull request as ready for review March 18, 2026 15:12
Copy link
Copy Markdown
Collaborator Author

@soumeh01 soumeh01 left a comment

Choose a reason for hiding this comment

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

@jreineckearm I couldn’t find any references to scripts/update-tpip.ts in the repo, just wanted to check whether it is still needed. Is this something that is meant to be run manually to update TPIP and push those changes?

Currently, it is removed in this PR, but if it is still required, I am happy to adapt it to work with npm dependencies.

@jreineckearm
Copy link
Copy Markdown
Collaborator

I wasn't even aware anymore of this script being present. I normally update package.json manually and use yarn/npm to update dependencies in the lockfile. Or dependabot.
TBF: I have no strong opinion about keeping it. So, feel free to remove.

Copy link
Copy Markdown
Collaborator

@jreineckearm jreineckearm left a comment

Choose a reason for hiding this comment

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

See first feedback, will try locally in the morning and check the lock files. But thinking about it, it may be less effort to take the hit of losing patched dependencies and let dependabot do its magic to fix them again.

Comment thread .npmrc
@@ -0,0 +1,2 @@
@open-cmsis-pack:registry=https://npm.pkg.github.com
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 Thanks for remembering to add the rc file

Comment thread .github/workflows/ci.yml
QUALIFIER=$(git describe --tags | grep -Eo '\-g[0-9a-f]+$' || true)
yarn version -s --no-git-tag-version --new-version "${DESCRIBE#v}"
yarn version --no-git-tag-version --prepatch --preid "pr${{ github.event.number }}${QUALIFIER}"
npm version -s --allow-same-version --no-git-tag-version --new-version "${BASE_TAG#v}"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

May need another review. Can't see PR number, nor commit hash on build artifact names (neither zip, nor vsix).

@soumeh01
Copy link
Copy Markdown
Collaborator Author

somehow got polluted while rebasing

@soumeh01 soumeh01 closed this Mar 20, 2026
@soumeh01 soumeh01 deleted the yarn-to-npm branch March 20, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Developer Efficiency CI/CD infrastructure and development process improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants