@atools/pm
v1.0.12
Published
a tiny package manager.
Downloads
44
Readme
About
📦 a tiny package manager.
Quick Start
Step 1
$ npm install -D @atools/pm
Step 2
"scripts": {
"pm_install": "./node_modules/.bin/pm run install"
}
Advanced Usage
.pmrc.js
const path = require("path");
module.exports = {
root: path.join(__dirname, "./_fixtures/packages"),
hooks: {
cmd: {
beforeExec: function (cmd) {
if (cmd === "npm i") {
return "cnpm ii";
} else if (cmd === "npm uninstall") {
return "cnpm uninstall";
}
},
},
},
};
Internal Handles
- cmd / install
- cmd / uninstall