-
Notifications
You must be signed in to change notification settings - Fork 4
npm plock.sh ( updater )
aameen-tulip edited this page Jan 23, 2023
·
4 revisions
npm-plock.sh - manual page for npm-plock.sh 0.1.1
npm-plock.sh [-l LOCK-DIR] [-o PDEFS-FILE] [– NPM-FLAGS…]
Update a pdefs.nix file using a package-lock.json v3 provided by
npm.
This script will trash any existing node_modules/ trees, and if a
package-lock.json file already exists, it will be updated to use the
v3 schema as a side effect of this script.
- -l,–lock-dir PATH
- Path to directory containing
package[-lock].json. This directory must contain apackage.json, but need not contain apackage-lock.json. Defaults to current working directory. - -o,–out-file PATH
- Path to write generated
pdefrecords. Defaults to<LOCK-DIR>/pdefs.nix. If the outfile already exists, it may be used to optimize translation, and will be backed up toPDEFS-FILE~. - -j,–json
- Export JSON instead of a Nix expression.
- – NPM-FLAGS…
- Used to separate
floco update npm-plockflags fromnpmflags.
- NIX
- Command used as
nixexecutable. - NPM
- Command used as
npmexecutable. - JQ
- Command used as
jqexecutable. - SED
- Command used as
sedexecutable. - REALPATH
- Command used as
realpathexecutable. - FLAKE_REF
- Flake URI ref to use for
floco. defaults togithub:aakropotkin/floco.