Repository navigation
prisma_6,prisma_7: use pnpm pack instead of npm pack - #489872
Conversation
gepbird
left a comment
There was a problem hiding this comment.
Thanks!
Diff looks good, but I find it weird that we manually need to resolve workspace package versions. I see without it I get ERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL.
Unfortunately this still breaks after the pnpm update:
prisma_6> prisma:build: Building preinstall as cjs...
prisma_6>
prisma_6> Tasks: 34 successful, 34 total
prisma_6> Cached: 0 cached, 34 total
prisma_6> Time: 4m35.767s
prisma_6>
buildPhase completed in 4 minutes 41 seconds
prisma_6> Scope: all 38 workspace projects
prisma_6> Lockfile is up to date, resolution step is skipped
prisma_6> Packages: +317
prisma_6>
prisma_6> Progress: resolved 317, reused 317, downloaded 0, added 317, done
prisma_6>
prisma_6> devDependencies: skipped
prisma_6>
prisma_6> Done in 2.7s using pnpm v10.29.3
prisma_6> /nix/store/gidygr7l2i5kckd3zv9kfjcymxcycw6y-stdenv-linux/setup: line 1789: cd: packages/../node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc: No such file or directory|
No new failures.
|
|
gepbird
left a comment
There was a problem hiding this comment.
No objections against this change, but we will need other changes for prisma/pnpm before we can bump pnpm.
prisma_6andprisma_7packages incorrectly usednpm packin a pnpm workspace to create the package tarballs. This worked until it didn't in #488068.This change unblocks updating pnpm in nixpkgs.UPD: there are more issues in Prisma packages that block itThings done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.