Use the package manager pnpm to install the syncpack configuration and related packages in the root project.
pnpm add --save-dev --save-exact --workspace-root --workspace syncpack-config
pnpm add --save-dev --save-exact --workspace-root syncpack
Create a syncpack configuration file in ES module format. Import the configuration from syncpack-config and export as default.
import baseConfig from 'syncpack-config';
export default baseConfig;
Syncpack is configured to be run as a script to lint and format package.json.
pnpm syncpack