# preconstruct/preconstruct

🎁 Dev and build your code painlessly in monorepos

Repository: https://github.com/preconstruct/preconstruct
Canonical: https://ross.abutalabs.com/products/preconstruct
Homepage: https://preconstruct.tools
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-18T02:28:02+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 86, longevity 100
- inputs: {"age_days": 2858, "days_push": 16, "days_rel": 16, "gap_med": 66.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1190, forks 65 (observed 2026-08-28T04:03:55.999942+00:00)

## What it is
Preconstruct is a CLI tool that simplifies developing and building JavaScript/TypeScript packages in monorepos. It generates dev-mode entrypoint files so packages can be imported without rebuilding, and builds production bundles with Rollup before publishing.

## Use cases
- set up npm package builds in a monorepo
- import workspace packages without rebuilding on every change
- add multiple entrypoints to a package for publishing
- build flat bundles with rollup before publishing to npm
- validate package entrypoint configuration in CI
- develop a single-package repo with production-like dev behavior

## When to choose
- you maintain a JavaScript or TypeScript monorepo with packages published to npm
- you want dev mode that mirrors production package resolution without rebuilds
- you need multiple entrypoints per package with correct dist files

## When to avoid
- you build non-JavaScript projects
- you need bundling features beyond rollup-based package builds, like full app bundling
- you prefer a zero-config bundler like tsup or unbuild for simple packages

## Facets
- artifact type: cli-tool
- maturity: active
- function: build-tool, cli, developer-tools
- domain: developer-tools, web-development
- platform: cli, cross-platform
- tags: monorepo, rollup, babel, npm-packages, package-publishing, entrypoints, typescript, javascript, nodejs

## Member repositories
- preconstruct/preconstruct (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:55.999942+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:05.463616+00:00, confidence not recorded.
  - readme: https://github.com/preconstruct/preconstruct (fetched 2026-08-28T04:03:55.999942+00:00, sha 86fbfca492f6)
  - homepage: https://preconstruct.tools (fetched 2026-08-29T12:30:09.212551+00:00, sha f1564bc5d799)
  - site_page: https://preconstruct.tools/commands (fetched 2026-08-29T12:30:09.221244+00:00, sha 999303843eed)
- Data as of 2026-08-30T08:39:29.467469+00:00.
