Skip to content

Commit

Permalink
feature(bun): add bun loader
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Oct 4, 2023
1 parent 6c8732f commit 19561dc
Show file tree
Hide file tree
Showing 19 changed files with 531 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/bun/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests
10 changes: 10 additions & 0 deletions packages/bun/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Deepkit Bun Plugin


## Install

`bunfig.toml`:

```toml
preload = ["@deepkit/bun"]
```
Empty file added packages/bun/dist/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions packages/bun/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export * from './src/plugin.js';
import { deepkitType } from './src/plugin.js';

//@ts-ignore
import { plugin } from 'bun';

if (plugin) {
plugin(deepkitType());
}
297 changes: 297 additions & 0 deletions packages/bun/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions packages/bun/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@deepkit/bun",
"version": "1.0.1-alpha.100",
"description": "Deepkit Bun Plugin for Deepkit Runtime Types support",
"type": "commonjs",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"types": "./dist/cjs/index.d.ts",
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
"repository": "https://github.com/deepkit/deepkit-framework",
"author": "Marc J. Schmidt <[email protected]>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "echo '{\"type\": \"module\"}' > ./dist/esm/package.json",
"install": "rm -rf node_modules/typescript || exit 0"
},
"peerDependencies": {
"@deepkit/type-compiler": "^1.0.1-alpha.93",
"typescript": "*"
},
"dependencies": {
"@rollup/pluginutils": "^5.0.2"
},
"devDependencies": {
"@deepkit/type-compiler": "^1.0.1-alpha.100"
},
"jest": {
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"moduleNameMapper": {
"(.+)\\.js": "$1"
},
"testMatch": [
"**/tests/**/*.spec.ts"
]
}
}
Loading

0 comments on commit 19561dc

Please sign in to comment.