502
*/
503
export function parsedPluginsEqual(a: readonly IParsedPlugin[], b: readonly IParsedPlugin[]): boolean {
505
>
// We serialize only the essential fields, replacing URIs with strings.
506
>
const serialize = (plugins: readonly IParsedPlugin[]) => {
507
>
return JSON.stringify(plugins.map(p => ({
508
format: p.format,
509
hooks: p.hooks.map(h => ({ type: h.type, commands: h.commands.map(c => ({ command: c.command, windows: c.windows, linux: c.linux, osx: c.osx, cwd: c.cwd?.toString(), env: c.env, timeout: c.timeout })) })),