-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
package.json
128 lines (128 loc) · 3.62 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"name": "@lobehub/chat-plugin-sdk",
"version": "1.32.4",
"description": "Lobe Chat Plugin SDK, help you to build an amazing chat plugin for Lobe Chat",
"keywords": [
"lobehub",
"sdk",
"chatgpt",
"openai",
"plugin",
"chat-plugin"
],
"homepage": "https://github.com/lobehub/chat-plugin-sdk",
"bugs": {
"url": "https://github.com/lobehub/chat-plugin-sdk/issues/new"
},
"repository": {
"type": "git",
"url": "https://github.com/lobehub/chat-plugin-sdk.git"
},
"license": "MIT",
"author": "LobeHub <[email protected]>",
"sideEffects": false,
"main": "./lib/index.js",
"module": "./es/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib",
"es",
"client.d.ts",
"client.js",
"openapi.d.ts",
"openapi.js",
"schema.json"
],
"scripts": {
"build": "father build && npm run build:entry && npm run build:schema",
"build:entry": "tsc client.ts --declaration && tsc openapi.ts --declaration",
"build:schema": "ts-json-schema-generator --path src/types/manifest.ts --type LobeChatPluginManifest -o schema.json",
"build:watch": "father dev",
"ci": "npm run lint && npm run type-check && npm run doctor",
"docs:build": "dumi build",
"docs:dev": "dumi dev",
"doctor": "father doctor",
"i18n-md": "lobe-i18n md",
"lint": "eslint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:md": "remark . --quiet --frail --output",
"lint:style": "stylelint \"{src,example}/**/*.{js,jsx,ts,tsx}\" --fix",
"prepack": "npm run build && clean-pkg-json",
"prepare": "husky install",
"prepublishOnly": "npm run build",
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
"release": "semantic-release",
"start": "npm run docs:dev",
"test": "vitest --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests",
"test:update": "vitest -u",
"type-check": "tsc -p tsconfig-check.json"
},
"lint-staged": {
"*.md": [
"remark --quiet --output --",
"prettier --write --no-error-on-unmatched-pattern"
],
"*.json": [
"prettier --write --no-error-on-unmatched-pattern"
],
"*.{js,jsx}": [
"prettier --write",
"stylelint --fix",
"eslint --fix"
],
"*.{ts,tsx}": [
"prettier --parser=typescript --write",
"stylelint --fix",
"eslint --fix"
]
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@babel/runtime": "^7.23.2",
"@types/json-schema": "^7.0.14",
"openapi-jsonschema-parameters": "^12.1.3",
"openapi-types": "^12.1.3",
"swagger-client": "^3.24.6",
"zod": "^3.22.4"
},
"devDependencies": {
"@commitlint/cli": "^18",
"@lobehub/i18n-cli": "^1.10.0",
"@lobehub/lint": "latest",
"@testing-library/react": "^14.1.2",
"@types/lodash-es": "^4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitest/coverage-v8": "^1",
"babel-plugin-antd-style": "^1.0.4",
"clean-pkg-json": "^1",
"commitlint": "^18",
"dumi": "^2",
"dumi-theme-lobehub": "latest",
"eslint": "^8",
"father": "^4",
"husky": "^8",
"jsdom": "^22",
"leva": "^0",
"lint-staged": "^15",
"prettier": "^3",
"react": "^18",
"react-dom": "^18",
"remark": "^14",
"remark-cli": "^11",
"semantic-release": "^21",
"stylelint": "^15",
"ts-json-schema-generator": "^1.4.0",
"typescript": "^5",
"vitest": "^1"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}