Viewing profile — colinmcd
colinmcd
HN member- Joined
- Tue, Aug 27, 2013, 4:15 PM UTC
- HN karma
- 1,410
- Public activity
- 216 items
- HN profile
- View on Hacker News ↗
About colinmcd
Recent public activity
- story
- story
- story
-
comment
Comment #48669502
You can continue using pnpm if you want. Nub is a la carte. Nub's runtime or script runner functionality will work with any package manager that uses node_modules (actually Yarn Pn…
-
comment
Comment #48668200
Exactly this. TypeScript also ended up being many users' entrypoint to JSX, decorators, etc as it became a catchall transpiler surface so respecting tsconfig is vital here (Node un…
-
comment
Comment #48666446
Indeed, Nub intentionally introduces no Nub-specific APIs: no Nub global, no nub: prefixed built-in modules, no Nub-named config file / lockfile, no "nub" field in package.json, no…
-
comment
Comment #48664641
Certainly. We're using subtrees now instead of submodules, lets avoids some tricky worktree/submodule interactions during local dev. We've already pulled changes since that PR land…
-
comment
Comment #48664558
EDIT: Sorry, I understand you're talking about package.json. Would be fun to try to get the Node & package mgmt teams aligned to add support for comments in the package.json. Bun t…
-
comment
Comment #48664172
I almost called it "oi" but I'm not sure anyone would have gotten the joke :P
-
comment
Comment #48664127
Right now, you should use Nub on the backend if you are relying on its augmentations. If you specifically want to disable Nub's augmentations (so you have a guarantee that your app…
-
comment
Comment #48663218
We use this to register our preload purely for performance reasons. In this and many other cases CommonJS is still faster than ESM. Using --require is about 0.5ms overhead vs 4.6ms…
-
comment
Comment #48662444
It entered public beta last week, but just getting on HN now.
-
comment
Comment #48662432
Coming very soon!
-
comment
Comment #48661393
Thanks :) Highly recommend clicking the link too!
-
comment
Comment #48661387
Yep, full support on macOS, Linux, Windows. No official image yet (I'll start on this now) but you can get started with something like this. FROM node:26-slim RUN npm i -g @nubjs/n…
-
comment
Comment #48661271
Cloudflare Workers is a different runtime and has its own toolchain around it. Nub could theoretically support it when executing files (spawn `wrangler dev` instead of `node` if wr…
- comment
-
story
Show HN: Nub – A Bun-like all-in-one toolkit for Node.js
Colin here, creator of Nub. I’ve had the general shape of this in mind for years. Nub runs your code with stock `node`, augmented with a `--require` preload hook[0] that adds a tra…
- story
- story
-
comment
Comment #44044693
As you allude to: your aliased "zod-next" dependency wouldn't be able to satisfy the requirements of any packages with a peer dep on Zod. But this approach has a more fundamental f…
-
comment
Comment #44044591
It won't typecheck, which is good in this case, because as you say that's a very bad idea :)
-
comment
Comment #44044539
I understand this as a knee-jerk reaction. I didn't do this lightly. > Perhaps publish a 4.x along with the 3.x stuff You have some misconceptions about how npm works. Unfortunatel…
-
comment
Comment #44044474
No, that kind of interop, especially static interop (assignability), would've been totally unworkable. Despite the length of the changelog, there are very few breaking changes to t…
-
comment
Comment #44038742
Yes! Zod now differentiates between `z.string().optional()` and `z.union([z.string(), z.undefined()])` (as in TypeScript itself). Details: https://x.com/colinhacks/status/191929150…