.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
, orsyncpack.config.cjs
fileconfig.syncpack
orsyncpack
property inpackage.json
.
A custom name and location can be provided instead, but it must have a file extension:
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.
{ "$schema": "./node_modules/syncpack/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;