build: modernise build scripts with node --run and ESM pre-release#823
Merged
lcottercertinia merged 2 commits intoJun 19, 2026
Merged
Conversation
Faster Rust-based printer; output matches existing style so no repo-wide reformat. - replace prettier-plugin-organize-imports with @prettier/plugin-oxc in .prettierrc and devDependencies - drops format-time import sorting and unused-import removal — unused imports now surface as @typescript-eslint/no-unused-vars errors instead of being auto-stripped
- swap `pnpm run` for `node --run` in build/build:fast (4 invocations) for a lighter script runner
- rewrite scripts/pre-release.js as ESM (.mjs): require→import, import.meta.url-based package.json paths
- drop the debug `console.log('Package mode')` from rollup and rolldown configs
lcottercertinia
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 PR Overview
Modernises the build tooling: uses Node's built-in
node --runinstead ofpnpm runfor the build scripts, converts the pre-release version bumper to ESM, and removes leftover debug logging from the bundler configs. Bothpnpm build(rollup) andpnpm build:fast(rolldown) verified green.🛠️ Changes made
pnpm run→node --runinbuildandbuild:fast(4 invocations) for a lighter, dependency-free script runner.scripts/pre-release.jsas ESMscripts/pre-release.mjs:require→import, and resolve/writelana/package.jsonviaimport.meta.url.console.log('Package mode')lines fromrollup.config.mjsandrolldown.config.ts.🧩 Type of change (check all applicable)
📷 Screenshots / gifs / video [optional]
N/A — tooling/config only.
✅ Tests added?
📚 Docs updated?
🧪badge — see RELEASING.md)Anything else we need to know? [optional]
Deliberately left intact: rolldown's
preserveAntlrATN()plugin and theeventemitter3resolve alias. The former is an active workaround for an oxc-codegen surrogate bug that corrupts ANTLR ATN data (per its docstring) — removing it would break SOQL/Apex parsing in the fast build.