Skip to content

Improve package configuration for better export#1

Merged
kalwalt merged 6 commits into
mainfrom
fix-export-pkg
Feb 4, 2026
Merged

Improve package configuration for better export#1
kalwalt merged 6 commits into
mainfrom
fix-export-pkg

Conversation

@kalwalt

@kalwalt kalwalt commented Feb 4, 2026

Copy link
Copy Markdown
Member

This pull request streamlines the build process, enhances the package configuration for broader compatibility, and adds improved cross-platform support for the build system. The main changes include consolidating the build steps into a single command, updating package.json for better module resolution and metadata, and introducing a robust configuration script that handles different build toolchains.

Build process improvements:

  • Consolidated multiple build steps (generate:cmake, generate, build:ts) into a single build script (npm run build) that handles configuration, extraction, generation, and TypeScript compilation, simplifying the CI workflow and local development (.github/workflows/ci.yml, package.json). [1] [2]

Package configuration and metadata enhancements:

  • Updated package.json to include proper exports, module, and types fields for modern ESM and TypeScript support, added author, repository, license, and keywords for better discoverability and compliance, and improved the clean script to use rimraf for cross-platform compatibility.

Cross-platform build configuration:

  • Added a new tools/configure.js script that detects the presence of the Ninja build system or falls back to Make, improving compatibility across Windows, Linux, and macOS environments. The script attempts to locate Ninja in common installation paths and provides clear feedback if not found.

@kalwalt kalwalt self-assigned this Feb 4, 2026
@kalwalt kalwalt added the enhancement New feature or request label Feb 4, 2026
@kalwalt kalwalt merged commit 40d84d4 into main Feb 4, 2026
1 check passed
@kalwalt kalwalt deleted the fix-export-pkg branch May 12, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant