https://github.com/oazmi/esbuild-types
this library simply re-exports esbuild's typescript declarations file, so that your client won't have to install esbuild just for its types only.
https://github.com/oazmi/esbuild-types
deno dependency-free esbuild esbuild-types jsr type-declarations typescript
Last synced: 2 months ago
JSON representation
this library simply re-exports esbuild's typescript declarations file, so that your client won't have to install esbuild just for its types only.
- Host: GitHub
- URL: https://github.com/oazmi/esbuild-types
- Owner: oazmi
- License: other
- Created: 2025-04-08T01:08:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-13T07:03:50.000Z (5 months ago)
- Last Synced: 2025-11-13T07:06:31.560Z (5 months ago)
- Topics: deno, dependency-free, esbuild, esbuild-types, jsr, type-declarations, typescript
- Language: TypeScript
- Homepage: https://oazmi.github.io/esbuild-types/
- Size: 175 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
- Code of conduct: .github/code_of_conduct.md
Awesome Lists containing this project
README
# @oazmi/esbuild-types
this library simply re-exports esbuild's typescript declarations file, so that your client won't have to install esbuild just for its types only.
### rationale
in deno, there is no such thing as `devDependencies`, so if you write an esbuild-plugin utilizing esbuild's types,
deno will download the entirety of the esbuild package from npm, even if you only import your plugin library from [jsr](https://jsr.io).
thus, this library provides a lightweight type-definitions only alternative to `npm:esbuild`, using the same minor versioning that esbuild uses.
### example
your old horizontally-challenged phat code:
```ts
import type * as esbuild from "npm:esbuild@^0.24"
export const my_plugin: esbuild.Plugin = {
name: "my-plugin",
setup(build: esbuild.PluginBuild) {
// do plugin related stuff.
},
}
```
your new low-phat code:
```ts
import type * as esbuild from "jsr:@oazmi/esbuild-types@^0.24"
export const my_plugin: esbuild.Plugin = {
name: "my-plugin",
setup(build: esbuild.PluginBuild) {
// do plugin related stuff.
},
}
```
### internals
this package updates semi-autonomously via the [`./update.ts`](./update.ts) script.
and it uses weekly scheduled github actions to check for an update in `npm:esbuild`'s minor or major version,
to update and re-publish accordingly.
to manually bump to the next esbuild minor-version, simply execute the following command in your shell:
> deno task update-proj