0.1.0 • Published 3 years ago
@comandeer/apm v0.1.0
@comandeer/apm
Detects the correct JS package manager and uses it.
Installation
npm install --global @comandeer/apmUsage
Just enter the directory of your JS project and replace your package manager binary name with the apm, e.g. instead of
npm installrun
apm installHow does it work?
The apm binary detects which package manager is used in the JS project and runs it, passing all received arguments. Currently three package managers are supported:
For now, the algorithm for detecting the right package manager is:
- check for the
packageManagerfield inside the nearestpackage.jsonfile; - otherwise, look for the lock files:
package-lock.jsonfornpm,pnpm-lock.yamlforpnpm, *yarn.lockforyarn; - otherwise, fallback to
npm.
Known limitations
npx,pnpxandyarn dxlare not currently supported. There's a plan to addapxbinary in one of the following versions.
License
See LICENSE file for details.
0.1.0
3 years ago