Skip to content

Commit 9b9c1f6

Browse files
committed
🐛 fix: fix openapi export entry
1 parent 4aa19ef commit 9b9c1f6

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ test-output
4646

4747
client.d.ts
4848
client.js
49+
openapi.d.ts
50+
openapi.js
4951
bun.lockb
5052
schema.json

openapi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/openapi';

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929
"es",
3030
"client.d.ts",
3131
"client.js",
32+
"openapi.d.ts",
33+
"openapi.js",
3234
"schema.json"
3335
],
3436
"scripts": {
35-
"build": "father build && npm run build:client && npm run build:schema",
36-
"build:client": "tsc client.ts --declaration",
37+
"build": "father build && npm run build:entry && npm run build:schema",
38+
"build:entry": "tsc client.ts --declaration && tsc openapi.ts --declaration",
3739
"build:schema": "ts-json-schema-generator --path src/types/manifest.ts --type LobeChatPluginManifest -o schema.json",
3840
"ci": "npm run lint && npm run type-check && npm run doctor",
3941
"dev": "father dev",

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from './error';
2-
export * from './openapi';
32
export * from './request';
43
export * from './schema/manifest';
54
export * from './schema/market';

0 commit comments

Comments
 (0)