bun-plugin-dtsx 0.9.7 → 0.9.9
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/dist/index.js +3 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
// src/index.ts
|
|
3
3
|
import process from "process";
|
|
4
4
|
import { generate } from "@stacksjs/dtsx";
|
|
5
|
-
function dts(options = {
|
|
6
|
-
root: "./src",
|
|
7
|
-
outdir: "./dist"
|
|
8
|
-
}) {
|
|
5
|
+
function dts(options = {}) {
|
|
9
6
|
return {
|
|
10
7
|
name: "bun-plugin-dtsx",
|
|
11
8
|
async setup(build) {
|
|
@@ -15,8 +12,8 @@ function dts(options = {
|
|
|
15
12
|
};
|
|
16
13
|
}
|
|
17
14
|
function normalizeConfig(options, build) {
|
|
18
|
-
const root = options.root || build?.config.root;
|
|
19
|
-
const outdir = options.outdir || build?.config.outdir;
|
|
15
|
+
const root = options.root || options.build?.config.root || build?.config.root || "./src";
|
|
16
|
+
const outdir = options.outdir || options.build?.config.outdir || build?.config.outdir || "./dist";
|
|
20
17
|
if (!root) {
|
|
21
18
|
throw new Error("[bun-plugin-dtsx] Root directory is required");
|
|
22
19
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-plugin-dtsx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.9",
|
|
5
5
|
"description": "A Bun Bundler plugin that auto generates your DTS types extremely fast.",
|
|
6
6
|
"author": "Chris Breuer <chris@ow3.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"typecheck": "bun tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@stacksjs/dtsx": "0.9.
|
|
52
|
+
"@stacksjs/dtsx": "0.9.7"
|
|
53
53
|
}
|
|
54
54
|
}
|