-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
135 lines (135 loc) · 3.6 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
129
130
131
132
133
134
135
{
"type": "module",
"dependencies": {
"@apiture/openapi-down-convert": "^0.9.0",
"@cfworker/json-schema": "^1.12.7",
"@openapitools/openapi-generator-cli": "^2.13.4",
"@redocly/cli": "^1.6.0",
"oatts": "^1.6.0",
"openapi-types": "^12.1.3",
"swagger-ui": "^5.11.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.0",
"@types/uuid": "^9.0.7",
"axios": "^1.6.5",
"jest": "^29.7.0",
"jest-expect-openapi": "^1.0.0",
"jest-openapi": "^0.14.2",
"json-schema-to-ts": "^3.0.0",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"tsconfig-paths-jest": "^0.0.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"wireit": "^0.14.3",
"yargs": "^17.7.2"
},
"main": "./src/index.ts",
"name": "@mearman/openalex-api-spec",
"packageManager": "[email protected]",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Mearman/openalex-api-spec.git"
},
"scripts": {
"build": "wireit",
"build:tsc": "wireit",
"build:verbose": "WIREIT_LOGGER=metrics yarn build",
"build:client:typescript": "yarn workspaces foreach -A run build",
"build:generated": "yarn workspaces foreach -A run tsc --noEmit",
"convert:markdown:notebook": "wireit",
"build:generate": "wireit",
"build:generate:verbose": "WIREIT_LOGGER=metrics yarn generate",
"build:generate:code": "wireit",
"build:generate:spec": "wireit",
"patch": "npm version patch --no-git-tag-version --force && yarn generate",
"refactor": "tsc . && npx -y openapi-refactorer -i 'openapi-spec - JSON.json' -o main.json",
"relink": "yarn workspaces foreach -A run unlink ; yarn workspaces foreach -A run link",
"sync": "git submodule foreach --recursive 'git add . ; git commit --allow-empty-message -m \"\"'",
"test": "wireit",
"test:verbose": "WIREIT_LOGGER=metrics yarn test",
"test:report": "wireit",
"test:report:verbose": "WIREIT_LOGGER=metrics yarn test:report"
},
"version": "0.3.0",
"wireit": {
"build:tsc": {
"command": "tsc --noEmit"
},
"build:clients": {
"dependencies": [
"build:client:typescript"
]
},
"convert:markdown:notebook": {
"command": "tsx src/util/markdown2notebook.ts generated/clients/python/README.md generated/clients/python/README.ipynb",
"dependencies": [
"build:generate:code"
],
"output": [
"generated/clients/python/README.md generated/clients/python/README.ipynb"
]
},
"build:generate": {
"dependencies": [
"build:tsc",
"build:generate:spec",
"build:generate:code",
"convert:markdown:notebook"
]
},
"build:generate:code": {
"command": "npx -y @openapitools/openapi-generator-cli generate",
"dependencies": [
"build:generate:spec",
"build:tsc"
],
"output": [
"generated/clients/typescript-fetch/src/",
"generated/clients/typescript-fetch/.openapi-generator/",
"generated/clients/typescript/**.*.ts",
"generated/clients/typescript-fetch/**.*.ts",
"generated/clients/typescript-node/**.*.ts"
]
},
"build:generate:spec": {
"command": "npx -y tsx ./src/index.ts",
"dependencies": [
"build:tsc"
],
"output": [
"generated/*.json"
]
},
"test": {
"command": "jest",
"dependencies": [
"build:generate:spec"
]
},
"test:report": {
"command": "yarn test -- --json --outputFile=jest.report.json",
"dependencies": [
"build:generate:spec"
],
"output": [
"./jest.report.json"
]
},
"build": {
"dependencies": [
"build:tsc",
"build:generate",
"build:client:typescript"
]
}
}
}