Is there a reason to use nub.lock file? #488
|
As the title says, is there any reason or advantage of preferring |
Replies: 2 comments 1 reply
|
From what I guess from the docs, is Probably better than to init with |
|
Yes, the existing comment is right that In practice:
So the benefit is not a different dependency graph format. It is an unambiguous package-manager identity while retaining pnpm-v9-compatible lockfile data. I would use the supported switch commands rather than manually renaming the file: nub pm use nub
# or
nub pm use pnpmThat lets Nub align the manifest, lockfile, and relevant configuration together. The current behavior is described in the package-manager documentation. |
Yes, the existing comment is right that
nub.lockuses the pnpm v9 lockfile schema byte-for-byte. The filename still carries some useful meaning, though: it tells Nub that the project is Nub-owned.In practice:
nub.lock.nub pm use nub, usesnub.lock..pnpmfile.cjsorpnpm-workspace.yaml.So the benefit is not a different dependency graph format. It is an unambiguous package-manager ident…