Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

ADTC
Copy link
Contributor

@ADTC ADTC commented Aug 29, 2025

This makes the experience better for those who have a script named "deploy", and may potentially get confused why "pnpm deploy" doesn't work.

Related to #9475 but doesn't actually fix it.

PS: Not sure if docs(deploy) is correct. Feel free to change the title.

…space

This makes the experience better for those who have a script named "deploy",
and may potentially get confused why "pnpm deploy" doesn't work.

Related to pnpm#9475 but doesn't actually fix it.
@ADTC ADTC requested a review from zkochan as a code owner August 29, 2025 17:45
Copy link

welcome bot commented Aug 29, 2025

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@zkochan
Copy link
Member

zkochan commented Aug 30, 2025

The hint only makes sense if there is such script in package.json, which can be checked.

@ADTC
Copy link
Contributor Author

ADTC commented Sep 1, 2025

It's a hint, so I don't think it matters whether it's factually correct. It's up to the user to decide the relevance. Besides, the situation where it's irrelevant is far less likely. Most users run pnpm deploy outside workspace because they have a script by that name.

Also, if we're going to fact-check the hint, then we might as well actually run the script when pnpm deploy (without run) is invoked outside workspace. This is what #9475 wants (rather than a fact-checked hint). Do you agree to have it implemented this way instead? @zkochan

@zkochan
Copy link
Member

zkochan commented Sep 2, 2025

You are making a big deal from it although it isn't a big change. I'll push it.

I don't think it is a good idea to allow it outside a workspace. What if we will implement it for single-package workspace?

@ADTC
Copy link
Contributor Author

ADTC commented Sep 3, 2025

@zkochan Thank you for doing the change, and I apologize for the emotions.

Hope this can be merged in to help reduce confusion in future pnpm versions. Thanks! :)

PS: The test failure in Windows doesn't look related, though I'm not sure:

  FAIL test/dlx.ts (196.57 s)
    ● dlx creates cache and store prune cleans cache
  
      Command timed out after 180000ms
  
        163 | function registerProcessTimeout (proc: NodeChildProcess, timeout: number, onTimeout: (reason: Error) => void) {
        164 |   return setTimeout(() => {
      > 165 |     onTimeout(new Error(`Command timed out after ${timeout}ms`))
            |               ^
  
        at Timeout._onTimeout (test/utils/execPnpm.ts:165:15)

@zkochan zkochan changed the title docs(deploy): hint "pnpm run deploy" for "pnpm deploy" outside a workspace fix(deploy): hint "pnpm run deploy" for "pnpm deploy" outside a workspace Sep 3, 2025
@zkochan zkochan merged commit 2d2ad8b into pnpm:main Sep 3, 2025
7 of 11 checks passed
Copy link

welcome bot commented Sep 3, 2025

Congrats on merging your first pull request! 🎉🎉🎉

@ADTC ADTC deleted the patch-3 branch September 3, 2025 13:26
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.