diff --git a/packages/cli/src/commands/repo/lint.ts b/packages/cli/src/commands/repo/lint.ts index a6381d3520..b5a89471a7 100644 --- a/packages/cli/src/commands/repo/lint.ts +++ b/packages/cli/src/commands/repo/lint.ts @@ -92,10 +92,11 @@ export async function command(opts: OptionValues, cmd: Command): Promise { const items = await Promise.all( packages.map(async pkg => { + const lintOptions = parseLintScript(pkg.packageJson.scripts?.lint); const base = { fullDir: pkg.dir, relativeDir: relativePath(paths.targetRoot, pkg.dir), - lintOptions: parseLintScript(pkg.packageJson.scripts?.lint), + lintOptions, parentHash: undefined, }; @@ -107,6 +108,8 @@ export async function command(opts: OptionValues, cmd: Command): Promise { hash.update(await graph.getDependencyHash(pkg.packageJson.name)); hash.update('\0'); + hash.update(JSON.stringify(lintOptions)); + hash.update('\0'); hash.update(process.version); // Node.js version hash.update('\0'); hash.update('v1'); // The version of this implementation