Open kravetsone opened 21 hours ago
The issue seems to be because bun publish
runs it with context of root directory (of monorepo), this causes tsc
to give help menu as no config.
C:\bun-repos\15388\packages\redis>bun publish
bun publish v1.1.36 (ededc168)
$ bun --print process.argv
[ "C:\\Users\\Risky\\.bun\\bin\\bun.exe", "C:\\bun-repos\\15388\\[eval]" ]
packed 0.86KB package.json
packed 1.1KB LICENSE
packed 0.66KB README.md
// ... other things
C:\bun-repos\15388\packages\redis>bun run prepublishOnly
$ bun --print process.argv
[ "C:\\Users\\Risky\\.bun\\bin\\bun.exe", "C:\\bun-repos\\15388\\packages\\redis\\[eval]" ]
And this does seem to be windows only.
What version of Bun is running?
1.1.36+ededc168c
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What steps can reproduce the bug?
Repository - monorepo with two packages
I run
bun publish
in theredis
package folder but it exited withcode 1
but when i run thisprepublishOnly
script all works fineWhat is the expected behavior?
No response
What do you see instead?
No response
Additional information
As a workaraound u can rename
prepublishOnly
to something else until it will be fixed and run it manually