Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.18 KB

README.md

File metadata and controls

65 lines (42 loc) · 1.18 KB

Shared syncpack configuration

The purpose of the syncpack is formatting package json and validating dependencies versions.


Contents

Setup

  • Add workspace reference to @muravjev/configs-syncpack and its peer dependencies:

    pnpm add -w @muravjev/configs-syncpack syncpack
  • Add syncpack configuration file:

    // .syncpackrc.js
    
    module.exports = require('@muravjev/configs-syncpack');
  • Add syncpack scripts:

    // package.json
    
    "scripts": {
      ...
      "syncpack:fix": "syncpack format && syncpack fix-mismatches"
      ...
    }

Usage

  • Manual usage from command line:

    pnpm format:check .
    pnpm format:fix .

Donation

If you found this project helpful, consider
buying me a coffee, donate by paypal or just leave a star
Thanks for your support, it is much appreciated!

License

MIT © Sergey Muravjev


⬅ Back