-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix(cli): handle pnpm catalogs #318
base: main
Are you sure you want to change the base?
Conversation
I just added a valid git url repository url to all package.json files and the packages now are fine (we have git repository type): https://github.com/unocss/unocss/runs/36216006512 Maybe SB registry was wrong? I send a PR to fix the catalogs before running /cc @Aslemammad |
all this packages have resolved catalogs properly now without doing anything? |
can you point me to the place where they do not resolve catalogs and the place where now they do? so i see the difference and investigate it. |
Wrong tgz files when testing uno, check this comment: |
in the git url pr it is emitting the right files? |
This PR handles pnpm catalogs including named catalogs with a simple algorithm to replace all
catalog:
andcatalog:<name>
found in dependencies, devDependencies and peerDependencies before writing first time the package.json file.Right now using
process.cwd()
to detectpnpm-workspace.yaml
file to load the catalogs. I need to confirm the logic is fine, check the Catalogs: Shareable dependency version specifiers rfc at pnpm repo./cc @Aslemammad
closes #204