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

cli: bun --bun run <script> sometimes does not look for scripts #16482

Open
DonIsaac opened this issue Jan 17, 2025 · 1 comment · May be fixed by #15117
Open

cli: bun --bun run <script> sometimes does not look for scripts #16482

DonIsaac opened this issue Jan 17, 2025 · 1 comment · May be fixed by #15117
Labels
bug Something isn't working cli Something to do with CLI arguments needs investigate Needs to be investigated to find the root cause

Comments

@DonIsaac
Copy link
Contributor

What version of Bun is running?

1.1.44-canary.74+68089a099

What platform is your computer?

Darwin 24.1.0 arm64 arm

What steps can reproduce the bug?

git clone [email protected]:expressjs/express
cd express
bun install
bun --bun run test

What is the expected behavior?

Tests run

What do you see instead?

error: Module not found '<omitted>/express/test'

Bun v1.1.44-canary.74+68089a099 (macOS arm64)

Additional information

  • bun run test works fine
  • I cannot repro on a newly initialized codebase. Steps I took
    • bun init
    • add this script: "test": "bun index.ts" -- works
    • then installing typescript and trying "test": "tsc --noEmit" -- also works
  • adding/removing tsconfig.json has no effect
@DonIsaac DonIsaac added bug Something isn't working cli Something to do with CLI arguments needs investigate Needs to be investigated to find the root cause labels Jan 17, 2025
@nektro
Copy link
Member

nektro commented Jan 18, 2025

will be fixed by #15117

@pfgithub pfgithub linked a pull request Jan 18, 2025 that will close this issue
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Something to do with CLI arguments needs investigate Needs to be investigated to find the root cause
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants