- Change working directory to patronum sources
cd patronum
- Install dependencies for patronum via pnpm:
pnpm install
- Build patronum with specific name:
LIBRARY_NAME=@effector/patronum pnpm build
- Remove all dependencies:
rm -rf node_modules
- Go to the integration directory (cra or custom):
cd integration/cra
- Install dependencies for this package:
pnpm install
- Add prebuilt patronum to local package:
pnpm add ../../dist
- Run tests
pnpm test
Note: be careful NOT to commit
babel-plugin-factories.json
with changed library name@effector/patronum
When work is done, please remove @effector/patronum
from integration packages via pnpm remove @effector/patronum
, else CI can be broken.