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

feat: support pnpm package manager #645

Closed
wants to merge 8 commits into from

Conversation

sarya-godaddy
Copy link

@sarya-godaddy sarya-godaddy commented Jan 2, 2024

Summary

  • add support for pnpm package manager

Changelog

  • added pnpm as a choice for package manager prompt in gasket create
  • updated PackageManager with pnpm commands

Test Plan

  • updated unit tests
  • tested by creating a gasket project with pnpm locally

NOTE: I haven't tested this on windows

@sarya-godaddy sarya-godaddy requested review from kinetifex and a team as code owners January 2, 2024 20:37
@mmason2-godaddy
Copy link
Contributor

@sarya-godaddy Are you still actively working on this PR? The subject of pnpm came up today funny enough. We're going to be SPIKING-OUT this feature.

@sarya-godaddy
Copy link
Author

@mmason2-godaddy Yes I can pick this back up. Just need to update the command line output and unit tests. I will get this ready for review by end of next week 03/01. gdcorp-action-public-forks/pnpm-action-setup is now also available for using pnpm in GHA

// Support for the .npmrc configured via --npmconfig flag.
// pnpm does not have a "userconfig" CLI flag, it does however still
// support the npm_config_* environment variables for npm compatibility.
if (this.npmconfig) env.NPM_CONFIG_USERCONFIG = this.npmconfig;
Copy link
Contributor

Choose a reason for hiding this comment

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

The --npmconfig flag is being removed in the next major version. See #647

While this is not a breaking change, if there's no immediate need for it now, could we just save pnpm support for our next major version 7?

Copy link
Author

@sarya-godaddy sarya-godaddy Mar 14, 2024

Choose a reason for hiding this comment

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

I don't see a need for it. people can migrate from npm to pnpm pretty easily. I will create another PR after new gasket-cli changes are merged

@sarya-godaddy sarya-godaddy changed the base branch from main to v7 March 14, 2024 19:11
@sarya-godaddy sarya-godaddy changed the base branch from v7 to main March 14, 2024 19:11
@sarya-godaddy
Copy link
Author

there is a PR for releasing this to v7 #797

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

Successfully merging this pull request may close these issues.

3 participants