We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61bde4 commit 3a08a7aCopy full SHA for 3a08a7a
1 file changed
src/format.ts
@@ -73,9 +73,14 @@ export const run = async (program: CommanderApi) => {
73
74
await Promise.all(
75
pkgs.map(({ data, path }) => {
76
- console.log(chalk.blue(`./${relative('.', path)}`));
77
const nextData = sortManifest(shortenBugs(shortenRepository(data)));
78
- return writeJson(path, nextData, { spaces: indent });
+ const hasChanged = JSON.stringify(nextData) !== JSON.stringify(data);
+ const shortPath = `./${relative('.', path)}`;
79
+ if (hasChanged) {
80
+ console.log(chalk.bgYellow.black(' FIXED '), chalk.blue(shortPath));
81
+ return writeJson(path, nextData, { spaces: indent });
82
+ }
83
+ console.log(chalk.bgGreen.black(' VALID '), chalk.blue(shortPath));
84
})
85
);
86
};
0 commit comments