replace-lockfile-registry
v0.0.2
Published
Replace registry of `package-lock.json`, `yarn.lock` and `pnpm-lock.yaml`.
Downloads
118
Maintainers
Readme
replace-lockfile-registry
English | 简体中文
Replace registry of package-lock.json
, yarn.lock
and pnpm-lock.yaml
.
Usage
npx replace-lockfile-registry
By default, the registry in package-lock.json
, yarn.lock
and pnpm-lock.yaml
will be replaced with the registry get by npm config get registry
. If you need to specify the registry and replaced files, you can use the --registry
and --lockfile
options.
Options
--registry
Specify registry, example:
npx replace-lockfile-registry --registry https://registry.npmjs.org/
。npx replace-lockfile-registry --registry https://registry.npmmirror.com/
。
--lockfile
Specify lockfiles, example:
npx replace-lockfile-registry --lockfile ./package-lock.json ./yarn.lock
。