From 8ae4e9159ccf3ada3b28c0f0a9398c82976f25d5 Mon Sep 17 00:00:00 2001 From: Iain Date: Tue, 27 Sep 2022 15:01:57 -0400 Subject: [PATCH] [iain] update the compile-contracts scripts to allow npx versions greater than fixed versions with known bug --- scripts/compile-contracts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile-contracts.ts b/scripts/compile-contracts.ts index 806744787..389bef2d0 100644 --- a/scripts/compile-contracts.ts +++ b/scripts/compile-contracts.ts @@ -24,7 +24,7 @@ main() function panicOnNpm7() { const version = new SemVer(execSync('npm -v', { encoding: 'utf8' }).trim()) - if (version.major > 6) { + if (version.major > 6 && (version.major < 8 && version.minor < 16)) { console.error( '\n' + `We're sorry, but it seems you are using ${bold('NPM ' + version.format())}.\n` +