|
2 | 2 | "name": "@typespec/openapi3",
|
3 | 3 | "version": "0.57.0",
|
4 | 4 | "author": "Microsoft Corporation",
|
5 |
| - "description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding", |
| 5 | + "description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec", |
6 | 6 | "homepage": "https://typespec.io",
|
7 | 7 | "readme": "https://github.com/microsoft/typespec/blob/main/README.md",
|
8 | 8 | "license": "MIT",
|
|
16 | 16 | "keywords": [
|
17 | 17 | "typespec"
|
18 | 18 | ],
|
| 19 | + "bin": { |
| 20 | + "tsp-openapi3": "cmd/tsp-openapi3.js" |
| 21 | + }, |
19 | 22 | "type": "module",
|
20 | 23 | "main": "dist/src/index.js",
|
21 | 24 | "tspMain": "lib/main.tsp",
|
|
34 | 37 | },
|
35 | 38 | "scripts": {
|
36 | 39 | "clean": "rimraf ./dist ./temp",
|
37 |
| - "build": "npm run gen-extern-signature && tsc -p . && npm run lint-typespec-library", |
| 40 | + "build": "npm run gen-version && npm run gen-extern-signature && tsc -p . && npm run lint-typespec-library", |
38 | 41 | "watch": "tsc -p . --watch",
|
39 | 42 | "gen-extern-signature": "tspd --enable-experimental gen-extern-signature .",
|
40 | 43 | "lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
|
|
44 | 47 | "test:ci": "vitest run --coverage --reporter=junit --reporter=default",
|
45 | 48 | "lint": "eslint . --max-warnings=0",
|
46 | 49 | "lint:fix": "eslint . --fix",
|
47 |
| - "regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/emitters/openapi3/reference" |
| 50 | + "regen-docs": "tspd doc . --enable-experimental --output-dir ../../docs/emitters/openapi3/reference", |
| 51 | + "regen-specs": "cross-env RECORD=true vitest run", |
| 52 | + "gen-version": "node scripts/generate-version.js" |
48 | 53 | },
|
49 | 54 | "files": [
|
50 | 55 | "lib/*.tsp",
|
51 | 56 | "dist/**",
|
52 | 57 | "!dist/test/**"
|
53 | 58 | ],
|
54 | 59 | "dependencies": {
|
| 60 | + "@readme/openapi-parser": "~2.6.0", |
55 | 61 | "yaml": "~2.4.5"
|
56 | 62 | },
|
57 | 63 | "peerDependencies": {
|
|
62 | 68 | },
|
63 | 69 | "devDependencies": {
|
64 | 70 | "@types/node": "~18.11.19",
|
| 71 | + "@types/yargs": "~17.0.32", |
65 | 72 | "@typespec/compiler": "workspace:~",
|
66 | 73 | "@typespec/http": "workspace:~",
|
67 | 74 | "@typespec/library-linter": "workspace:~",
|
|
72 | 79 | "@vitest/coverage-v8": "^1.6.0",
|
73 | 80 | "@vitest/ui": "^1.6.0",
|
74 | 81 | "c8": "^10.1.2",
|
| 82 | + "cross-env": "~7.0.3", |
75 | 83 | "rimraf": "~5.0.7",
|
76 | 84 | "typescript": "~5.5.3",
|
77 | 85 | "vitest": "^1.6.0"
|
|
0 commit comments