#17636: Build: add runtime-only build target
maintainer
size: XS
Cluster:
Build and Fix Enhancements
## Summary
- Adds `pnpm build:runtime` for packagers/runtime builds.
- `pnpm build` remains unchanged (still generates plugin-sdk d.ts for TS consumers).
## Why
Packagers that build from source in clean environments often do not need plugin SDK declaration output for runtime packaging, but the declaration build can be expensive.
## Tests
- `pnpm -s build:runtime`
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Adds a `pnpm build:runtime` script that runs the full build pipeline minus the plugin-sdk TypeScript declaration generation (`tsc` + entry `.d.ts` stub writing). This lets packagers building from source in clean environments skip the expensive declaration emit when only runtime JS output is needed. The existing `pnpm build` remains unchanged.
- Adds `build:runtime` script in `package.json` that mirrors `build` but omits `build:plugin-sdk:dts` and `write-plugin-sdk-entry-dts.ts`
- Adds corresponding changelog entry under the unreleased section
- No runtime-critical build steps are missing from the new target — all skipped steps produce only `.d.ts` files
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge — it adds a new build target without modifying existing build behavior.
- The change is minimal and additive: a single new npm script that is a strict subset of the existing `build` script, plus a changelog entry. No existing scripts, runtime code, or build outputs are modified. The skipped steps produce only `.d.ts` declaration files that have no runtime impact. The existing `build` and `prepack` scripts remain unchanged.
- No files require special attention.
<sub>Last reviewed commit: 3254bae</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#3006: fix(scripts): use local pnpm binary in run-node.mjs if global is mi...
by elliotsecops · 2026-01-27
68.2%
#23775: fix(build): stabilize Windows script execution and Telegram monitor...
by ly85206559 · 2026-02-22
65.4%
#11432: fix(security): add --ignore-scripts to npm install in hook and plug...
by coygeek · 2026-02-07
65.1%
#8600: fix(update): add --ignore-scripts to prevent supply chain attacks
by yubrew · 2026-02-04
64.7%
#11470: fix: prevent gateway:watch race by passing --no-clean to tsdown
by apetresc · 2026-02-07
64.3%
#21039: Fix npm-spec plugin installs when npm pack output is empty
by graysurf · 2026-02-19
64.1%
#8073: fix(plugins): add --ignore-scripts to npm install
by yubrew · 2026-02-03
63.9%
#13169: security: add --ignore-scripts to npm install during plugin/hook in...
by RamiNoodle733 · 2026-02-10
63.2%
#22283: Plugins: expose resolveMainSessionKey in runtime system
by MegaPhoenix92 · 2026-02-21
63.1%
#21979: chore: add knip dependency check and remove unused dependencies
by chansuke · 2026-02-20
62.9%