2.2.1 • Published 2 years ago
@kitschpatrol/npm-config v2.2.1
@kitschpatrol/npm-config
Overview
It's a pnpm-flavored .npmrc shared config.
It's needed to work around some hoisting issues related to plugin resolution in the other @kitschpatrol/shared-config packages.
It's critical that it is applied before any other @kitschpatrol/shared-config packages are installed.
See @kitschpatrol/shared-config for the recommended single-package approach.
Setup
Run-once approach
If you just need to set up your .npmrc in anticipation of installing another shared config, you can run the script via dlx to copy the .npmrc to your home folder:
pnpm dlx @kitschpatrol/npm-configInstallation approach
Optionally, you can install the package if you think you'll ever want to regenerate the .npmrc.
Add the package:
pnpm add -D @kitschpatrol/npm-configIf / when you need to regenerate the
.npmrc, you can run the bundled script:pnpm exec npm-config --init