๐ก Monorepo Tiny Package Manager = Packages + Handles.
You may not need lerna.
๐ฆ a tiny package manager.
$ npm install -D @atools/pm
"scripts": {
"pm_install": "./node_modules/.bin/pm run install"
}
.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";
}
},
},
},
};
- cmd / install
- cmd / uninstall