-
-
Notifications
You must be signed in to change notification settings - Fork 528
/
Copy pathpackage.json
81 lines (81 loc) · 2.42 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
{
"name": "openapi-fetch",
"description": "Fast, typesafe fetch client for your OpenAPI schema. Only 2kb (min). Works with React, Vue, Svelte, or vanilla JS.",
"version": "0.8.1",
"author": {
"name": "Drew Powers",
"email": "[email protected]"
},
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"module": "./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"
}
},
"./*": "./*"
},
"homepage": "https://openapi-ts.pages.dev",
"repository": {
"type": "git",
"url": "https://github.com/drwpow/openapi-typescript",
"directory": "packages/openapi-fetch"
},
"bugs": {
"url": "https://github.com/drwpow/openapi-typescript/issues"
},
"keywords": [
"openapi",
"swagger",
"rest",
"api",
"oapi_3",
"oapi_3_1",
"typescript",
"fetch",
"react",
"vue",
"svelte"
],
"scripts": {
"build": "pnpm run build:clean && pnpm run build:js && pnpm run build:js-min && pnpm run build:cjs",
"build:clean": "del dist",
"build:js": "mkdir -p dist && cp src/* dist",
"build:js-min": "esbuild --bundle src/index.js --format=esm --minify --outfile=dist/index.min.js && cp dist/index.d.ts dist/index.min.d.ts",
"build:cjs": "esbuild --bundle src/index.js --format=cjs --outfile=dist/cjs/index.cjs && cp dist/index.d.ts dist/cjs/index.d.cts",
"lint": "pnpm run lint:js",
"lint:js": "eslint \"{src,test}/**/*.{js,ts}\"",
"lint:prettier": "prettier --check \"{src,test}/**/*\"",
"test": "pnpm run test:ts && npm run test:js",
"test:js": "vitest run",
"test:ts": "tsc --noEmit",
"prepare": "openapi-typescript test/fixtures/api.yaml -o test/fixtures/api.d.ts",
"prepublish": "pnpm run prepare && pnpm run build",
"version": "pnpm run prepare && pnpm run build"
},
"dependencies": {
"openapi-typescript-helpers": "^0.0.4"
},
"devDependencies": {
"axios": "^1.6.0",
"del-cli": "^5.1.0",
"esbuild": "^0.19.5",
"nanostores": "^0.9.4",
"openapi-typescript": "^6.7.0",
"openapi-typescript-codegen": "^0.25.0",
"openapi-typescript-fetch": "^1.1.3",
"superagent": "^8.1.2",
"typescript": "^5.2.2",
"vitest": "^0.34.6",
"vitest-fetch-mock": "^0.2.2"
}
}