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(env): show state on fetching node #5241

Merged
merged 3 commits into from Aug 22, 2022

Conversation

JacobLinCool
Copy link
Contributor

Add an immediate response when fetching Node.js on version switching, preventing pnpm looks like just hanging there.

I noticed that @pnpm/logger and @pnpm/core-loggers are being used in many packages.
But it doesn't work when I try to use it like logger.info({ message: "...", prefix: "dir" }), I think I have missed something.

@welcome
Copy link

welcome bot commented Aug 21, 2022

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

@@ -71,6 +71,7 @@ export async function getNodeDir (fetch: FetchFromRegistry, opts: NvmNodeCommand
pnpmHomeDir: opts.pnpmHomeDir,
})
const cafsDir = path.join(storeDir, 'files')
console.log(`Fetching Node.js ${opts.useNodeVersion} ...`)
Copy link
Member

Choose a reason for hiding this comment

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

you should probably import globalInfo from @pnpm/logger and print via it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your friendly reminder! I was just curious to know why @pnpm/logger is out of the monorepo?

Copy link
Member

@zkochan zkochan left a comment

Choose a reason for hiding this comment

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

add a changeset

@zkochan zkochan merged commit c242672 into pnpm:main Aug 22, 2022
@welcome
Copy link

welcome bot commented Aug 22, 2022

Congrats on merging your first pull request! 🎉🎉🎉

This was referenced Aug 29, 2022
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.

None yet

2 participants