Compare commits

..

No commits in common. "782721e39ba241a05f08cc0c737da623ee0f47e3" and "298e00d16954592b06fe237dbf749947c3dd4a98" have entirely different histories.

6 changed files with 10252 additions and 11017 deletions

10
.github/renovate.json vendored
View File

@ -1,10 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "group:allNonMajor", "schedule:monthly"],
"timezone": "Pacific/Auckland",
"labels": ["dependencies"],
"vulnerabilityAlerts": {
"labels": ["security"],
"schedule": ["at any time"]
}
}

15316
dist/index.mjs generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,36 @@
// @ts-check
import {fixupPluginRules} from '@eslint/compat'
import {FlatCompat} from '@eslint/eslintrc'
import jsEslint from '@eslint/js'
import eslintConfigPrettier from 'eslint-config-prettier'
import * as eslintPluginImportX from 'eslint-plugin-import-x'
import * as tsEslint from 'typescript-eslint'
import tsEslint from 'typescript-eslint'
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
recommendedConfig: jsEslint.configs.recommended,
allConfig: jsEslint.configs.all
})
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/**
* @param {string} name the pugin name
* @param {string} alias the plugin alias
* @returns {import("eslint").ESLint.Plugin}
*/
function legacyPlugin(name, alias = name) {
const plugin = compat.plugins(name)[0]?.plugins?.[alias]
if (!plugin) {
throw new Error(`Unable to resolve plugin ${name} and/or alias ${alias}`)
}
return fixupPluginRules(plugin)
}
/* eslint-enable @typescript-eslint/explicit-function-return-type */
export default tsEslint.config(
jsEslint.configs.recommended,
eslintPluginImportX.flatConfigs.recommended,
eslintPluginImportX.flatConfigs.typescript,
...tsEslint.configs.strictTypeChecked,
...tsEslint.configs.stylisticTypeChecked,
{
@ -22,9 +44,13 @@ export default tsEslint.config(
}
},
{
ignores: ['**/coverage', '**/dist', '**/lib', '**/esbuild.config.mjs']
ignores: ['**/coverage', '**/dist', '**/esbuild.config.mjs']
},
{
plugins: {
github: legacyPlugin('eslint-plugin-github', 'github'), // pending https://github.com/github/eslint-plugin-github/issues/513
import: legacyPlugin('eslint-plugin-import', 'import') // Needed for above
},
rules: {
'@typescript-eslint/await-thenable': 'warn',
'@typescript-eslint/explicit-function-return-type': 'warn',
@ -39,7 +65,11 @@ export default tsEslint.config(
allowNumber: true
}
],
'import-x/no-extraneous-dependencies': [
'github/array-foreach': 'error',
'github/no-implicit-buggy-globals': 'error',
'github/no-then': 'error',
'github/no-dynamic-script-tag': 'error',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
@ -47,7 +77,7 @@ export default tsEslint.config(
peerDependencies: true
}
],
'import-x/order': ['warn', {'newlines-between': 'always', alphabetize: {order: 'asc'}}],
'import/order': ['warn', {'newlines-between': 'always', alphabetize: {order: 'asc'}}],
'no-console': ['warn']
}
},

View File

@ -1,6 +1,6 @@
{
"name": "paths-filter",
"version": "5.0.0",
"version": "1.0.0",
"private": true,
"description": "Execute your workflow steps only if relevant files are modified.",
"type": "module",
@ -25,36 +25,37 @@
],
"license": "MIT",
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.1",
"@actions/github": "^6.0.0",
"js-yaml": "^4.1.0",
"micromatch": "^4.0.8"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.29.0",
"@octokit/webhooks-types": "^7.6.1",
"@tsconfig/node20": "^20.1.6",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.10.0",
"@octokit/webhooks-types": "^7.5.1",
"@tsconfig/node20": "^20.1.4",
"@types/eslint__js": "^8.42.3",
"@types/js-yaml": "^4.0.9",
"@types/micromatch": "^4.0.9",
"@types/node": "^24.0.3",
"@typescript-eslint/eslint-plugin": "^8.34.1",
"@typescript-eslint/parser": "^8.34.1",
"chalk": "^5.4.1",
"esbuild": "^0.25.5",
"eslint": "^9.29.0",
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.4.3",
"eslint-plugin-github": "^6.0.0",
"eslint-plugin-import-x": "^4.15.2",
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.1",
"vitest": "^3.2.4"
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"chalk": "^5.3.0",
"esbuild": "^0.23.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-github": "^5.0.1",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0",
"vitest": "^2.0.5"
},
"volta": {
"node": "20.19.2",
"pnpm": "10.12.1"
"node": "20.17.0",
"pnpm": "8.15.8"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +0,0 @@
onlyBuiltDependencies:
- esbuild