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
Conversation
💖 Thanks for opening this pull request! 💖 |
@@ -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} ...`) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a changeset
Congrats on merging your first pull request! 🎉🎉🎉 |
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.