.syncpackrc
Syncpack searches the current directory for a:
.syncpackrcfile with no extension in JSON format.syncpackrcfile with the extension.json,.yaml,.yml,.js,.ts,.mjs, or.cjssyncpack.config.js,syncpack.config.ts,syncpack.config.mjs, orsyncpack.config.cjsfileconfig.syncpackorsyncpackproperty inpackage.json.
A custom name and location can be provided instead, but it must have a file extension:
syncpack list --config ./config/syncpack.jsonYour 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.
{ "$schema": "./node_modules/syncpack/dist/schema.json", "indent": " "}TypeScript
Section titled “TypeScript”export default { indent: " ",} satisfies import("syncpack").RcFile;JavaScript
Section titled “JavaScript”// @ts-check
/** @type {import("syncpack").RcFile} */const config = { indent: " ",};
module.exports = config;