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

Adjust pnpm to support Sail alias #607

Merged
merged 5 commits into from
Aug 17, 2023
Merged

Conversation

SamuelMTeixeira
Copy link
Contributor

PR related to issue #606.

Adjustment to add support for pnpm when using pnpm or pnpx with the Sail alias.

Using sail

image

Using devcontainer/docker exec

image

@taylorotwell taylorotwell merged commit cfa1ad5 into laravel:1.x Aug 17, 2023
Copy link

Choose a reason for hiding this comment

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

I think it's better to put the pnpm install command on a separate line after the long-running command, like so
RUN curl -fsSL https://get.pnpm.io/install.sh | bash
this will make rebuilding faster because it allows Docker to run the long-running command from the cache

Copy link

Choose a reason for hiding this comment

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

Also, this way when you run sail shell, the pnpm command will not be available because it's installed only for the root user.

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