Skip to content

Commit

Permalink
Merge branch 'main' into fail-earlier-on-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnen authored Mar 14, 2024
2 parents a7c7d28 + 3c70a9f commit 5ba2eb9
Show file tree
Hide file tree
Showing 1,659 changed files with 71,023 additions and 62,131 deletions.
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
packages/*/lib
**/dist
**/tmp
tmp
dst
packages/ci/src/interfaces/kolkrabbi.ts
1 change: 1 addition & 0 deletions .eslintignore-lib
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/lib
67 changes: 63 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,65 @@
{
"extends": "standard",
"env": {
"mocha": true
}
// Global settings
"plugins": ["import"],
"extends": [
"oclif",
"oclif-typescript"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "warn", // TODO: fix issues and turn this back on
"camelcase":"off",
"import/no-unresolved": "error",
"indent": ["error", 2, {"MemberExpression": 1}],
"func-names":"warn", // TODO: fix issues and turn this back on
"no-await-in-loop": "warn", // TODO: fix issues and turn this back on
"no-constant-condition": ["error", {"checkLoops": false }],
"no-else-return": "warn", // TODO: fix issues and turn this back on
"no-negated-condition":"warn", // TODO: fix issues and turn this back on
"no-process-exit": "off",
"no-promise-executor-return": "warn", // TODO: fix issues and turn this back on
"no-prototype-builtins": "warn", // TODO: fix issues and turn this back on
"no-return-await":"warn", // TODO: fix issues and turn this back on
"node/no-deprecated-api": "warn", // TODO: fix issues and turn this back on
"node/no-missing-import": "off", // using import/no-unresolved instead
"radix":"warn", // TODO: fix issues and turn this back on
"wrap-iife": "warn", // TODO: fix issues and turn this back on
"unicorn/better-regex": "off", // TODO: fix issues and turn this back on
"unicorn/consistent-function-scoping": "off", // TODO: fix issues and turn this back on
"unicorn/filename-case": "off",
"unicorn/import-style": "off",
"unicorn/no-abusive-eslint-disable": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "warn", // TODO: fix issues and turn this back on
"unicorn/no-lonely-if":"off",
"unicorn/no-process-exit": "off",
"unicorn/no-useless-undefined": "warn", // TODO: fix issues and turn this back on
"unicorn/numeric-separators-style":"off",
"unicorn/prefer-array-some": "warn", // TODO: fix issues and turn this back on
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-object-from-entries": "warn", // TODO: fix issues and turn this back on
"unicorn/prefer-regexp-test": "off",
"unicorn/prefer-spread": "off", // TODO: fix issues and turn this back on
"unicorn/prefer-string-slice": "warn", // TODO: fix issues and turn this back on
"unicorn/prefer-ternary": "off" // TODO: fix issues and turn this back on
},

// Typescript settings
"overrides": [
{
"files": ["**/*{.ts,tsx}"],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"project": "packages/*/tsconfig.json"
}
}
}
}
]
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**This project is for the Heroku CLI only and issues are reviewed as we are able. If you need more immediate assistence or help with anything not specific to the CLI itself, please use https://help.heroku.com.**
**This project is for the Heroku CLI only and issues are reviewed as we are able. If you need more immediate assistance or help with anything not specific to the CLI itself, please use https://help.heroku.com.**

Do you want to request a *feature* or report a *bug*?
-----------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/get-version-and-channel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/package-lock.json
node_modules
18 changes: 18 additions & 0 deletions .github/actions/get-version-and-channel/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: get version and channel
description: read package.json and return the full version and version-suffix/channel (ex 'beta' if x.y.z-beta.0)

inputs:
path:
description: path to the package.json
required: false
default: "package.json"

outputs:
channel:
description: version channel (ex 'beta' if 1.2.3-beta.0 ), if exists in package.json
version:
description: full version from package.json

runs:
using: 'node16'
main: 'dist/index.js'
2 changes: 2 additions & 0 deletions .github/actions/get-version-and-channel/dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .github/actions/get-version-and-channel/dist/index.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions .github/actions/get-version-and-channel/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const core = require('@actions/core')
const {readFileSync} = require('fs')

function run() {
/* !IMPORTANT: You must run `npm run build` in this directory after all changes. Look to ./package.json */

try {
const buffer = readFileSync(core.getInput('path'))
const pjson = JSON.parse(buffer.toString())
if (pjson?.version) {
const {version} = pjson
const distTag = version.split('-')[1] || ''
// strip build: 'beta.5' => 'beta'
const channel = distTag.split('.')[0]

core.setOutput('channel', channel)
core.setOutput('version', version)
} else {
core.setFailed('no version found :(')
}
} catch (err) {
if (err instanceof Error) {
core.setFailed(err.message)
return
}
core.setFailed('unknown error')
}
}

run()
17 changes: 17 additions & 0 deletions .github/actions/get-version-and-channel/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "get-version-and-channel",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"build": "ncc build index.js -o dist --source-map --minify"
},
"license": "ISC",
"dependencies": {
"@actions/core": "^1.10.0"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",
"eslint": "^8.37.0",
"jest": "^29.5.0"
}
}
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ updates:
interval: "weekly"
labels:
- "dependencies"
open-pull-requests-limit: 10
open-pull-requests-limit: 5
pull-request-branch-name:
separator: "-"
ignore:
Expand Down
Loading

0 comments on commit 5ba2eb9

Please sign in to comment.