Skip to content

Commit

Permalink
Revert to oclif v3, fix version script
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Nov 7, 2024
1 parent c30911b commit 4eb08b6
Show file tree
Hide file tree
Showing 5 changed files with 3,491 additions and 2,830 deletions.
10 changes: 5 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
// Remove these and fix lint errors
"padding-line-between-statements": "warn",
"prefer-destructuring": "warn",
"perfectionist/sort-objects": "warn",
"import/no-named-as-default": "warn",
"perfectionist/sort-union-types": "warn",
"perfectionist/sort-classes": "warn",
"perfectionist/sort-imports": "warn",
// "perfectionist/sort-objects": "warn",
// "import/no-named-as-default": "warn",
// "perfectionist/sort-union-types": "warn",
// "perfectionist/sort-classes": "warn",
// "perfectionist/sort-imports": "warn",
"unicorn/prefer-optional-catch-binding": "warn",
"unicorn/prefer-node-protocol": "warn",
"@typescript-eslint/no-explicit-any": "warn",
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.17.0
nodejs 16.20.0
52 changes: 52 additions & 0 deletions oclif.manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": "2.2.0",
"commands": {
"api": {
"id": "api",
"description": "make a manual API request\nThe api command is a convenient but low-level way to send requests\nto the Heroku API. It sends an HTTP request to the Heroku API\nusing the given method on the given path. For methods PUT, PATCH,\nand POST, it uses stdin unmodified as the request body. It prints\nthe response unmodified on stdout.\n\nIt is essentially like curl for the Heroku API.\n\nMethod name input will be upcased, so both 'heroku api GET /apps' and\n'heroku api get /apps' are valid commands.",
"strict": true,
"pluginName": "@heroku-cli/plugin-api",
"pluginAlias": "@heroku-cli/plugin-api",
"pluginType": "core",
"aliases": [],
"hiddenAliases": [],
"examples": [
"$ heroku api GET /apps/myapp\n{\n created_at: \"2011-11-11T04:17:13-00:00\",\n id: \"12345678-9abc-def0-1234-456789012345\",\n name: \"myapp\",\n\n}\n\n$ heroku api PATCH /apps/myapp/config-vars --body '{\"FOO\": \"bar\"}'\n{\n FOO: \"bar\"\n\n}\n\n$ export HEROKU_HEADERS\n$ HEROKU_HEADERS='{\n\"Content-Type\": \"application/x-www-form-urlencoded\",\n\"Accept\": \"application/json\"\n}'\n$ printf 'type=web&qty=2' | heroku api POST /apps/myapp/ps/scale\n2"
],
"flags": {
"version": {
"name": "version",
"type": "option",
"char": "v",
"description": "version to use (e.g. 2, 3, or 3.variant)",
"multiple": false
},
"accept-inclusion": {
"name": "accept-inclusion",
"type": "option",
"char": "a",
"description": "Accept-Inclusion header to use",
"multiple": false
},
"body": {
"name": "body",
"type": "option",
"char": "b",
"description": "JSON input body",
"multiple": false
}
},
"args": {
"method": {
"name": "method",
"description": "GET, POST, PUT, PATCH, or DELETE",
"required": true
},
"path": {
"name": "path",
"description": "endpoint to call"
}
}
}
}
}
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
"http-call": "^5.3.0"
},
"devDependencies": {
"@oclif/test": "^3.2.15",
"@oclif/test": "^2.5.6",
"@types/chai": "^4.3.14",
"@types/mocha": "^10.0.6",
"@types/node": "16.11.7",
"@types/supports-color": "^5.3.0",
"chai": "^4.4.1",
"eslint": "8.x",
"eslint-config-oclif": "^5.2.1",
"eslint-config-oclif-typescript": "^3.1.9",
"eslint": "^7.32.0",
"eslint-config-oclif": "^4.0.0",
"eslint-config-oclif-typescript": "^1.0.3",
"eslint-plugin-oclif": "^0.1.0",
"globby": "^14.0.2",
"globby": "^13.2.2",
"mocha": "^10.4.0",
"nock": "^13.5.1",
"oclif": "^4.14.26",
"oclif": "3.17.2",
"ts-node": "^10.9.2",
"typescript": "5.5.4"
},
Expand Down Expand Up @@ -63,6 +63,9 @@
"commands": "./lib/commands"
},
"repository": "heroku/heroku-api-plugin",
"resolutions": {
"isbinaryfile": "4.0.10"
},
"scripts": {
"lint": "eslint . --ext .ts",
"postpublish": "rm oclif.manifest.json",
Expand All @@ -71,6 +74,6 @@
"prepack": "tsc && oclif manifest",
"pretest": "tsc && oclif manifest",
"test": "mocha test/**/*.test.ts",
"version": "oclif-dev readme && git add README.md"
"version": "oclif readme && git add README.md"
}
}
Loading

0 comments on commit 4eb08b6

Please sign in to comment.