Skip to content
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

Feature/jst 453 #49

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Feature/jst 453 #49

merged 2 commits into from
Oct 9, 2023

Conversation

pgrzy-golem
Copy link
Contributor

Installs dependencies at the end of golem-sdk new command (if --skip-install is not set)

@pgrzy-golem pgrzy-golem changed the base branch from master to beta October 4, 2023 11:32
name: "npm",
};

const ua = userAgent ?? process.env["npm_config_user_agent"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if userAgent === "" this will evaluate to "", is this the expected behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if we pass a userAgent, we want to use it, ignoring the env, even if it's empty.

*
* @param userAgent Optional user agent.
*/
export function getPackageManager(userAgent?: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point of this arg if you never use it? (the only call to getPackageManager has no args provided)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I get a bit more free time, I'll add an option to command line to specify the package manager.

@pgrzy-golem pgrzy-golem merged commit 7986746 into beta Oct 9, 2023
9 checks passed
@pgrzy-golem pgrzy-golem deleted the feature/JST-453 branch October 9, 2023 07:56
@github-actions
Copy link

github-actions bot commented Oct 9, 2023

🎉 This PR is included in version 1.1.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants