-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: verify fails if node not installed #167
Conversation
@W-9930707@
Co-authored-by: Shane McLaughlin <[email protected]>
Co-authored-by: Shane McLaughlin <[email protected]>
@@ -6,9 +6,12 @@ | |||
*/ | |||
/* eslint-disable @typescript-eslint/no-unused-vars */ | |||
|
|||
import { type as osType } from 'os'; |
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.
@maggiben why the alias? This confuses old people like me :) I would rather see os.type()
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.
@peternhale that was me.
Because if you want to do os.type()
then you have to bring in all of os
with import * as os from 'os';
.
So you can do import { type } from 'os';
to only bring in what you need but then calling type()
isn't very descriptive either, so I aliased it to osType()
;
@W-9930707@
What does this PR do?
What issues does this PR fix or reference?
forcedotcom/cli#1198