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

undefined is output before results if there is no config file present #106

Closed
tom-fletcher opened this issue Dec 17, 2022 · 3 comments
Closed

Comments

@tom-fletcher
Copy link
Contributor

Description

If there is no config file present, when running syncpack (with any command) undefined is output to the console before the results are displayed. When a config file is present, results display as normal.

Example output:

$ pnpm syncpack                   
undefined
- @esbuild-kit/esm-loader ^2.5.4
- ...

Suggested Solution

The offending line is in disk.ts:

console.log(rcConfig);

I suspect this may be a bit of debug code that has managed to creep in and needs deleted?

@JamieMason
Copy link
Owner

Thanks a lot @tom-fletcher, I'd been meaning to sort this but not had chance – thanks a lot for finding the cause for me. I think you're right that I'd left some debug code in. 👍🏻

@JamieMason
Copy link
Owner

This is finally released in 8.5.14, thanks a lot.

@tom-fletcher
Copy link
Contributor Author

Nice - as ever, thanks for the package and the work that goes into maintaining it!

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

No branches or pull requests

2 participants