mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 05:09:44 -06:00
This PR adds support for retrying failed step runs against the engine and SDKs. This was tested up to 30 retries per step run, with both failure and success at the 30th step run. Each SDK now has a `retries` configurable param for steps when declaring a workflow.
85 lines
3.2 KiB
JSON
85 lines
3.2 KiB
JSON
{
|
|
"name": "@hatchet-dev/typescript-sdk",
|
|
"version": "0.1.14",
|
|
"description": "Background task orchestration & visibility for developers",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"*",
|
|
"!**/*.test.js",
|
|
"!**/*.test.d.ts"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/hatchet-dev/hatchet.git"
|
|
},
|
|
"scripts": {
|
|
"build": "echo 'build hatchet sdk with `npn run tsc:build` to ensure it is not build during the publish step' && exit 0",
|
|
"prepare": "npm run build",
|
|
"tsc:build": "tsc && resolve-tspaths",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"generate": "./generate-protoc.sh",
|
|
"lint:check": "npm run eslint:check && npm run prettier:check",
|
|
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
|
|
"eslint:check": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\"",
|
|
"eslint:fix": "eslint \"{hatchet,tests}/**/*.{ts,tsx,js}\" --fix",
|
|
"prettier:check": "prettier \"hatchet/**/*.{ts,tsx}\" --list-different",
|
|
"prettier:fix": "prettier \"hatchet/**/*.{ts,tsx}\" --write",
|
|
"exec": "npx dotenv -- ts-node -r tsconfig-paths/register --project tsconfig.json",
|
|
"example:event": "npm run exec -- ./examples/example-event.ts",
|
|
"worker:simple": "npm run exec -- ./examples/simple-worker.ts",
|
|
"manual:trigger": "npm run exec -- ./examples/manual-trigger.ts",
|
|
"worker:dag": "npm run exec -- ./examples/dag-worker.ts",
|
|
"worker:concurrency": "npm run exec -- ./examples/concurrency/concurrency-worker.ts",
|
|
"event:concurrency": "npm run exec -- ./examples/concurrency/concurrency-event.ts",
|
|
"worker:retries": "npm run exec -- ./examples/retries-worker.ts",
|
|
"api": "npm run exec -- ./examples/api.ts",
|
|
"prepublish": "cp package.json dist/package.json;",
|
|
"publish:ci": "rm -rf ./dist && npm run tsc:build && npm run prepublish && cd dist && npm publish --access public --no-git-checks",
|
|
"generate-docs": "typedoc"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@types/node": "^20.11.16",
|
|
"@types/jest": "^29.5.11",
|
|
"@types/node": "^20.11.16",
|
|
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
"autoprefixer": "^10.4.16",
|
|
"dotenv-cli": "^7.3.0",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-config-standard-with-typescript": "^43.0.0",
|
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-jest": "^27.6.3",
|
|
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
|
|
"eslint-plugin-prettier": "^5.0.1",
|
|
"eslint-plugin-promise": "^6.0.0",
|
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
"grpc-tools": "^1.12.4",
|
|
"jest": "^29.7.0",
|
|
"prettier": "^3.1.1",
|
|
"resolve-tspaths": "^0.8.17",
|
|
"ts-jest": "^29.1.1",
|
|
"ts-node": "^10.9.2",
|
|
"ts-proto": "^1.167.0",
|
|
"typedoc": "^0.25.7",
|
|
"typedoc-plugin-markdown": "^3.17.1",
|
|
"typescript": "^5.3.3"
|
|
},
|
|
"dependencies": {
|
|
"@types/qs": "^6.9.11",
|
|
"axios": "^1.6.7",
|
|
"long": "^5.2.3",
|
|
"nice-grpc": "^2.1.7",
|
|
"nice-grpc-common": "^2.0.2",
|
|
"protobufjs": "^7.2.6",
|
|
"qs": "^6.11.2",
|
|
"yaml": "^2.3.4",
|
|
"zod": "^3.22.4"
|
|
}
|
|
} |