-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 2.5 KB
/
package.json
File metadata and controls
96 lines (96 loc) · 2.5 KB
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
{
"name": "@yourgpt/widget-web-sdk",
"version": "0.0.5",
"description": "Official YourGPT SDK for JavaScript/TypeScript and React applications",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist/**/*",
"react/dist/**/*",
"react/package.json",
"README.md",
"CHANGELOG.md"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./react": {
"types": "./react/dist/index.d.ts",
"import": "./react/dist/index.mjs",
"require": "./react/dist/index.js"
}
},
"scripts": {
"build": "npm run build:core && npm run build:react",
"build:core": "tsup src/index.ts --format cjs,esm --dts",
"build:react": "tsup --config tsup.react.config.ts",
"dev": "npm run build:core -- --watch",
"dev:react": "npm run build:react -- --watch",
"serve": "npx serve . -p 3000",
"dev:examples": "npm run build && npm run serve",
"type-check": "tsc --noEmit",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"test": "vitest",
"test:watch": "vitest --watch",
"test:coverage": "vitest --coverage",
"clean": "rm -rf dist react/dist",
"prepublishOnly": "npm run clean && npm run build",
"release": "npm run build && npm publish --access public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/YourGPT/web-sdk.git"
},
"keywords": [
"yourgpt",
"chatbot",
"ai",
"sdk",
"typescript",
"react",
"hooks",
"widget"
],
"author": "YourGPT <support@yourgpt.ai>",
"license": "MIT",
"bugs": {
"url": "https://github.com/YourGPT/web-sdk/issues"
},
"homepage": "https://github.com/YourGPT/web-sdk#readme",
"devDependencies": {
"@types/node": "^20.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitest/coverage-v8": "^1.0.0",
"eslint": "^8.0.0",
"eslint-plugin-react": "^7.0.0",
"eslint-plugin-react-hooks": "^4.0.0",
"jsdom": "^23.0.0",
"tsup": "^8.0.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
"vitest": "^1.0.0"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"engines": {
"node": ">=16.0.0"
}
}