Common build tools for extra-* packages, providing a JavaScript API for building TypeScript-based libraries. Version 2.3.1 is current. It offers utility functions for generating JavaScript and type declarations, bundling scripts, managing package metadata, executing shell commands, handling git operations (commit+push, branch setup), parsing GitHub URLs, updating repo details, logging with colors, and reading/writing text/JSON files. Unlike a CLI-based approach, this redesigned version provides flexibility via a programmable API, suitable for CI systems like GitHub Actions. It includes functions like bundleScript, webifyScript, exec, gitCommitPush, and updateGithubRepoDetails.
npm install extra-buildNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates bundling a TypeScript source file, executing a shell command, and reading/writing package.json using extra-build API.
Ensure all calls to extra-build functions are awaited.
Migrate from CLI usage to JavaScript API; use import instead of require.
Set declaration: true in the options object passed to bundleScript.
Prefer readFileText/writeFileText or readJson/writeJson for stable file I/O.
Add "type": "module" to package.json, or use dynamic import(): const { bundleScript } = await import('extra-build').Use import { bundleScript } from 'extra-build' instead of import bundleScript from 'extra-build'.All exports are at top-level: import { gitCommitPush, gitSetupBranch } from 'extra-build' directly.No dependency data recorded yet.