fix: remove prepack/postpack hooks that break pnpm -r pack Upstream-era hooks ran lint and tests inside pack (needing docker services), deleted lib/ after packing, or invoked yarn/npm-run-all which crashes under pnpm (commitizen config). The release pipeline builds all packages explicitly before packing, so the hooks were redundant and made the workspace un-packable: only 10 of 21 tarballs survived. prepare/prepublish hooks are left untouched for now.
Monorepo for the Apache Casbin Node.js extensions: storage adapters, watchers, framework middlewares, and utilities. Each package keeps its own npm package name and semantic version.
packages/ ├── adapters/ # storage adapters (file, redis, sequelize, typeorm, ...) ├── watchers/ # multi-instance policy synchronization ├── middlewares/ # framework integrations (express, koa, egg, nest, hapi) ├── role-managers/ # role managers (session-based) └── utils/ # shared utilities examples/ # runnable examples (not published to npm)
Requires pnpm.
pnpm install pnpm -r build pnpm -r test
Packages were imported from their original repositories with full git history preserved (authors, dates, tags) via git filter-repo --to-subdirectory-filter, with tags renamed to <package>-<version>.