-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Description
What version of Bun is running?
1.2.7+5c0fa6dc2
What platform is your computer?
Darwin 24.3.0 arm64 arm
What steps can reproduce the bug?
On bun 1.2.7, I can't run Standard without crashing. I have the following line on my package.json
...
"lint": "standard"
...
on 1.2.6 it runs just fine, on 1.2.7, it throws this
❯ bun lint
$ standard
18 | if (minMinor !== undefined && typeof minMinor !== 'number') throw new TypeError('Expected minMinor to be undefined or a number');
19 |
20 | var mainFile = (require.main || {}).filename || '';
21 |
22 | if (mainFile === '') {
23 | throw new Error('Missing mainFile, indication this is run directly, it should not be, failing');
^
error: Missing mainFile, indication this is run directly, it should not be, failing
at versionGuard (/Users/luiz/Projects/switchboard/node_modules/version-guard/index.js:23:11)
at /Users/luiz/Projects/switchboard/node_modules/standard/bin/cmd.cjs:1:51
Bun v1.2.7 (macOS arm64)
error: script "lint" exited with code 1
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Reactions are currently unavailable