Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Use esbuild, add npmignore #75

Merged
merged 1 commit into from
Feb 19, 2024
Merged

🔧 Use esbuild, add npmignore #75

merged 1 commit into from
Feb 19, 2024

Conversation

ralfstx
Copy link
Member

@ralfstx ralfstx commented Feb 19, 2024

The TypeScript compiler creates a single JavaScript file for each TypeScript module, and it insists on importing .ts files as .js. esbuild creates a single bundled index.js which may be more efficient to load than many individual files. It also supports .ts imports.

This commit uses esbuild for building the package and uses the TypeScript only to create type definitions.

An .npmignore file is added to exclude all files except the ones we want to publish.

The TypeScript compiler creates a single JavaScript file for each
TypeScript module, and it insists on importing `.ts` files as `.js`.
[esbuild] creates a single bundled `index.js` which may be more
efficient to load than many individual files. It also supports `.ts`
imports.

This commit uses [esbuild] for building the package and uses the
TypeScript only to create type definitions.

An `.npmignore` file is added to exclude all files except the ones we
want to publish.

[esbuild]: https://esbuild.github.io/
@ralfstx ralfstx merged commit 8a9af5e into main Feb 19, 2024
1 check passed
@ralfstx ralfstx deleted the esbuild branch February 19, 2024 07:03
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.

1 participant