Opens profile photo
Follow
hiroki osame
@privatenumbr
Open sourcing my solutions. Anything JavaScript/TypeScript ⚡️ DX Mastodon: webtoo.ls/@privatenumber
Entrepreneur@privatenumber@webtoo.lshirok.ioJoined January 2019

hiroki osame’s Tweets

Started updating my packages to use the following configuration in package.json: - Explicit extensions: CommonJS → .cjs, ESM → .mjs - Dts files via d.cts/d.mts for Node16 resolution - Export map entries to have Dts for both require/import in Node16
Image
3
21
Show this thread
My first use-case for resolve-pkg-maps is alias-imports—a Node.js loader for creating bare aliases:
Quote Tweet
Another release hot off the press 🗞 alias-imports lets you to create BARE aliases via imports map You can override imports across your codebase (incl. dependencies) based on conditions Powered by resolve-pkg-maps released earlier today! github.com/privatenumber/
Image
Show this thread
First package release in a while 🎉 resolve-pkg-maps: a resolver for package.json exports/imports Tested exhaustively against Node for 💯% accuracy Excited for the tools this could power and the niche tsx resolution bugs this could fix
2
20
Show this thread
Google Maps Direction Finder is such an underrated feature in Google Sheets We're apartment hunting in Tokyo so we're using it to automatically calculate the commute to key destinations Super easy to filter out places that are too inconvenient
Image
1
7
Exciting personal news—I'm moving to Tokyo! 🗼🎌 I moved to the US for college 11 years ago. During my time, I lived in Boston, San Francisco & NYC. The US has been incredible but it's time for a new adventure. Tokyo is my favorite city so I'm beyond excited to live there!
1
26
📦🍣 pkgroll zero-config bundler powered by Rollup & esbuild
Quote Tweet
📦🍣 Pkgroll is a zero-config package bundler that auto-infers configuration from package.json and bundles with Rollup and esbuild Great for TypeScript + ESM libraries that want to support ESM, CommonJS, & .d.ts! ⚡️ Try it out: `npx pkgroll` github.com/privatenumber/
Show this thread
2
7
Show this thread
In the process of developing tsx, a few interesting projects were built to support it: 💮 満点 (manten): lightweight async testing framework This is how we run 1,356 tests in ~3min
Quote Tweet
Published 💮満点 (manten) over the weekend, an async-first JS testing library Its less than 1kB and only does async flow management and test result logging. Its extremely fast with no overhead! github.com/privatenumber/
1
10
Show this thread
To make sure it's reliable with max compatibility, tsx has 1,356 tests in CommonJS and Module package types, using Node.js v12~18, running on both Linux & Windows 💪💎 It's a single binary that adapts its output to leverage as much native Node.js functionality possible
1
13
Show this thread
It's been in development for months and public for weeks, and I finally feel its ready to be announced Despite that, it's already used by 200+ projects 🤯 and has been growing organically super fast (500+ ⭐️) Thank you to the early adopters for feedback and bug reports! ❤️
1
10
Show this thread
A few weeks ago, and I joined forces on a project called "tsx" TypeScript Execute (tsx) is a Node.js runtime enhanced with esbuild to run TypeScript & ESM ⚡️ If you're familiar with esno/esmo, tsx is its successor 🙌
16
553
Show this thread
7/ `npx link` fixes these problems 💫 It doesn't globally install so different Node.js versions can be used. It doesn't uninstall previous links. And it has a clear fail-state and never falls back to the remote registry. Try it out! $ npx link ./package/path
1
Show this thread
6/ When these footguns come together, it's a recipe for trouble It's very easy to accidentally install a remote package and its binaries while believing linking a local package succeeded This can turn out really bad when a malicious or file-tampering package gets installed
1
Show this thread