-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) 路 3.22 KB
/
Copy pathpackage.json
File metadata and controls
119 lines (119 loc) 路 3.22 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "@lobehub/analytics",
"version": "1.6.4",
"description": "A modern, type-safe analytics library for tracking user events across multiple providers, built by LobeHub",
"homepage": "https://github.com/lobehub/lobe-analytics",
"bugs": {
"url": "https://github.com/lobehub/lobe-analytics/issues/new/choose"
},
"repository": {
"type": "git",
"url": "https://github.com/lobehub/lobe-analytics.git"
},
"license": "MIT",
"author": "LobeHub <i@lobehub.com>",
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./react": {
"types": "./dist/react/index.d.mts",
"import": "./dist/react/index.mjs",
"require": "./dist/react/index.cjs"
},
"./server": {
"types": "./dist/server.d.mts",
"import": "./dist/server.mjs",
"require": "./dist/server.cjs"
}
},
"main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"ci": "npm run lint:circular && npm run lint && npm run type-check",
"dev": "tsup --watch",
"example": "bun run build && tsx examples/basic-usage.ts",
"lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
"lint:md": "remark . --quiet --frail --output",
"prepack": "clean-package",
"postpack": "clean-package restore",
"prepare": "husky",
"prepublishOnly": "npm run build",
"prettier": "prettier -c --write --no-error-on-unmatched-pattern",
"release": "semantic-release",
"test": "vitest",
"test:coverage": "vitest run --coverage --passWithNoTests",
"test:watch": "vitest --watch",
"type-check": "tsc --noEmit"
},
"lint-staged": {
"*.{md,mdc}": [
"remark --silent --output --",
"prettier --write --no-error-on-unmatched-pattern"
],
"*.json": [
"prettier --write --no-error-on-unmatched-pattern"
],
"*.{js,jsx}": [
"prettier --write",
"eslint --fix"
],
"*.{mjs,cjs}": [
"prettier --write",
"eslint --fix"
],
"*.{ts,tsx}": [
"prettier --parser=typescript --write",
"eslint --fix"
]
},
"dependencies": {
"posthog-js": "^1.103.0"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@lobehub/lint": "^1.26.2",
"@types/react": "^18.2.0",
"@vitest/coverage-v8": "^3.2.4",
"clean-package": "^2.2.0",
"dotenv": "^16.5.0",
"dpdm": "^3.14.0",
"eslint": "^8.57.1",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^16.1.2",
"prettier": "^3.5.3",
"react": "^18.2.0",
"remark": "^15.0.1",
"remark-cli": "^12.0.1",
"semantic-release": "^21.1.2",
"tsup": "^8.5.0",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
"vitest": "^3.2.4"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"optionalDependencies": {
"posthog-node": "^4.2.1"
},
"packageManager": "pnpm@10.11.0",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}