|
2 | 2 | "name": "@openapi-contrib/openapi-schema-to-json-schema", |
3 | 3 | "version": "0.0.0-development", |
4 | 4 | "description": "Converts OpenAPI Schema Object to JSON Schema", |
5 | | - "types": "dist/mjs/index.d.ts", |
| 5 | + "types": "dist/index.d.ts", |
6 | 6 | "files": [ |
7 | | - "/dist" |
| 7 | + "dist", |
| 8 | + "src", |
| 9 | + "package.json", |
| 10 | + "tsconfig.json" |
8 | 11 | ], |
9 | | - "main": "dist/cjs/index.js", |
10 | | - "module": "dist/mjs/index.js", |
11 | | - "exports": { |
12 | | - ".": { |
13 | | - "import": "./dist/mjs/index.js", |
14 | | - "require": "./dist/cjs/index.js" |
15 | | - } |
16 | | - }, |
| 12 | + "main": "dist/index.js", |
17 | 13 | "scripts": { |
18 | | - "build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node scripts/fixup.cjs", |
| 14 | + "build": "rimraf dist && tsc -p tsconfig.json", |
19 | 15 | "test": "vitest", |
20 | 16 | "coverage": "vitest --coverage", |
21 | 17 | "lint": "eslint . && prettier -c src", |
22 | 18 | "typecheck": "tsc --noEmit", |
23 | 19 | "lint:fix": "eslint . --fix && prettier -c src -w" |
24 | 20 | }, |
25 | | - "repository": "github:openapi-contrib/openapi-schema-to-json-schema", |
| 21 | + "repository": "https://github.com/openapi-contrib/openapi-schema-to-json-schema", |
26 | 22 | "author": "OpenAPI Contrib", |
27 | 23 | "license": "MIT", |
| 24 | + "bin": "dist/bin.js", |
28 | 25 | "dependencies": { |
29 | | - "@types/node": "^20.2.5", |
30 | 26 | "@types/json-schema": "^7.0.12", |
| 27 | + "@types/node": "^20.4.1", |
31 | 28 | "fast-deep-equal": "^3.1.3", |
32 | | - "openapi-typescript": "^5.4.1" |
| 29 | + "openapi-typescript": "^5.4.1", |
| 30 | + "yargs": "^17.7.2" |
33 | 31 | }, |
34 | 32 | "devDependencies": { |
35 | | - "@typescript-eslint/eslint-plugin": "^5.59.8", |
36 | | - "@typescript-eslint/parser": "^5.59.8", |
37 | | - "c8": "^7.14.0", |
38 | | - "eslint": "^8.42.0", |
| 33 | + "@types/yargs": "^17.0.24", |
| 34 | + "@typescript-eslint/eslint-plugin": "^6.0.0", |
| 35 | + "@typescript-eslint/parser": "^6.0.0", |
| 36 | + "c8": "^8.0.0", |
| 37 | + "eslint": "^8.44.0", |
39 | 38 | "eslint-config-prettier": "^8.8.0", |
40 | | - "eslint-plugin-prettier": "^4.2.1", |
41 | | - "eslint-plugin-unused-imports": "^2.0.0", |
42 | | - "prettier": "^2.8.8", |
43 | | - "semantic-release": "^21.0.3", |
44 | | - "typescript": "^5.1.3", |
45 | | - "vitest": "^0.31.4" |
| 39 | + "eslint-plugin-prettier": "^5.0.0", |
| 40 | + "eslint-plugin-unused-imports": "^3.0.0", |
| 41 | + "prettier": "^3.0.0", |
| 42 | + "rimraf": "^5.0.1", |
| 43 | + "semantic-release": "^21.0.7", |
| 44 | + "typescript": "^5.1.6", |
| 45 | + "vitest": "^0.33.0" |
46 | 46 | }, |
47 | 47 | "prettier": { |
48 | 48 | "printWidth": 120, |
49 | 49 | "useTabs": false, |
50 | 50 | "arrowParens": "always", |
51 | 51 | "trailingComma": "all" |
| 52 | + }, |
| 53 | + "engines": { |
| 54 | + "node": ">=14.0.0" |
52 | 55 | } |
53 | 56 | } |
0 commit comments