forked from microsoft/typespec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 3.76 KB
/
package.json
File metadata and controls
125 lines (125 loc) · 3.76 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
120
121
122
123
124
125
{
"name": "@typespec/openapi3",
"version": "1.9.0",
"author": "Microsoft Corporation",
"description": "TypeSpec library for emitting OpenAPI 3.0 and OpenAPI 3.1 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec",
"homepage": "https://typespec.io",
"readme": "https://github.com/microsoft/typespec/blob/main/README.md",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/typespec.git"
},
"bugs": {
"url": "https://github.com/microsoft/typespec/issues"
},
"keywords": [
"typespec"
],
"bin": {
"tsp-openapi3": "cmd/tsp-openapi3.js"
},
"type": "module",
"main": "dist/src/index.js",
"tspMain": "lib/main.tsp",
"exports": {
".": {
"typespec": "./lib/main.tsp",
"types": "./dist/src/index.d.ts",
"default": "./dist/src/index.js"
},
"./testing": {
"types": "./dist/src/testing/index.d.ts",
"default": "./dist/src/testing/index.js"
}
},
"imports": {
"#test/*": "./test/*"
},
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"clean": "rimraf ./dist ./temp",
"build": "pnpm gen-version && pnpm gen-extern-signature && pnpm quickbuild && pnpm lint-typespec-library",
"quickbuild": "tsc -p tsconfig.build.json",
"watch": "tsc -p tsconfig.build.json --watch",
"gen-extern-signature": "tspd --enable-experimental gen-extern-signature .",
"lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "vitest run",
"test:watch": "vitest -w",
"test:ui": "vitest --ui",
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix",
"regen-docs": "tspd doc . --enable-experimental --llmstxt --output-dir ../../website/src/content/docs/docs/emitters/openapi3/reference",
"regen-specs": "cross-env RECORD=true vitest run",
"gen-version": "node scripts/generate-version.js",
"api-extractor": "api-extractor run --local --verbose"
},
"files": [
"lib/*.tsp",
"dist/**",
"!dist/test/**"
],
"dependencies": {
"@scalar/json-magic": "^0.9.1",
"@scalar/openapi-parser": "^0.24.1",
"@scalar/openapi-types": "^0.5.0",
"@typespec/asset-emitter": "workspace:^",
"yaml": "~2.8.2"
},
"peerDependencies": {
"@typespec/compiler": "workspace:^",
"@typespec/events": "workspace:^",
"@typespec/http": "workspace:^",
"@typespec/json-schema": "workspace:^",
"@typespec/openapi": "workspace:^",
"@typespec/sse": "workspace:^",
"@typespec/streams": "workspace:^",
"@typespec/versioning": "workspace:^"
},
"peerDependenciesMeta": {
"@typespec/json-schema": {
"optional": true
},
"@typespec/xml": {
"optional": true
},
"@typespec/versioning": {
"optional": true
},
"@typespec/streams": {
"optional": true
},
"@typespec/events": {
"optional": true
},
"@typespec/sse": {
"optional": true
}
},
"devDependencies": {
"@types/node": "~25.0.2",
"@types/yargs": "~17.0.33",
"@typespec/compiler": "workspace:^",
"@typespec/events": "workspace:^",
"@typespec/http": "workspace:^",
"@typespec/json-schema": "workspace:^",
"@typespec/library-linter": "workspace:^",
"@typespec/openapi": "workspace:^",
"@typespec/rest": "workspace:^",
"@typespec/sse": "workspace:^",
"@typespec/streams": "workspace:^",
"@typespec/tspd": "workspace:^",
"@typespec/versioning": "workspace:^",
"@typespec/xml": "workspace:^",
"@vitest/coverage-v8": "^4.0.15",
"@vitest/ui": "^4.0.15",
"c8": "^10.1.3",
"cross-env": "~10.1.0",
"rimraf": "~6.1.2",
"typescript": "~5.9.2",
"vitest": "^4.0.15"
}
}