Skip to content

Releases: web-tool-kit/libwiz

v1.0.0

19 Aug 20:55

Choose a tag to compare

🚀 libwiz v1.0.0

This is the first major release of libwiz, bringing a more stable, framework-agnostic build system with a simplified configuration model, stronger type support, and new CLI features.


✨ What’s New

  • New CLI Commands
    • libwiz init – bootstrap a config
    • libwiz types – generate .d.ts files
    • libwiz types --check – type-check only, no emit
  • Framework-Agnostic by Default
    • React is no longer assumed, add @babel/preset-react if needed
  • Config Model Overhaul
    • Unified output block (dir, target, comments, sourceMap)
    • Per-format overrides under lib.esm / lib.cjs
    • compiler now accepts static object or function for advanced configs
  • Simplified Defaults
    • Focus on @babel/core, @babel/preset-env, @babel/preset-typescript
    • Explicit React support documented separately

💥 Breaking Changes

  • Targets renamed
    • modernesm
    • commoncjs
  • Config
    • buildPathoutput.dir
  • Flags
    • Removed: --prebuild, --verbose
    • Added: --progress, --quiet
  • React preset not included by default (must be added manually)

🛠 Migration Guide (from v0.0.2)

  1. Update build targets:
    modernesm, commoncjs
  2. Replace buildPath with output.dir
  3. Install React preset if needed:
    npm i -D @babel/preset-react
    // libwiz.config.js
    module.exports = {
      compiler: {
        presets: [['@babel/preset-react', { runtime: 'automatic' }]],
      },
    }
  4. Remove usage of --prebuild and --verbose
  5. For types:
    libwiz build --types       # emit .d.ts
    libwiz types --check       # check types only

📦 Other Improvements

  • Dependency cleanup (14 → 11)
  • Documentation updated with React add-on guide

v0.0.2

28 Jul 09:59

Choose a tag to compare

make comments default true