News for hackers. Stuff that matters.
Re:Show HN: Nub – A Bun-like all-in-one toolkit for Node.js by matt_kantor on Wednesday June 24, 2026 @04:38PM (#48665333)
> Simple example: [package.json is JSON]

Why can't you fix this while embracing existing tech? I can imagine monkeypatching Node & NPM to add support for JSONC or JSON5 or whatever in the same way that Nub adds various features via monkeypatching. Is there some architectural reason that can't work?

You'd need `npm publish` to compile it down to plain JSON when publishing, but that seems like an okay compromise.

Re:Show HN: Nub – A Bun-like all-in-one toolkit for Node.js by conartist6 on Wednesday June 24, 2026 @09:27PM (#48667692)
Yeah stripping out comments at publish time would have been the smartest move. Keep in mind though that a git repo can be used as a package, so there isn't necessarily going to be an explicit publish step