Skip to content

Add library exports for programmatic usage#104

Closed
kennethlynne wants to merge 1 commit intoplaycanvas:mainfrom
kennethlynne:main
Closed

Add library exports for programmatic usage#104
kennethlynne wants to merge 1 commit intoplaycanvas:mainfrom
kennethlynne:main

Conversation

@kennethlynne
Copy link

@kennethlynne kennethlynne commented Nov 19, 2025

Add library entry point (src/lib.ts) that exports utilities for programmatic consumption. This allows using splat-transform as a library, not just as a CLI tool.

Changes:

  • Add src/lib.ts with exports for DataTable, Column, readers, writers
  • Update rollup.config.mjs to build library bundle to lib/
  • Update package.json with main, module, types, and exports fields
  • Add lib/ to .gitignore to exclude build artifacts

Related to #71

@kennethlynne kennethlynne force-pushed the main branch 3 times, most recently from fc70ba5 to f18b48a Compare November 20, 2025 00:29
Add library exports for programmatic usage

Add library entry point (src/lib.ts) that exports utilities for
programmatic consumption. This allows using splat-transform as a
library, not just as a CLI tool.
@willeastcott
Copy link
Contributor

Presumably, some README updates will be required too.

@joaomelorodrigues
Copy link

Would love to use this with node.js via imports :)

@slimbuck
Copy link
Member

It's coming!

@slimbuck
Copy link
Member

Hey @kennethlynne,

This has now been completed in #137.

Since the codebase has undergone such extensive changes, we will add some end-to-end tests before release.

Please take a look and let me know if you need anything else!

@slimbuck slimbuck closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants