Skip to content

Use NPM instead of Yarn#868

Draft
cnrudd wants to merge 14 commits into
developfrom
withNPM
Draft

Use NPM instead of Yarn#868
cnrudd wants to merge 14 commits into
developfrom
withNPM

Conversation

@cnrudd

@cnrudd cnrudd commented Jun 18, 2026

Copy link
Copy Markdown
Member

Since most client apps are using NPM now, this PR proposes moving Toolbox over to NPM, too.

4 things to do as part of the cutover:

  1. consider also cutting over hoist-react to NPM
  2. update toolbox's deploy script to use NPM, not Yarn
  3. cut over the @xh/package-template project to NPM (also need to redo its NPM deploy with github actions)
  4. document NPM replacement for yarn link, and confirm how link works between an NPM package and Yarn package if we do not cut over hoist-react to NPM.

cnrudd added 14 commits June 17, 2024 11:58
# Conflicts:
#	client-app/.yarn/releases/yarn-1.22.22.cjs
#	client-app/.yarnrc
#	client-app/package.json
#	client-app/yarn.lock
# Conflicts:
#	client-app/yarn.lock
+ add overrides block to package.json
+ add overrides block to package.json to get same @types/react in hoist and toolbox (different major versions of types/react can cause TS compile errors)
# Conflicts:
#	client-app/package.json
#	client-app/yarn.lock
# Conflicts:
#	client-app/.husky/pre-commit
#	client-app/package.json
#	client-app/yarn.lock
Comment thread client-app/package.json
"overrides": {
"@types/react": "18.x",
"@types/react-dom": "18.x",
"@xh/hoist": "^87.0.0-SNAPSHOT",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This hoist override is necessary until "@xh/package-template" is re-released with latest hoist as peer dep.

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.

1 participant