Files
redocly-cli/package.json
Oleksiy Kachynskyy 4cf08db490 feat: update push and push-status commands (#1481)
* feat(bh): make 'project' and 'domain' required for push command (CMS)

* chore: add OutputFormat type for 'format' parameter for push-status command

* feat: add 'format' parameter for 'push-status'
command

* feat: add 'markdown' to OutputFormat type

* feat: make domain not required for push-status

* refactor: simplify `handlePushStatus` function

* feat: add json format for push-status command

* feat: remove `async` from printPushStatus

* feat: improve printing json summary and exit with error

* feat: add 'format' option to cli push command

* feat: add push metadata to json output

* feat: add return data for push and pushStatus commands

* feat: update push status command

* tests: add new unit tests for push status

* refactor: remove json format for "push" and "push-status" commands

* feat: add "ignore-deployment-failures" option

* chore: replace "satisfies" with "as"

* chore: add changeset

* feat: add onTimeOutExceeded callback

* Apply suggestions from code review

Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>

* Apply suggestions from code review

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Roman Sainchuk <albuman32@gmail.com>

* chore: update return type for commandHandler

* tests: use expect.rejects instead of catching errors

* feat: rename 'ignore-deployment-failures' to 'continue-on-deployment-failures'

* feat: add onConditionNotMet callback

* tests: add unit tests

* chore: add comments

* refactor: rename "wait" to "pause" and move to utils

* refactor: change import type

* refactor: add explicit array length check

* fix: add correct wrapper type for argv params

* feat: update types for push status API

* chore: add "unit:watch" script to package.json

* test: fix unit tests

* tests: add tests for "onRetry" and "max-execution-time" parameters

* chore: restore museum.yaml

* feat: update API types for PushResponse

* refactor: rename "continue-on-deployment-failures" to "continue-on-deploy-failures"

* feat: update interface for `onRetry` function

* feat: remove "instanceof Promise" check

* refactor: reorder imports

* feat: increase maxExecutionTime to 20 min

---------

Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Roman Sainchuk <albuman32@gmail.com>
2024-04-25 14:42:45 +03:00

85 lines
3.0 KiB
JSON

{
"name": "@redocly/cli",
"version": "1.0.0",
"description": "",
"private": true,
"engines": {
"node": ">=15.0.0",
"npm": ">=7.0.0"
},
"engineStrict": true,
"scripts": {
"test": "npm run typecheck && npm run unit",
"jest": "REDOCLY_TELEMETRY=off jest ./packages",
"unit": "npm run jest -- --coverage --coverageReporters lcov text-summary",
"unit:watch": "REDOCLY_TELEMETRY=off jest --watch",
"coverage:cli": "npm run jest -- --roots packages/cli/src --coverage",
"coverage:core": "npm run jest -- --roots packages/core/src --coverage",
"typecheck": "tsc --noEmit --skipLibCheck",
"e2e": "npm run webpack-bundle -- --mode=none && REDOCLY_TELEMETRY=off jest --roots=./__tests__/",
"prettier": "npx prettier --write \"**/*.{ts,js,yaml,json,md}\"",
"prettier:check": "npx prettier --check \"**/*.{ts,js,yaml,json,md}\"",
"eslint": "eslint packages/**",
"clean": "rm -rf packages/**/lib packages/**/node_modules packages/**/*.tsbuildinfo package-lock.json node_modules dist",
"watch": "tsc -b tsconfig.build.json --watch ",
"compile": "tsc -b tsconfig.build.json",
"prepare": "npm run compile",
"cli": "ts-node packages/cli/src/index.ts",
"lint": "npm run cli lint resources/pets.yaml -- --format stylish",
"bundle": "npm run cli bundle resources/pets.yaml",
"stats": "npm run cli stats resources/pets.yaml",
"split": "npm run cli split resources/pets.yaml -- --outDir output",
"preview": "npm run cli preview-docs resources/pets.yaml",
"build-docs": "npm run cli build-docs resources/pets.yaml",
"benchmark": "node --expose-gc --noconcurrent_sweeping --predictable packages/core/src/benchmark/benchmark.js",
"webpack-bundle": "webpack --config webpack.config.ts",
"release": "changeset publish",
"upload": "node scripts/archive-and-upload-bundle.js",
"deploy-local": "npm run webpack-bundle && npm run compile && ENV=local npm run upload",
"pack:prepare": "./scripts/local-pack.sh"
},
"workspaces": [
"packages/*"
],
"repository": {
"type": "git",
"url": "https://github.com/Redocly/redocly-cli.git"
},
"keywords": [
"linter",
"OpenAPI",
"Swagger",
"OpenAPI linter",
"Swagger linter",
"AsyncAPI linter",
"oas"
],
"contributors": [
"Roman Hotsiy <roman@redoc.ly> (https://redoc.ly/)"
],
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/jest": "^26.0.15",
"@types/mark.js": "^8.11.5",
"@types/marked": "^4.0.3",
"@types/node": "^20.11.5",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.22.0",
"jest": "^29.0.0",
"jest-environment-jsdom": "^29.7.0",
"json-schema-to-ts": "^3.0.0",
"null-loader": "^4.0.0",
"outdent": "^0.7.1",
"prettier": "^2.1.2",
"slackify-markdown": "^4.3.1",
"ts-jest": "^29.1.1",
"ts-loader": "^8.0.2",
"ts-node": "^9.0.0",
"typescript": "^5.2.2",
"webpack": "^5.76.0",
"webpack-cli": "^4.10.0"
}
}