Pin sort-package-json instead of running it with pnpm dlx #62
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-reconcile-trigger#62
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
lefthook.jsonrunspnpm dlx sort-package-jsonon each commit that stages package.json.Why
dlx downloads and runs the latest release, outside the lockfile and the release-age quarantine.
Failing case
Staging package.json executes whatever version is newest on the registry at that moment.
Fix
Add
sort-package-jsonas a pinned devDependency. Runpnpm exec sort-package-json.Done when
dlxin lefthook.jsonFixed in #63 by removing the hook rather than pinning the tool. The
pnpm dlx sort-package-jsonjob is gone fromlefthook.json, so nothing downloads or runs an unpinned package on commit, and the remaining hooks run from the lockfile and work offline after install.lefthook.jsonon main contains nodlxorsort-package-json. Closing.