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

fix: cli.executable should be resolved from cwd #211

Merged
merged 5 commits into from
Nov 11, 2022

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Nov 9, 2022

Closes #208

To test this PR I:

  • Built and packed the wizard yarn build && npm pack
  • Installed via npx sentry-wizard-2.0.1.tgz
  • Created a new Next.js project and followed the docs instructions
  • When it came to running the wizard I ran ~/.npm/_npx/f5b3fa0ab77970d2/node_modules/@sentry/wizard/dist/bin.js -i nextjs

sentry.properties ends up with:

cli.executable=node_modules/@sentry/cli/bin/sentry-cli

This property isn't actually used for many of the wizard targets so I could have excluded it but it seemed like it would be better to fix this to work with npx.

Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

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

Nice. Glad it was such an easy fix!

@AbhiPrasad AbhiPrasad merged commit d89c30a into getsentry:master Nov 11, 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.

[@sentry/cli] Path resolution to @sentry/cli is unreliable
3 participants