-
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
pdef
records. 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-plock
flags fromnpm
flags.
- NIX
- Command used as
nix
executable. - NPM
- Command used as
npm
executable. - JQ
- Command used as
jq
executable. - SED
- Command used as
sed
executable. - REALPATH
- Command used as
realpath
executable. - FLAKE_REF
- Flake URI ref to use for
floco
. defaults togithub:aakropotkin/floco
.