This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readFileSync, writeFileSync } from 'fs' | |
import semver from 'semver' | |
import { exec } from 'child_process' | |
// Currently, pnpm (version 8.5.1) is not recognizing overrides properly on install | |
// This is a temporary solution that simplifies the overrides generated by pnpm audit -P --json | |
// It basically gets rid of the vulnerable version specifier | |
interface SimplifiedPackageConfig { | |
pnpm?: { |