forked from wework/json-schema-to-openapi-schema
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Move to yarn 4 and only output a cjs build, drop (of…
…ficial) support for node 14, bump json-scheme-walker version and openapi types version (#45) * chore(versions): move to yarn 4, drop release for node 14, only output cjs BREAKING CHANGE: Move to yarn 4 and only output a cjs build, drop support for node 14 * update build
- Loading branch information
Showing
19 changed files
with
4,388 additions
and
1,915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,25 +2,16 @@ | |
"name": "@openapi-contrib/json-schema-to-openapi-schema", | ||
"version": "0.0.0-development", | ||
"description": "Converts a JSON Schema to OpenAPI Schema Object", | ||
"bin": { | ||
"json-schema-to-openapi-schema": "bin/json-schema-to-openapi-schema.js" | ||
}, | ||
"types": "dist/mjs/index.d.ts", | ||
"bin": "bin/json-schema-to-openapi-schema.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"/bin", | ||
"/dist" | ||
"bin", | ||
"dist" | ||
], | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/mjs/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
}, | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json && node scripts/fixup.cjs", | ||
"build": "rimraf dist && tsc -p tsconfig.json", | ||
"lint": "eslint . && prettier -c src", | ||
"lint:fix": "eslint . --fix && prettier -c src -w", | ||
"typecheck": "tsc --noEmit", | ||
|
@@ -31,30 +22,32 @@ | |
"author": "OpenAPI Contrib", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=18" | ||
}, | ||
"dependencies": { | ||
"@apidevtools/json-schema-ref-parser": "^9.0.9", | ||
"json-schema-walker": "^1.1.0", | ||
"openapi-types": "^12.1.0", | ||
"yargs": "^17.6.2" | ||
"@apidevtools/json-schema-ref-parser": "^11.1.0", | ||
"json-schema-walker": "^2.0.0", | ||
"openapi-types": "^12.1.3", | ||
"yargs": "^17.7.2" | ||
}, | ||
"devDependencies": { | ||
"@types/json-schema": "^7.0.11", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"c8": "^7.12.0", | ||
"eslint": "^8.32.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-unused-imports": "^2.0.0", | ||
"nock": "^13.3.0", | ||
"prettier": "^2.8.3", | ||
"typescript": "^4.9.4", | ||
"vitest": "^0.28.1" | ||
"@types/json-schema": "^7.0.15", | ||
"@typescript-eslint/eslint-plugin": "^6.10.0", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"c8": "^8.0.1", | ||
"eslint": "^8.53.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"nock": "^13.3.8", | ||
"prettier": "^3.0.3", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.6" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"useTabs": true | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"target": "ES2015", | ||
"lib": ["es2015", "dom"], | ||
"target": "ESNext", | ||
"lib": ["ESNext", "dom"], | ||
"types": ["vitest/globals"], | ||
"rootDir": "." | ||
"rootDir": "../" | ||
}, | ||
"include": ["."] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ export default defineConfig({ | |
reporters: 'verbose', | ||
}, | ||
esbuild: { | ||
target: 'node10', | ||
target: 'node21', | ||
}, | ||
}); |
Oops, something went wrong.