@askills/openapi-explorer-cli 0.0.2 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @askills/openapi-explorer-cli
2
2
 
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 63073a5: add bundle
8
+
3
9
  ## 0.0.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askills/openapi-explorer-cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "CLI for progressive exploration of OpenAPI/Swagger API documentation",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "directory": "packages/openapi-explorer-cli"
12
12
  },
13
13
  "bin": {
14
- "openapi-explorer": "src/main.ts"
14
+ "openapi-explorer": "dist/index.mjs"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=22.18.0"
@@ -20,12 +20,14 @@
20
20
  "access": "public"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "^22.10.0"
23
+ "@types/node": "^22.10.0",
24
+ "tsdown": "^0.22.3"
24
25
  },
25
26
  "scripts": {
26
27
  "start": "node src/main.ts",
27
28
  "test": "node --test test/*.test.ts",
28
29
  "test:watch": "node --test --watch test/*.test.ts",
29
- "typecheck": "tsc --noEmit"
30
+ "typecheck": "tsc --noEmit",
31
+ "build": "tsdown"
30
32
  }
31
33
  }
@@ -106,7 +106,10 @@ export async function cmdEndpoint(
106
106
  operationId: op.operationId,
107
107
  tags: op.tags || [],
108
108
  deprecated: op.deprecated || false,
109
- parameters: mergedParams.map((p: any) => ({ ...p, schema: resolve(p.schema) })),
109
+ parameters: mergedParams.map((p: any) => ({
110
+ ...p,
111
+ schema: resolve(p.schema),
112
+ })),
110
113
  requestBody,
111
114
  responses,
112
115
  security: op.security,
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { dispatch } from "./cli/dispatch.ts";
2
+ import { dispatch } from "./cli/dispatch.js";
3
3
 
4
4
  async function main() {
5
5
  const output = await dispatch(process.argv);
@@ -0,0 +1,5 @@
1
+ import { defineConfig } from "tsdown";
2
+
3
+ export default defineConfig({
4
+ entry: ["./src/index.ts"],
5
+ });