v0.2.0
Minor Changes
-
#15
16b342bThanks @dependabot! - Improved default include/exclude patterns - now includes CSS, excludes declaration files and common test patterns -
#15
16b342bThanks @dependabot! - Added config file support with TypeScript support and type-safedefineConfighelper. Supports gen-x.config.{ts,js,mjs,cjs,json} or package.json#genx field. Priority: CLI flags > config file > defaults. TypeScript configs are transformed using esbuild for zero-dependency usage. -
#15
16b342bThanks @dependabot! - Added support for CSS files - extensions are preserved in export keys and no types field is generated for asset files -
#15
16b342bThanks @dependabot! - Index files now automatically flatten to their directory path (e.g., index.ts → ".", lib/index.ts → "./lib")
Patch Changes
-
#15
16b342bThanks @dependabot! - Added esbuild as a dependency for TypeScript config file transformation -
#15
16b342bThanks @dependabot! - Fixed absolute paths leaking into package.json exports. Input is now normalized to absolute for filesystem operations, output stays relative -
#15
16b342bThanks @dependabot! - Fixed CLI vs programmatic API defaults inconsistency for better predictable behavior -
#15
16b342bThanks @dependabot! - Added collision detection for duplicate export keys with helpful error messages showing conflicting files -
#15
16b342bThanks @dependabot! - Fixed double globbing performance issue - now uses single glob call with ignore option for better performance -
#15
16b342bThanks @dependabot! - Fixed dry-run output to use JSON.stringify for better readability -
#15
16b342bThanks @dependabot! - Fixed potential duplicate "./" in source paths when srcDir is "." -
#15
16b342bThanks @dependabot! - Added proper error handling for package.json read/parse/write operations with clear error messages -
#15
16b342bThanks @dependabot! - Fixed shared mutable baseExports object causing state leakage across function calls in long-lived processes -
#15
16b342bThanks @dependabot! - Fixed OS-dependent path separators - package.json exports now always use POSIX forward slashes on all platforms