@binz/config-syncpack
v1.0.0
Published
Shared syncpack config
Downloads
10
Readme
Shared syncpack configuration
Format and validate dependencies using syncpack.
Setup
Install
@binz/config-syncpack
and peer dependencies at the monorepo root:// install as a workspace reference pnpm add -w @binz/config-syncpack syncpack // or install as a dev dependency pnpm add -D @binz/config-syncpack syncpack
Add syncpack configuration file:
// .syncpackrc.js module.exports = require('@binz/config-syncpack');
Add syncpack scripts:
// package.json "scripts": { ... "syncpack:fix": "syncpack format && syncpack fix-mismatches" ... }
Usage
Run repo wide syncpack fix script manually:
pnpm run syncpack:fix
Update monorepo wide dependencies:
npx syncpack update
Guided mode:
npx syncpack list
References
- https://jamiemason.github.io/syncpack/guide/getting-started/