Skip to content

Commit

Permalink
🔧 Use esbuild, add npmignore
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
ralfstx committed Feb 19, 2024
1 parent 6fbb405 commit 8a9af5e
Show file tree
Hide file tree
Showing 4 changed files with 2,532 additions and 5,401 deletions.
7 changes: 7 additions & 0 deletions .npmignore
@@ -0,0 +1,7 @@
*

!package.json
!dist/**/*
!LICENSE.*
!CHANGELOG.*
!README.*

0 comments on commit 8a9af5e

Please sign in to comment.