build: Update monorepo internal dependencies#2976
build: Update monorepo internal dependencies#2976edison-cy-yang wants to merge 8 commits intomasterfrom
Conversation
Deploying atlantis with
|
| Latest commit: |
2e16e3a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e20b5c51.atlantis.pages.dev |
| Branch Preview URL: | https://edi-cleanup-internal-depende.atlantis.pages.dev |
packages/components/package.json
Outdated
| "@csstools/postcss-global-data": "^1.0.3", | ||
| "@jobber/design": "*", | ||
| "@jobber/formatters": "^0.5.0", | ||
| "@jobber/hooks": ">=2", |
There was a problem hiding this comment.
This >= 2 is an issue and makes CI fail on scripts/preventManualRelease.js. The script only checks for @jobber/ dependencies in dependencies or devDependencies. @jdeichert I dont have too much context on what kind of manual release we were trying to prevent, but wondering if it makes sense to update the check to allow >=?
There was a problem hiding this comment.
Ha, that's interesting and I'm actually not sure why that script fails on that.
However, I did try this with * instead and I think that's completely fine? Your peerDep rule means that >=2 is required, and the devDep being * seems to work fine. At least bootstrap succeeds for me.
There was a problem hiding this comment.
@jdeichert thinking about this more, the version in devDep probably doesn't matter for the internal dependencies? The "version" will be whatever that's in the codebase right now.
There was a problem hiding this comment.
Yupp, that's why I think * is fine!
|
@jdeichert I ran the diff output action and there are diffs. However I think there will always be diffs since package.json is updated. Would it be better to diff excluding |
|
Published Pre-release for 753c899 with versions: To install the new version(s) for Web run: To install the new version(s) for Mobile run: |
@edison-cy-yang I saw your diff output.
|
@jdeichert I did the tsbuildinfo cleanup. AS you can see from this output diff, the only differences are |
Yupp, looks good! I do question whether I'll complete my review next week 👍
|
| "bootstrap": "npm run build", | ||
| "prepack": "npm run build", | ||
| "compile": "tsc -p tsconfig.build.json", | ||
| "build:clean": "rm -rf ./dist", |
There was a problem hiding this comment.
npm run clean was not called when running npm run build. This build:clean does not delete the build cache. Removing this script to be more consistent with other packages.
|
@jdeichert New diff shows that |

Motivations
While trying to implement Turborepo caching in this repo, I found a few issues with how we're managing internal dependencies in the repo:
package.json. This was probably from us building for Storybook v7 at root previouslypeerDependenciesbut not indevDependencies, and sometimes independenciesat the same timeThis PR fixes the internal dependencies in the monorepo.
Changes
components-native
@jobber/hooksadded to peerDependencies@jobber/hooksand@jobber/designadded to devDependenciestsconfig.build.tsbuildinfoto not be shipped in bundle outputcomponents
@jobber/formattersremoved from dependencies@jobber/formatters@jobber/design@jobber/hooksadded to devDependencies@jobber/formattersadded to peerDependencieshooks
@jobber/formattersadded to peerDependenciesroot
@jobber/*packages from devDependenciesAdded
Changed
Deprecated
Removed
Fixed
Security
Testing
Changes can be
tested via Pre-release
In Atlantis we use Github's built in pull request reviews.