-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathpackage.json
More file actions
114 lines (114 loc) · 3.34 KB
/
package.json
File metadata and controls
114 lines (114 loc) · 3.34 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
{
"name": "@openmeter/sdk",
"version": "0.0.0",
"description": "Client for OpenMeter: Real-Time and Scalable Usage Metering",
"license": "Apache 2.0",
"homepage": "https://openmeter.io",
"repository": {
"type": "git",
"url": "https://github.com/openmeterio/openmeter.git",
"directory": "api/client/javascript"
},
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
},
"default": "./dist/index.js"
},
"./portal": {
"import": {
"types": "./dist/src/portal/index.d.ts",
"default": "./dist/src/portal/index.js"
},
"require": {
"types": "./dist/cjs/src/portal/index.d.cts",
"default": "./dist/cjs/src/portal/index.cjs"
},
"default": "./dist/src/portal/index.js"
},
"./react": {
"import": {
"types": "./dist/src/react/context.d.ts",
"default": "./dist/src/react/context.js"
},
"default": "./dist/src/react/context.js"
},
"./zod": {
"import": {
"types": "./dist/src/zod/index.d.ts",
"default": "./dist/src/zod/index.js"
},
"require": {
"types": "./dist/cjs/src/zod/index.d.cts",
"default": "./dist/cjs/src/zod/index.cjs"
},
"default": "./dist/src/zod/index.js"
}
},
"scripts": {
"build": "duel",
"format": "biome format --write .",
"generate": "pnpm run generate:client && pnpm run generate:zod",
"generate:client": "tsx scripts/generate.ts && biome format --write ./src/client/schemas.ts",
"generate:zod": "orval && tsx scripts/add-as-const.ts && biome lint --write ./src/zod/index.ts && biome format --write ./src/zod/index.ts",
"lint": "tsc --noEmit && biome lint .",
"prepublishOnly": "pnpm run generate && pnpm run build && pnpm run lint && pnpm run test",
"pretest": "pnpm run build",
"test": "vitest --run",
"test:watch": "vitest --watch"
},
"engines": {
"node": ">=22.0.0"
},
"dependencies": {
"openapi-fetch": "0.17.0",
"openapi-typescript-helpers": "0.1.0"
},
"devDependencies": {
"@biomejs/biome": "2.4.8",
"@fetch-mock/vitest": "0.2.18",
"@knighted/duel": "4.0.2",
"@types/node": "25.5.0",
"@types/node-fetch": "2.6.13",
"@types/react": "19.2.14",
"fetch-mock": "12.6.0",
"openapi-typescript": "7.13.0",
"orval": "8.5.3",
"prettier": "3.8.1",
"react": "19.2.4",
"rollup": "4.59.0",
"ts-morph": "27.0.2",
"tslib": "2.8.1",
"tsx": "4.21.0",
"typescript": "5.9.3",
"vitest": "4.1.0",
"zod": "4.3.6"
},
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a",
"peerDependencies": {
"react": ">=18.0.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"unrs-resolver"
],
"patchedDependencies": {
"openapi-typescript": "patches/openapi-typescript.patch"
},
"overrides": {
"@isaacs/brace-expansion@<=5.0.0": ">=5.0.1",
"minimatch@>=10.0.0 <10.2.1": ">=10.2.1",
"minimatch@>=10.0.0 <10.2.3": ">=10.2.3"
}
}
}