Skip to content

Commit

Permalink
Fix match-graphql.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Oct 27, 2021
1 parent 3815190 commit a856c7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/match-graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const version = argv[2];

pkg.resolutions = pkg.resolutions || {};
if (pkg.resolutions.graphql.startsWith(version)) {
console.info(`GraphQL v${version} already installed! Skipping.`);
// eslint-disable-next-line no-console
console.info(`GraphQL v${version} is match! Skipping.`);
return;
}

const npmVersion = version.includes('-') ? version : `^${version}`;
Expand Down

0 comments on commit a856c7a

Please sign in to comment.