@winman-f2e/rpm
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

rpm

使用正确包管理器

包管理器的选择愈来愈多,不同的包管理器安装依赖会生成不同的 lockFile 和 node_modules 形式,导致不同的包管理器安装的依赖不一致,甚至导致构建失败。

rpm 会自动检测当前项目环境,使用正确的包管理器安装依赖。

安装

pnpm -g add @winman-f2e/rpm
npm install -g @winman-f2e/rpm
yarn global add @winman-f2e/rpm

使用

安装依赖

rpm install
rpm i

限制当前使用的包管理器

rpm only pnpm
rpm o pnpm

运行 npm scripts

rpm run dev
rpm r dev

执行任意命令

参数会直接传递给当前使用的包管理器

rpm any version patch
rpm a version patch

配置文件

默认会创建名为 .rpmrc 的配置文件,标识当前项目使用的包管理器

// .rpmrc
{
  "client": "pnpm"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @winman-f2e/rpm

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

27.5 kB

Total Files

7

Last publish

Collaborators

  • luofeiyue
  • whiskeyi
  • yousy
  • guoyeeg
  • azgaga
  • liushichuan
  • yaochen
  • shenyuan
  • aflyermin
  • ignous
  • jeekdong