Father is a comprehensive NPM package development tool within the UmiJS ecosystem, designed to streamline the building, generating, and publishing of JavaScript and TypeScript packages. It features a dual-mode build system: 'Bundless' for ESModule and CommonJS outputs, leveraging esbuild, Babel, or SWC; and 'Bundle' for UMD artifacts powered by Webpack. The package, currently at version 4.6.18, maintains an active release cadence with frequent minor updates and patches. Its key differentiators include robust type generation for TypeScript, persistent caching for accelerated builds, and integrated project health checks to prevent common development pitfalls. Father also offers micro-generators for common engineering tasks and experimental dependency pre-bundling to enhance stability in Node.js frameworks and libraries.
Verified import paths — ran on the pinned version, not inferred.
Primarily used in `father.config.ts` for type-safe configuration. CommonJS `require` is not supported for this utility.
A TypeScript interface for the main Father configuration object, used for advanced type-checking or custom config structures. Always use `import type`.
A TypeScript interface for configuration specific to the Bundless build mode. Useful for detailed type-checking in complex scenarios. Always use `import type`.
Demonstrates setting up a basic TypeScript package with Father, including configuration for ESModule and CommonJS outputs, and a build script.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.