Skip to content

Conversation

@kalwalt
Copy link
Member

@kalwalt kalwalt commented Nov 28, 2025

This pull request introduces improvements to the build and publishing workflow for the package, focusing on reducing package size and ensuring that the build process is streamlined for users. The most important changes are grouped below:

Build & Publishing Workflow Improvements:

  • Added a preinstall script in package.json to automatically build the libraries and type declarations when installing the package, ensuring all required files are generated and ready to use.
  • Updated the documentation in README.md to explain the exclusion of sourcemap files and the automated build process during installation.

Package Size Optimization:

  • Modified .npmignore to exclude dist/ files, sourcemaps, and type declaration files from the published npm package, reducing package size and preventing debug artifacts from being shipped.

- Bump package version from 0.1.1 to 0.1.2 in package-lock.json.
- Add a preinstall script to build the project and types before installation.
- Remove obsolete type definition files for plugin, matrix utilities, and worker.
- linked issue Exclude sourcemap (.map) files from published npm package to reduce package size
- Fixes #12
@kalwalt kalwalt force-pushed the feat-preinstall-script branch from 35200b4 to cd1979f Compare November 28, 2025 23:22
@kalwalt kalwalt self-assigned this Nov 28, 2025
@kalwalt kalwalt changed the title chore: add preinstall script Optimize package: exclude sourcemaps & add preinstall build Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants