@xyrah/oven 0.0.0-stage → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +114 -2
- package/dist/index.d.ts +123 -0
- package/dist/index.js +3 -0
- package/package.json +63 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mark Yalung
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,115 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @xyrah/oven
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Bun × Rollup package builder — a small toolkit for building packages with [Bun](https://bun.sh/).
|
|
4
|
+
|
|
5
|
+
- **`Oven`** — bundles JavaScript/TypeScript with [`Bun.build()`](https://bun.com/docs/bundler): entrypoints, code splitting, minify, `define`, externals, assets, watch mode, and output cleaning.
|
|
6
|
+
- **`Roll`** — bundles TypeScript declaration files into a single `.d.ts` with Rollup and `rollup-plugin-dts`, and shells out to `tsc` to generate them.
|
|
7
|
+
- **`Cmd`** — runs simple command strings through `Bun.spawn()`.
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
- [Bun](https://bun.sh/) **≥ 1.3** — the implementation uses `Bun.build()` (including its `jsx` and `tsconfig` options) and `Bun.spawn()`.
|
|
12
|
+
- TypeScript available as `tsc` if you use `Roll.tsc()`.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
bun add @xyrah/oven
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Build JavaScript with Oven
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { Oven } from "@xyrah/oven";
|
|
24
|
+
|
|
25
|
+
const oven = new Oven({
|
|
26
|
+
dir: "./src",
|
|
27
|
+
files: ["index.ts"],
|
|
28
|
+
out: "./dist",
|
|
29
|
+
target: "bun",
|
|
30
|
+
split: false,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
await oven.build();
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`files` are entrypoints relative to `dir` (default `["index.ts"]`). The default output directory is `./dist` for `target: "bun"` and `./client` for `target: "browser"`. Set `split: true` to let Bun emit shared chunks; with one entrypoint and `split: false` you get a single bundle. A success callback can be set with the `successFN` option or the `onsuccess` setter.
|
|
37
|
+
|
|
38
|
+
### JSX
|
|
39
|
+
|
|
40
|
+
By default JSX follows Bun's defaults, which read your project's `tsconfig.json`. Point `jsx` and `jsxImportSource` at your runtime of choice — for example [`yvee`](https://www.npmjs.com/package/yvee):
|
|
41
|
+
|
|
42
|
+
```jsonc
|
|
43
|
+
// tsconfig.json
|
|
44
|
+
{
|
|
45
|
+
"compilerOptions": {
|
|
46
|
+
"jsx": "react-jsx",
|
|
47
|
+
"jsxImportSource": "yvee"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
new Oven({ files: ["app.tsx"] }); // picks up the tsconfig settings
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
To override the transform per build instead of relying on tsconfig, pass the `jsx` object (forwarded straight to `Bun.build()`), optionally with a custom `tsconfig` path:
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
const oven = new Oven({
|
|
60
|
+
files: ["app.tsx"],
|
|
61
|
+
jsx: { runtime: "automatic", importSource: "yvee" },
|
|
62
|
+
// tsconfig: "./tsconfig.build.json",
|
|
63
|
+
});
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
`jsx` accepts `runtime` (`"automatic"` | `"classic"`), `importSource`, `factory`, `fragment`, `sideEffects`, and `development`. Omit the object, or individual keys, to keep the defaults.
|
|
67
|
+
|
|
68
|
+
## Bundle declaration files with Roll
|
|
69
|
+
|
|
70
|
+
`Roll` reads declaration inputs from `./types` by default and writes under `./dist`. It pairs with a `tsconfig.json` whose `outDir` emits declarations into `types`:
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
import { Roll } from "@xyrah/oven";
|
|
74
|
+
|
|
75
|
+
const roll = new Roll({ input: "./index.d.ts" }).paths();
|
|
76
|
+
|
|
77
|
+
await roll.tsc(); // runs `tsc` to emit declarations into ./types
|
|
78
|
+
await roll.output({ file: "./index.d.ts", format: "es" }); // writes dist/index.d.ts
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Pass manual aliases to `.paths({ "@": "." })`. Targets resolve relative to `Roll.dir` (default `./types`); `@` matches both `@` and `@/…`. Calling `.paths()` without arguments sets an empty alias map.
|
|
82
|
+
|
|
83
|
+
Rollup warnings are hidden by default. Set `warnings: true` in the `Roll` constructor to show them, including unresolved-import warnings. With warnings enabled, a supplied `onwarn` handler is used. Build errors are still reported.
|
|
84
|
+
|
|
85
|
+
## Watch, clean, and run commands
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
// Rebuild on change (at most one build per second, closed on Ctrl+C).
|
|
89
|
+
// Run build() first; watch() does not perform an initial build.
|
|
90
|
+
await oven.watch((filename) => filename.endsWith(".ts"));
|
|
91
|
+
|
|
92
|
+
// Remove files under the output directory (hidden entries and .html are skipped).
|
|
93
|
+
await oven.clear({ exclude: ["keep.js"] });
|
|
94
|
+
|
|
95
|
+
// Run commands through Bun.spawn.
|
|
96
|
+
import { Cmd } from "@xyrah/oven";
|
|
97
|
+
await Cmd("tsc", true);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Build this package
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
bun install
|
|
104
|
+
bun run build # runs builder.ts: bundle src with Oven, then tsc + Roll for dist/index.d.ts
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Only `dist` is published (`main`/`types`/`exports` point at `dist/index.js` and `dist/index.d.ts`).
|
|
108
|
+
|
|
109
|
+
## Documentation
|
|
110
|
+
|
|
111
|
+
Full option tables and implementation notes live in [`doc/usage.md`](./doc/usage.md).
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
[MIT](./LICENSE)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import { BunPlugin } from 'bun';
|
|
3
|
+
import { InputPluginOption, Plugin, InputOption, RollupOptions, OutputOptions } from 'rollup';
|
|
4
|
+
|
|
5
|
+
type _minify = {
|
|
6
|
+
identifiers?: boolean;
|
|
7
|
+
whitespace?: boolean;
|
|
8
|
+
syntax?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* JSX transform options forwarded to `Bun.build`.
|
|
12
|
+
*
|
|
13
|
+
* Omit the whole object (or an individual key) to keep Bun's defaults, which
|
|
14
|
+
* read the project's `tsconfig.json` (`jsx`, `jsxFactory`,
|
|
15
|
+
* `jsxFragmentFactory`, `jsxImportSource`).
|
|
16
|
+
*/
|
|
17
|
+
type _jsx = {
|
|
18
|
+
/** Transform to use: the automatic runtime injects imports, classic calls a factory. */
|
|
19
|
+
runtime?: "automatic" | "classic";
|
|
20
|
+
/** Module that provides the automatic runtime, e.g. `"yvee"` for `yvee/jsx-runtime`. */
|
|
21
|
+
importSource?: string;
|
|
22
|
+
/** Classic-runtime factory function, e.g. `"dom"`. */
|
|
23
|
+
factory?: string;
|
|
24
|
+
/** Classic-runtime fragment factory, e.g. `"frag"`. */
|
|
25
|
+
fragment?: string;
|
|
26
|
+
/** Treat JSX factories as side-effect free (automatic runtime only). */
|
|
27
|
+
sideEffects?: boolean;
|
|
28
|
+
/** Emit the development runtime (`jsxDEV`) instead of the production one. */
|
|
29
|
+
development?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type ovenOptions = {
|
|
32
|
+
files?: string[];
|
|
33
|
+
target?: "browser" | "bun";
|
|
34
|
+
define?: Record<string, any>;
|
|
35
|
+
hashAsset?: boolean;
|
|
36
|
+
external?: string[];
|
|
37
|
+
packages?: "external" | "bundle";
|
|
38
|
+
drop?: string[];
|
|
39
|
+
plugins?: BunPlugin[];
|
|
40
|
+
out?: string;
|
|
41
|
+
dir?: string;
|
|
42
|
+
base?: string;
|
|
43
|
+
minify?: _minify;
|
|
44
|
+
split?: boolean;
|
|
45
|
+
successFN?: () => Promise<void>;
|
|
46
|
+
/** JSX transform options forwarded to `Bun.build`; unset keys keep Bun's defaults. */
|
|
47
|
+
jsx?: _jsx;
|
|
48
|
+
/** Custom `tsconfig.json` path (or directory containing one) used by the build. */
|
|
49
|
+
tsconfig?: string;
|
|
50
|
+
};
|
|
51
|
+
declare function watch(dir: string, callback: (filename: string) => void | Promise<void>, condition?: (filename: string) => boolean): Promise<fs.FSWatcher>;
|
|
52
|
+
declare class Oven {
|
|
53
|
+
dir: string;
|
|
54
|
+
out: string;
|
|
55
|
+
split: boolean;
|
|
56
|
+
minify: _minify;
|
|
57
|
+
hashAsset: boolean;
|
|
58
|
+
drop: any;
|
|
59
|
+
files: string[];
|
|
60
|
+
external: string[];
|
|
61
|
+
packages: "external" | "bundle";
|
|
62
|
+
plugins: BunPlugin[];
|
|
63
|
+
exclude: string[];
|
|
64
|
+
clearAll: boolean;
|
|
65
|
+
target: string;
|
|
66
|
+
define: Record<string, any>;
|
|
67
|
+
jsx?: _jsx | undefined;
|
|
68
|
+
tsconfig?: string | undefined;
|
|
69
|
+
private clearing?;
|
|
70
|
+
protected successFN?: (() => Promise<void>) | undefined;
|
|
71
|
+
constructor({ files, target, dir, out, split, base, define, external, packages, drop, plugins, hashAsset, minify, successFN, jsx, tsconfig, }?: ovenOptions);
|
|
72
|
+
set onsuccess(fn: () => Promise<void>);
|
|
73
|
+
build(status?: watchStatus): Promise<this>;
|
|
74
|
+
watch(condition?: (filename: string) => boolean): Promise<fs.FSWatcher>;
|
|
75
|
+
clear(c?: {
|
|
76
|
+
exclude?: string[];
|
|
77
|
+
all?: boolean;
|
|
78
|
+
}): Promise<this>;
|
|
79
|
+
}
|
|
80
|
+
type watchStatus = {
|
|
81
|
+
building: boolean;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
type MakeRequired<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;
|
|
85
|
+
type xtraRoll = {
|
|
86
|
+
log?: boolean;
|
|
87
|
+
dir?: string;
|
|
88
|
+
out?: string;
|
|
89
|
+
tsconfig?: string;
|
|
90
|
+
/** Show Rollup warnings. Defaults to false. */
|
|
91
|
+
warnings?: boolean;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* const RP = new Roll({input: "./index.d.ts"});
|
|
95
|
+
|
|
96
|
+
await RP.output({
|
|
97
|
+
file: "./dist/index.d.ts",
|
|
98
|
+
format: "es",
|
|
99
|
+
});
|
|
100
|
+
*/
|
|
101
|
+
declare class Roll {
|
|
102
|
+
log: boolean;
|
|
103
|
+
warnings: boolean;
|
|
104
|
+
plugins: InputPluginOption[];
|
|
105
|
+
tsconfig: string | undefined;
|
|
106
|
+
alias?: Plugin;
|
|
107
|
+
dir: string;
|
|
108
|
+
out: string;
|
|
109
|
+
input: InputOption;
|
|
110
|
+
options: Omit<RollupOptions, "output">;
|
|
111
|
+
constructor(options: MakeRequired<Omit<RollupOptions, "output">, "input"> & xtraRoll);
|
|
112
|
+
paths(paths?: Record<string, string>): this;
|
|
113
|
+
tsc(tspath?: tscOptions): Promise<void>;
|
|
114
|
+
output(out: OutputOptions): Promise<void>;
|
|
115
|
+
}
|
|
116
|
+
type tscOptions = {
|
|
117
|
+
clear?: boolean;
|
|
118
|
+
path?: string;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
declare function Cmd(cmd: string, log?: boolean): Promise<void>;
|
|
122
|
+
|
|
123
|
+
export { Cmd, Oven, Roll, watch };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{existsSync as k,mkdirSync as S}from"fs";var d=(t)=>{if(k(t))return!0;return S(t,{recursive:!0}),!0},l=(t)=>{let s=new Date().toLocaleTimeString();console.log(`${t} @ ${s}`)};import{watch as D}from"fs";import{readdir as m,rmdir as P,stat as A,unlink as B}from"fs/promises";import I from"path";async function y(t,s,i=()=>!0){let e=0,n=D(t,{recursive:!0},async(r,o)=>{if(!o||!i(o))return;let a=Date.now();if(a-e<1000)return;e=a;try{await s(o)}catch(u){console.error(u)}});return process.on("SIGINT",()=>{console.log(`
|
|
3
|
+
watcher closed...`),n.close(),process.exit(0)}),n}class b{dir;out;split;minify;hashAsset;drop;files;external;packages;plugins;exclude=[];clearAll=!1;target;define={};jsx;tsconfig;clearing=!1;successFN;constructor({files:t=["."],target:s="bun",dir:i="./src",out:e,split:n=!0,base:r="",define:o={},external:a=[],packages:u="bundle",drop:p=[],plugins:f=[],hashAsset:g,minify:x={},successFN:O,jsx:v,tsconfig:j}={}){this.target=s,this.dir=i+r,this.packages=u,this.jsx=v,this.tsconfig=j,this.out=(e?e:s==="browser"?"./client":"./dist")+r,this.split=n,this.files=t.map((R)=>(this.dir+"/"+R).replaceAll("//","/")),d(this.out),this.hashAsset=g===void 0?!1:g,this.minify={identifiers:!0,whitespace:!0,syntax:!0},this.external=a,this.drop=p,this.plugins=f,this.successFN=O,Object.assign(this.minify,x),Object.assign(this.define,o)}set onsuccess(t){this.successFN=t}async build(t={building:!1}){let s=`[dir]/[name]${this.hashAsset?"-[hash]":""}.[ext]`;if(this.files.length)try{let i=await Bun.build({...this.jsx===void 0?{}:{jsx:this.jsx},...this.tsconfig===void 0?{}:{tsconfig:this.tsconfig},entrypoints:this.files,outdir:this.out,splitting:this.split,minify:this.minify,target:this.target??"browser",naming:{chunk:"[dir]/[name]-[hash].[ext]",entry:"[dir]/[name].[ext]",asset:s},define:{...N(this.define)},loader:{".css":"file"},packages:this.packages,external:this.external,drop:this.drop,plugins:this.plugins});if(i.success)try{await this.successFN?.(),l("builder"),t.building=!1}catch(e){console.log(e)}else console.log(i.logs)}catch(i){t.building=!1,console.log(i)}return this}async watch(t=()=>!0){let s={building:!1};return y(this.dir,async()=>{if(s.building)return;s.building=!0,this.clearing&&await this.clear();try{await this.build(s)}catch(i){s.building=!1,console.error(i)}},t)}async clear(t={exclude:[]}){if(t.exclude&&t.exclude.length)this.exclude.push(...t.exclude);if(t.all!==void 0)this.clearAll=t.all;this.clearing=!0;let s=async(i)=>{let e=await m(i);for(let r of e){if(r.startsWith(".")||!this.clearAll&&(r.endsWith(".html")||this.exclude.includes(r)))continue;let o=I.join(i,r);if((await A(o)).isDirectory())await s(o);else await B(o)}if((await m(i)).length===0)await P(i)};return await s(this.out),this}}var N=(t)=>Object.fromEntries(Object.entries(t).map(([s,i])=>{let e=i;if(typeof i==="function")e=i();return[s,JSON.stringify(e)]}));import{rollup as F}from"rollup";import{dts as _}from"rollup-plugin-dts";import c from"path";async function h(t,s){let i=t.split(";");for(let e of i){let n=e.trim().split(" ");await Bun.spawn(n).exited}s&&l("cmd")}class w{log;warnings;plugins;tsconfig;alias;dir;out;input;options;constructor(t){let{log:s,dir:i="./types",out:e="./dist",input:n,plugins:r,tsconfig:o,warnings:a=!1,...u}=t;if(this.dir=i,this.out=e,this.warnings=a,this.tsconfig=o&&c.resolve(o),typeof n==="object")if(Array.isArray(n))this.input=n.map((p)=>c.resolve(this.dir,p));else{let p=Object.entries(n).map(([f,g])=>[f,c.resolve(this.dir,g)]);this.input=Object.fromEntries(p)}else this.input=c.resolve(this.dir,n??"");this.plugins=r?Array.isArray(r)?[...r]:[r]:[],this.options=u,this.log=Boolean(s),delete t.log}paths(t={}){let s=Object.entries(t).map(([i,e])=>({find:i,replacement:c.resolve(this.dir,e)}));return this.alias={name:"oven-declaration-alias",async resolveId(i,e){let n=s.find(({find:o})=>i===o||i.startsWith(`${o}/`));if(!n)return null;let r=n.replacement+i.slice(n.find.length);return this.resolve(r,e,{skipSelf:!0})}},this}async tsc(t={}){let{clear:s,path:i}=t;if(s)await h(`rm -r ${this.dir}`);await h("tsc"+(i?` -p ${i}`:""))}async output(t){t.file&&=c.resolve(this.out,t.file),t.format??="es";try{let s=await F({input:this.input,...this.options,onwarn:(i,e)=>{if(!this.warnings)return;if(this.options.onwarn)this.options.onwarn(i,e);else e(i)},plugins:[...this.plugins,this.alias,_(this.tsconfig?{tsconfig:this.tsconfig}:{})]});await s.write(t),await s.close(),this.log&&l("rollup")}catch(s){console.error("Build failed:",s)}}}export{h as Cmd,b as Oven,w as Roll,y as watch};
|
package/package.json
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyrah/oven",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Bun based bundler utility: bundle JS with Bun.build, declaration files with Rollup, and run commands.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dirs": "for dir in ./src ./dist ./test ./util ./types; do mkdir -p $dir; done",
|
|
20
|
+
"ts": "cp ../../misc/tsconfig.json ./;",
|
|
21
|
+
"init": "bun run dirs && bun run ts;",
|
|
22
|
+
"build": "bun run builder.ts",
|
|
23
|
+
"prepublishOnly": "bun run builder.ts"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"bun",
|
|
27
|
+
"bundler",
|
|
28
|
+
"build",
|
|
29
|
+
"builder",
|
|
30
|
+
"rollup",
|
|
31
|
+
"dts",
|
|
32
|
+
"declaration",
|
|
33
|
+
"typescript",
|
|
34
|
+
"jsx"
|
|
35
|
+
],
|
|
36
|
+
"author": "MARKjotep",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"type": "module",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/MARKjotep/xyrah.git",
|
|
42
|
+
"directory": "packages/oven"
|
|
43
|
+
},
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/MARKjotep/xyrah/issues"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/MARKjotep/xyrah/tree/master/packages/oven#readme",
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@types/bun": "^1.3.0",
|
|
50
|
+
"rollup": "^4.68.0",
|
|
51
|
+
"rollup-plugin-dts": "^6.5.1"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"typescript": "^6.0.2"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"typescript": "^4.5 || ^5 || ^6"
|
|
58
|
+
},
|
|
59
|
+
"engines": {
|
|
60
|
+
"bun": ">=1.3"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
}
|
|
65
|
+
}
|