HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
google
wireit
TypeScript2022–2026
google / wireit

wireit

Wireit upgrades your npm/pnpm/yarn scripts to make them smarter and more efficient.

8Distinct people
16Mentions
1Explicit recommenders
6.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Wireit upgrades your npm/pnpm/yarn scripts to make them smarter and more efficient.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

For those of you working in Node and npm, npm has pretty good built-in support for monorepos now with the workspaces feature. The big missing thing is incremental builds, which…

spankalee used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 10:56:20 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year16 dated mentions

Observed mentions: 2022-04-27 00:20:30 UTC to 2026-02-09 08:40:50 UTC.

02462022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 6 mentions; 4 submissions, 2 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 4 mentions; 2 submissions, 2 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments20242025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC642
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC422
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC220
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC202
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC211

What Hacker News says

6 sources
I really like https://github.com/google/wireit/ for this purpose! My monorepo looks like this: project-1/packages/core project-1/packages/preact project-2/packages/core project-2/packages/demos etc. where a bunch of related projects live top-level in a repo. Each project has a packages folder that includes the core implementation, as well as demos, framework-specific adaptors, etc. In each package's package.json, I have a series of commands (convert the TS to JS, make a bundle, deploy to Firebase, etc.). Each command can depend on another, either in the same project or anywhere else in the file hierarchy. This provides two benefits: 1. Iterating across packages is faster, because I don't have to worry about making sure each package rebuilds in the right order if I make a change in a library. 2. Filesystem concerns a
Read the rest
re separated: rollup only needs to worry about bundling, and it only needs to bundle web-facing projects. The only tool my libraries need is tsc. (Before wireit, using TypeScript and Rollup together was a pain in the ass because you'd have to fiddle with picking the right TS plugin and configuring it. This was also often the long pole on doing a Rollup version upgrade. Decoupling the two makes Rollup way simpler/easier/nicer to use, which makes wireit awesome even if you don't have multiple packages.) It's also a good replacement for lerna. Each of my packages has a publish command that runs `gitpkg publish`. My root package.json has a publish command that depends on all the packages' publish commands. Thus, I can run `yarn run publish` in the root of my monorepo and trust that all of my packages have been published to our git host appropriately. (gitpkg lets you turn a git host into a private registry, so you can share modules without setting up an NPM registry.) Here's a snippet from one of my package.jsons. They basically all look like this. (start is complicated because of https://github.com/google/wireit/issues/33. When that's resolved, it will be as simple as the others.) "scripts": { "start": "yarn run -TB concurrently \"yarn run build:tsc --watch\" \"rollup --config ./rollup.config.js --watch\" \"dhost site --bind-all\"", "build": "yarn run -TB wireit", "build:tsc": "yarn run -TB wireit", "build:bundle": "yarn run -TB wireit", "deploy": "yarn run -TB wireit" }, "wireit": { "build": { "dependencies": [ "build:tsc", "build:bundle" ] }, "build:tsc": { "command": "tsc --build --pretty", "clean": "if-file-deleted", "files": [ "src/**/*.{ts,tsx}", "tsconfig.json", "../../tsconfig.common.json" ], "output": [ "dist/**", ".tsbuildinfo" ], "packageLocks": [ "yarn.lock" ], "dependencies": [ "../core:build", "../preact:build" ] }, "build:bundle": { "command": "rollup --config ./rollup.config.js", "clean": true, "files": [ "dist/**/*.js", "rollup.config.js" ], "output": [ "site/mount.js", ".tsbuildinfo" ], "packageLocks": [ "yarn.lock" ], "dependencies": [ "build:tsc" ] }, "deploy": { "command": "firebase deploy", "dependencies": [ "build:bundle" ] } },
In Best practices for TypeScript monorepo
no_wizard·Jun 23, 2022Submission

Ask HN: Anyone Here Use Bazel for Front End (Vue, TypeScript) Monorepos?

Hi HN! I have been doing over month long of research in terms of figuring out the best way to manage a growing monorepo. We are trying to consolidate much of our frontend code base into a monorepo, managed by pnpm workspaces, to consolidate dependency management and take advantage of tool (as well as other code sharing benefits) of monorepos that are a good fit for us. To that end, I'm looking to understand if anyone has used Bazel extensively for managing monorepos. I want to understand how easy it is to configure Bazel, how easy it is to use Bazel, especially newer developers (particularly self discovery of the toolset), how easy it is to maintain it, and how much burden the tool has placed on developers. We really are looking for a tool that is largely self sufficient for the purpose. Main features we care about: - Maintainability: is
Read the rest
it is to maintain (updates etc) - Extensibility: how extensible is it? more importantly, how easily can it be extended? - Built in watch mode that understands its dependency graph for each task, and can run them simultaneously - Works with pnpm / npm workspaces natively - Stream based output: e.g. if running multiple tasks it interleaves them appropriately, even better if they're labeled and color coded - Dependency graph tracking. IE: if I run build for a package, it understands that it may have dependencies that need to be built first. - Able to run tasks arbitrarily on a "per package" process, potentially Now, after mentioning all that, I realize, by reading the docs, in theory Bazel supports all this and has lots of feature headroom for growing features over time which I like, however, I've read mixed things about it, but not all of the sources I've read so far are "up to date" (some articles about people adopting Bazel are years old now) and I wanted to get a more accurate picture of what is going on here. Alternatively, I'm open minded to looking at a different set of tools For context I've done alot of research and experimentation with the follow: - nx[0] - rush[1] - wireit[2] - turbo[3] We've settled on, for now `wireit` in part because it has a really good watch mode feature that `nx` does not (nx doesn't have a built in watch mode for your task runner, it relies on the plugin / script to handle it, which was really problematic). However, wireit isn't extensible, and I'm not looking to have to manage sub task "phasing" with something like `gulp`. This was an issue with rushjs as well (but rushjs has its own challenges and opinions). While rush is starting to expose a direct `rush-sdk` API, its not really documented and I'm not sure about its stability or best way to go about making rush plugins. They also have a competing task runner called `heft` that I'm not sure about in the light of the `rush-sdk` and its use cases (if someone from the rush team sees this and can clarify about the long term vision and where they're at with it now, I'm all ears) tl;dr: I've tried tons of tools, and Bazel seems to check all the boxes, but I'm afraid the complexity will kill us, since we don't have a dedicated tool engineer to oversee it, it has to malleable enough that we can maintain it bit by bit over time [0]: https://nx.dev/ [1]: https://rushjs.io/ [2]: https://github.com/google/wireit [3]: https://turborepo.org/docs
2 points · Open discussion
In the past, I'd put a "typescript:main" field in package.json and configured my bundler to prefer that field. I gave up at some point - probably when I migrated to rollup. Moving forward, I'm going to use wireit for these things. Pure modules get built with tsc. At the highest level (e.g. where it needs to be embedded in a page), make a bundle with rollup. wireit has two nice properties: incremental building and file-system-level dependencies. Within a repo, you can depend on ../package-b. However, if you have multiple monorepos that often get used together, you can also depend on ../../other-project/packages/package-b. No matter where in your tree you make changes, wireit knows when to make a new bundle. I've just started with wireit (it was only launched recently), but it seems to be a nice solution to wrangling dependencies betw
Read the rest
een related JS libraries. [1] https://github.com/google/wireit
In Monorepos in JavaScript and TypeScript

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.