2
2
"name" : " @openapi-contrib/json-schema-to-openapi-schema" ,
3
3
"version" : " 0.0.0-development" ,
4
4
"description" : " Converts a JSON Schema to OpenAPI Schema Object" ,
5
- "bin" : " bin/json-schema-to-openapi-schema.js" ,
6
- "types" : " dist/index.d.ts" ,
7
5
"files" : [
8
6
" bin" ,
9
- " dist"
7
+ " dist" ,
8
+ " CHANGELOG.md" ,
9
+ " LICENSE" ,
10
+ " package.json"
10
11
],
12
+ "exports" : {
13
+ "." : {
14
+ "types" : " ./dist/index.d.ts" ,
15
+ "require" : " ./dist/index.js" ,
16
+ "import" : " ./dist/index.mjs"
17
+ }
18
+ },
19
+ "bin" : " bin/json-schema-to-openapi-schema.js" ,
20
+ "types" : " dist/index.d.ts" ,
11
21
"main" : " dist/index.js" ,
22
+ "module" : " dist/index.mjs" ,
12
23
"scripts" : {
13
24
"prepublish" : " yarn build" ,
14
- "build" : " rimraf dist && tsc -p tsconfig.json " ,
25
+ "build" : " rimraf dist && tsup src/index.ts --format esm,cjs --dts --clean " ,
15
26
"lint" : " eslint . && prettier -c src" ,
16
27
"lint:fix" : " eslint . --fix && prettier -c src -w" ,
17
28
"typecheck" : " tsc --noEmit" ,
25
36
"node" : " >=18"
26
37
},
27
38
"dependencies" : {
28
- "@apidevtools/json-schema-ref-parser" : " ^11.6 .2" ,
39
+ "@apidevtools/json-schema-ref-parser" : " ^11.7 .2" ,
29
40
"json-schema-walker" : " ^2.0.0" ,
30
41
"openapi-types" : " ^12.1.3" ,
31
42
"yargs" : " ^17.7.2"
32
43
},
33
44
"devDependencies" : {
34
- "@eslint/compat" : " ^1.0 .3" ,
45
+ "@eslint/compat" : " ^1.2 .3" ,
35
46
"@types/json-schema" : " ^7.0.15" ,
36
- "c8" : " ^9 .1.0 " ,
37
- "eslint" : " ^9.4 .0" ,
47
+ "c8" : " ^10 .1.2 " ,
48
+ "eslint" : " ^9.15 .0" ,
38
49
"eslint-config-prettier" : " ^9.1.0" ,
39
- "eslint-plugin-prettier" : " ^5.1.3" ,
40
- "eslint-plugin-unused-imports" : " ^4.0.0" ,
41
- "nock" : " ^13.5.4" ,
42
- "prettier" : " ^3.3.0" ,
43
- "rimraf" : " ^5.0.7" ,
44
- "typescript" : " ^5.4.5" ,
45
- "typescript-eslint" : " ^7.11.0" ,
46
- "vitest" : " ^1.6.0"
50
+ "eslint-plugin-prettier" : " ^5.2.1" ,
51
+ "eslint-plugin-unused-imports" : " ^4.1.4" ,
52
+ "nock" : " ^13.5.6" ,
53
+ "prettier" : " ^3.3.3" ,
54
+ "rimraf" : " ^6.0.1" ,
55
+ "tsup" : " ^8.3.5" ,
56
+ "typescript" : " ^5.6.3" ,
57
+ "typescript-eslint" : " ^8.15.0" ,
58
+ "vitest" : " ^2.1.5"
47
59
},
48
60
"prettier" : {
49
61
"singleQuote" : true ,
50
62
"useTabs" : true
51
63
},
52
64
"packageManager" :
" [email protected] "
53
- }
65
+ }
0 commit comments