The purpose of the syncpack is formatting package json and validating dependencies versions.
-
Add workspace reference to
@clabnet/configs-syncpack
and its peer dependencies:pnpm add -w @clabnet/configs-syncpack syncpack
-
Add syncpack configuration file:
// .syncpackrc.js module.exports = require('@clabnet/configs-syncpack')
-
Add syncpack scripts:
// package.json "scripts": { ... "syncpack:fix": "syncpack format && syncpack fix-mismatches" ... }
-
Manual usage from command line:
pnpm format:check . pnpm format:fix .