Michael H

Results 111 comments of Michael H

More fun info ```sh # windows C:/> bunx bun@1 --print process.argv "a b" "d e" [ "C:\\..\\bun.exe", "a", "b", "d", "e" ] # linux $ bunx bun@1 --print process.argv "a...

Sadly this is a typescript limitation. They don't allow specifying different types for import attributes: https://github.com/microsoft/TypeScript/issues/46135

There is now [`bun install --filter`](https://bun.sh/docs/cli/install#installing-dependencies-for-specific-packages), however it isn't for adding and instead only installing a subset of needed packages.

Minimal repo: ```ts Array.prototype[Symbol.iterator] = function () { class A { } class B extends A { } new B() }; for (const _ of []) { } ```

I'm not sure if Bun can do much more than your solution for typing, that would have to be something that typescript itself would have to implement (or somehow make...

What about with `1.3.1` or `BUN_FEATURE_FLAG_DISABLE_NATIVE_DEPENDENCY_LINKER=1 BUN_FEATURE_FLAG_DISABLE_IGNORE_SCRIPTS=1 bun install`?

thanks, and im guessing clearing cache doesn't fix it either `rm -rf node_modules && bun pm cache rm`

good catch, also prisma's docs seem to have same issue lol: https://www.prisma.io/docs/orm/overview/databases/database-drivers#660-and-later

With #17701, you can do it easier with just reading `.env` text content and using the result value ```ts import util from "node:util"; async function loadEnvFile(file: string): void { Object.assign(process.env,...

I can see that when using `debugger` for the breakpoint it uses 100% cpu. I'm assuming it's a bad way to keep it paused by keeping the cpu busy so...