-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update cli version #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ajwootto - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟢 Complexity: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@@ -26,7 +26,7 @@ export async function run() { | |||
} | |||
|
|||
try { | |||
await exec('npm', ['install', '-g', '@devcycle/cli@5.10.1']) | |||
await exec('npm', ['install', '-g', '@devcycle/cli@5.14.5']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code_refinement): Consider specifying a more flexible version range for @devcycle/cli.
Using a fixed version can lead to issues with maintainability and compatibility with other packages. A version range like '^5.14.5' might be more appropriate to automatically include non-breaking updates.
await exec('npm', ['install', '-g', '@devcycle/[email protected]']) | |
await exec('npm', ['install', '-g', '@devcycle/cli@^5.14.5']) |
@@ -26,7 +26,7 @@ | |||
} | |||
|
|||
try { | |||
await exec('npm', ['install', '-g', '@devcycle/cli@5.10.1']) | |||
await exec('npm', ['install', '-g', '@devcycle/cli@5.14.5']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (testing): Missing test for updated CLI version
The update to the CLI version should be accompanied by a test to verify that the new version installs correctly and integrates with the system as expected. This is crucial to ensure that the update does not introduce any regressions or compatibility issues.
await exec('npm', ['install', '-g', '@devcycle/[email protected]']) | |
const cliVersion = '@devcycle/[email protected]'; | |
await exec('npm', ['install', '-g', cliVersion]); | |
const verifyInstall = await exec('npm', ['list', '-g', cliVersion]); | |
if (!verifyInstall.stdout.includes(cliVersion)) { | |
throw new Error('Installation of ' + cliVersion + ' failed.'); | |
} |
No description provided.