Skip to content
This documentation is for v14 alpha, the docs for v13 stable are archived.

.syncpackrc

Syncpack searches the current directory for a:

  • .syncpackrc file with no extension in JSON format
  • .syncpackrc file with the extension .json, .yaml, .yml, .js, .ts, .mjs, or .cjs
  • syncpack.config.js, syncpack.config.ts, syncpack.config.mjs, or syncpack.config.cjs file
  • config.syncpack or syncpack property in package.json.

A custom name and location can be provided instead, but it must have a file extension:

Terminal window
syncpack list --config ./config/syncpack.json

Your config file only needs to define values for those you want to change from the defaults.

JSON is preferred as it is the fastest, without the overhead of calling out to Node.js and TypeScript.

.syncpackrc.json
{
"$schema": "./node_modules/syncpack/schema.json",
"indent": " "
}
.syncpackrc.ts
export default {
indent: " ",
} satisfies import("syncpack").RcFile;
.syncpackrc.cjs
// @ts-check
/** @type {import("syncpack").RcFile} */
const config = {
indent: " ",
};
module.exports = config;