cli: include package lint options in repo lint cache key
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -92,10 +92,11 @@ export async function command(opts: OptionValues, cmd: Command): Promise<void> {
|
||||
|
||||
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<void> {
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user