1.0.0 • Published 10 months ago

@binz/config-syncpack v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

1.0.0

10 months ago