You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><htmllang="en" dir="ltr" data-theme="dark" data-has-tocdata-has-sidebarclass="astro-iam43yqa"><head><metacharset="utf-8"/><metaname="viewport" content="width=device-width, initial-scale=1"/><linkrel="canonical" href="https://jamiemason.github.io/syncpack/command/fix/"/><linkrel="sitemap" href="/syncpack/sitemap.xml"/><scriptasyncsrc="https://www.googletagmanager.com/gtag/js?id=G-DXPH5LLJ0N"></script><script>window.dataLayer=window.dataLayer||[];functiongtag(){dataLayer.push(arguments);}gtag('js',newDate());gtag('config','G-DXPH5LLJ0N');</script><linkrel="shortcut icon" href="/syncpack/favicon.ico" type="image/x-icon"/><metaname="generator" content="Astro v5.16.16"/><metaname="generator" content="Starlight v0.37.4"/><metaproperty="og:title" content="fix"/><metaproperty="og:type" content="article"/><metaproperty="og:url" content="https://jamiemason.github.io/syncpack/command/fix/"/><metaproperty="og:locale" content="en"/><metaproperty="og:description" content="Autofix dependency version mismatches across your monorepo to match configured rules"/><metaproperty="og:site_name" content="Syncpack"/><metaname="twitter:card" content="summary_large_image"/><metaname="description" content="Autofix dependency version mismatches across your monorepo to match configured rules"/><metaname="twitter:site" content="@fold_left"/><title>fix | Commands | Syncpack</title><scripttype="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Docs","item":"https://jamiemason.github.io/syncpack/"},{"@type":"ListItem","position":2,"name":"Command","item":"https://jamiemason.github.io/syncpack/command/"},{"@type":"ListItem","position":3,"name":"Fix","item":"https://jamiemason.github.io/syncpack/command/fix/"}]}</script><scripttype="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"fix","description":"Autofix dependency version mismatches across your monorepo to match configured rules","datePublished":"2026-02-01T19:13:40.368Z","dateModified":"2026-02-01T19:13:40.368Z","author":{"@type":"Person","name":"Jamie Mason","url":"https://github.com/JamieMason"},"publisher":{"@type":"Person","name":"Jamie Mason","url":"https://github.com/JamieMason","image":"https://avatars.githubusercontent.com/u/320492?v=4"},"image":"https://jamiemason.github.io/syncpack/og/command/fix.png","inLanguage":"en"}</script><!-- Override OG images with dynamic ones --><metaproperty="og:image" content="https://jamiemason.github.io/syncpack/og/command/fix.png"><metaproperty="og:image:width" content="1200"><metaproperty="og:image:height" content="630"><metaproperty="og:image:type" content="image/png"><metaname="twitter:image" content="https://jamiemason.github.io/syncpack/og/command/fix.png"><metaname="twitter:card" content="summary_large_image"><script>
<p>Syncpack will print colours and clickable hyperlinks to the terminal using <ahref="https://en.wikipedia.org/wiki/ANSI_escape_code">ANSI escape code</a> unless this option is set.</p>
152
+
<p>Syncpack will print colours and clickable hyperlinks to the terminal using <ahref="https://en.wikipedia.org/wiki/ANSI_escape_code"rel="nofollow noopener">ANSI escape code</a> unless this option is set.</p>
<p>Only run <code>syncpack fix</code> on package.json files matching the provided pattern(s).</p>
202
-
<p>Syncpack will look in the following places for <ahref="https://github.com/rust-lang/glob">glob</a> patterns matching package.json files, in this order of precedence, and stop looking when a match is found:</p>
202
+
<p>Syncpack will look in the following places for <ahref="https://github.com/rust-lang/glob"rel="nofollow noopener">glob</a> patterns matching package.json files, in this order of precedence, and stop looking when a match is found:</p>
203
203
<ol>
204
204
<li>If <code>--source</code> CLI options are provided, use those.</li>
205
205
<li>If <ahref="/syncpack/config/source/"><code>source</code></a> is defined in configuration, use that.</li>
206
-
<li>If using <ahref="https://docs.npmjs.com/cli/v11/using-npm/workspaces">npm workspaces</a> or <ahref="https://yarnpkg.com/lang/en/docs/workspaces/">Yarn workspaces</a>, read <code>workspaces</code> from <code>./package.json</code>.</li>
207
-
<li>If using <ahref="https://pnpm.js.org/">pnpm</a>, read <code>packages</code> from <code>./pnpm-workspace.yaml</code>.</li>
208
-
<li>If using <ahref="https://lerna.js.org/">Lerna</a>, read <code>packages</code> from <code>./lerna.json</code>.</li>
206
+
<li>If using <ahref="https://docs.npmjs.com/cli/v11/using-npm/workspaces"rel="nofollow noopener">npm workspaces</a> or <ahref="https://yarnpkg.com/lang/en/docs/workspaces/" rel="nofollow noopener">Yarn workspaces</a>, read <code>workspaces</code> from <code>./package.json</code>.</li>
207
+
<li>If using <ahref="https://pnpm.js.org/"rel="nofollow noopener">pnpm</a>, read <code>packages</code> from <code>./pnpm-workspace.yaml</code>.</li>
208
+
<li>If using <ahref="https://lerna.js.org/"rel="nofollow noopener">Lerna</a>, read <code>packages</code> from <code>./lerna.json</code>.</li>
209
209
<li>Default to <code>'package.json'</code> and <code>'packages/*/package.json'</code>.</li>
210
210
</ol>
211
211
<preclass="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="bash"><code><spanclass="line"><spanstyle="color:#6A737D"># only the root package</span></span>
@@ -228,4 +228,4 @@
228
228
<preclass="astro-code github-dark" style="background-color:#24292e;color:#e1e4e8; overflow-x: auto;" tabindex="0" data-language="bash"><code><spanclass="line"><spanstyle="color:#6A737D"># Display a short summary of commands and options</span></span>
0 commit comments