Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sapphiredev/plugins
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @sapphire/plugin-editable-commands@3.0.3
Choose a base ref
...
head repository: sapphiredev/plugins
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @sapphire/plugin-editable-commands@3.1.0
Choose a head ref

Commits on Aug 23, 2023

  1. Copy the full SHA
    88eb9b0 View commit details
  2. Copy the full SHA
    4e5478a View commit details
  3. Copy the full SHA
    d1d88d7 View commit details
  4. Copy the full SHA
    67be54f View commit details
  5. Copy the full SHA
    27e02d9 View commit details
  6. Copy the full SHA
    608c506 View commit details
  7. Copy the full SHA
    ef1183c View commit details
  8. Copy the full SHA
    89cb5d9 View commit details
  9. chore: use dot notation

    favna committed Aug 23, 2023
    Copy the full SHA
    f9ed91b View commit details
  10. Copy the full SHA
    e865090 View commit details

Commits on Aug 29, 2023

  1. chore: update dev deps

    favna committed Aug 29, 2023
    Copy the full SHA
    0452e9b View commit details
  2. ci: disable doc gen temporarily

    favna committed Aug 29, 2023
    Copy the full SHA
    3116da4 View commit details
  3. chore(deps): update all non-major dependencies (#474)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 29, 2023
    Copy the full SHA
    2fd57eb View commit details
  4. chore: update dev dependencies

    favna committed Aug 29, 2023
    Copy the full SHA
    b5bb7b0 View commit details
  5. refactor(subcommands): deprecate `SubcommandPluginEvents.ChatInputSub…

    …CommandDenied` in favour of `SubcommandPluginEvents.ChatInputSubcommandDenied` and `SubcommandPluginEvents.MessageSubCommandDenied` in favour of `SubcommandPluginEvents.MessageSubcommandDenied`
    favna committed Aug 29, 2023
    Copy the full SHA
    ed845b4 View commit details
  6. Copy the full SHA
    d32d4b1 View commit details
  7. feat(i18next): support ModalSubmitInteraction (#473)

    * feat(i18next): support ModalSubmitInteraction
    
    * fix: use `BaseInteraction`
    
    ---------
    
    Co-authored-by: Jeroen Claassens <support@favware.tech>
    DemonWayne and favna authored Aug 29, 2023
    Copy the full SHA
    15e1712 View commit details
  8. Copy the full SHA
    2247d29 View commit details

Commits on Sep 3, 2023

  1. Copy the full SHA
    3e73780 View commit details

Commits on Sep 6, 2023

  1. ci: bump ci to use Node 18

    favna committed Sep 6, 2023
    Copy the full SHA
    054e848 View commit details
  2. Copy the full SHA
    9c098d6 View commit details
  3. Copy the full SHA
    55b0a1d View commit details
  4. feat(i18next)!: update to i18next v23 (#475)

    BREAKING CHANGE: This library now depends on i18next v23. See their migration guide as well: https://www.i18next.com/misc/migration-guide#v22.x.x-to-v23.0.0
    favna authored Sep 6, 2023
    Copy the full SHA
    4030137 View commit details
  5. chore: bump dev deps

    favna committed Sep 6, 2023
    Copy the full SHA
    df18fff View commit details
  6. Copy the full SHA
    c703e0f View commit details

Commits on Sep 8, 2023

  1. fix(i18next): fixed resolveKey using incorrect paramater when no de…

    …fault value is passed through (#478)
    swiizyy authored Sep 8, 2023
    Copy the full SHA
    850691d View commit details

Commits on Sep 9, 2023

  1. Copy the full SHA
    ea0ac5b View commit details
  2. Copy the full SHA
    c1e993f View commit details
  3. chore: bump dev deps

    favna committed Sep 9, 2023
    Copy the full SHA
    c73b163 View commit details
  4. fix: set engines.node to >=v18

    favna committed Sep 9, 2023
    Copy the full SHA
    885a390 View commit details
  5. Copy the full SHA
    fb3df70 View commit details

Commits on Sep 10, 2023

  1. chore: update dev deps

    favna committed Sep 10, 2023
    Copy the full SHA
    25537e2 View commit details
  2. chore: update dev deps

    favna committed Sep 10, 2023
    Copy the full SHA
    90dd315 View commit details

Commits on Sep 17, 2023

  1. Copy the full SHA
    e1ef915 View commit details

Commits on Sep 24, 2023

  1. Copy the full SHA
    b210205 View commit details

Commits on Oct 1, 2023

  1. Copy the full SHA
    048ec12 View commit details

Commits on Oct 8, 2023

  1. Copy the full SHA
    9d9f41c View commit details
  2. chore(deps): bump postcss from 8.4.29 to 8.4.31 (#486)

    Bumps [postcss](https://github.com/postcss/postcss) from 8.4.29 to 8.4.31.
    - [Release notes](https://github.com/postcss/postcss/releases)
    - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
    - [Commits](postcss/postcss@8.4.29...8.4.31)
    
    ---
    updated-dependencies:
    - dependency-name: postcss
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 8, 2023
    Copy the full SHA
    75ffa28 View commit details

Commits on Oct 15, 2023

  1. Copy the full SHA
    439610e View commit details
  2. chore(deps): update dependency lint-staged to v15 (#488)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 15, 2023
    Copy the full SHA
    6cb5815 View commit details
  3. ci: update ci to node 20

    favna committed Oct 15, 2023
    Copy the full SHA
    db503e4 View commit details
  4. build: husky changes

    favna committed Oct 15, 2023
    Copy the full SHA
    b1e4449 View commit details

Commits on Oct 16, 2023

  1. Copy the full SHA
    391a168 View commit details
  2. Copy the full SHA
    ddf64d3 View commit details
  3. Copy the full SHA
    aef5949 View commit details
  4. Copy the full SHA
    3ce98f3 View commit details

Commits on Oct 22, 2023

  1. Copy the full SHA
    b67ab5d View commit details
  2. chore(deps): update commitlint monorepo to v18 (major) (#490)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 22, 2023
    Copy the full SHA
    b5c777c View commit details

Commits on Oct 23, 2023

  1. feat(subcommands): add support for all remaining precondition shortcu…

    …ts (#491)
    
    * feat(subcommands): add support for all remaining precondition shortcuts
    
    * refactor: use methods from framework
    
    * chore: this is why we don't push to production on fridays
    
    * chore: somebody keeps erasing my changes.
    favna authored Oct 23, 2023
    Copy the full SHA
    6da37d6 View commit details
  2. Copy the full SHA
    e559bee View commit details
Showing with 4,379 additions and 4,141 deletions.
  1. +0 −1 .github/{husky → hooks}/commit-msg
  2. +3 −0 .github/hooks/pre-commit
  3. +0 −1 .github/husky/.gitignore
  4. +0 −4 .github/husky/pre-commit
  5. +2 −2 .github/workflows/auto-deprecate.yml
  6. +2 −2 .github/workflows/continuous-delivery.yml
  7. +8 −8 .github/workflows/continuous-integration.yml
  8. +2 −2 .github/workflows/deprecate-on-merge.yml
  9. +4 −4 .github/workflows/documentation.yml
  10. +2 −1 .vscode/settings.json
  11. +9 −0 .yarn/plugins/@yarnpkg/plugin-git-hooks.cjs
  12. +0 −363 .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
  13. +0 −9 .yarn/plugins/@yarnpkg/plugin-typescript.cjs
  14. +0 −28 .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
  15. +0 −874 .yarn/releases/yarn-3.6.2.cjs
  16. +893 −0 .yarn/releases/yarn-4.0.1.cjs
  17. +8 −8 .yarnrc.yml
  18. +29 −31 package.json
  19. +27 −0 packages/api/CHANGELOG.md
  20. +10 −10 packages/api/package.json
  21. +11 −2 packages/api/src/lib/structures/MediaParser.ts
  22. +1 −1 packages/api/src/lib/structures/MediaParserStore.ts
  23. +8 −4 packages/api/src/lib/structures/Middleware.ts
  24. +2 −2 packages/api/src/lib/structures/MiddlewareStore.ts
  25. +7 −3 packages/api/src/lib/structures/Route.ts
  26. +1 −1 packages/api/src/lib/structures/RouteStore.ts
  27. +1 −1 packages/api/src/lib/structures/http/Server.ts
  28. +1 −1 packages/api/src/listeners/{coreRouteError.ts → PluginRouteError.ts}
  29. +2 −2 packages/api/src/listeners/{coreServerMatch.ts → PluginServerMatch.ts}
  30. +1 −1 packages/api/src/listeners/{coreServerMiddlewareError.ts → PluginServerMiddlewareError.ts}
  31. +1 −1 packages/api/src/listeners/{coreServerMiddlewareSuccess.ts → PluginServerMiddlewareSuccess.ts}
  32. +1 −1 packages/api/src/listeners/{coreServerNoMatch.ts → PluginServerNoMatch.ts}
  33. +1 −1 packages/api/src/listeners/{coreServerRequest.ts → PluginServerRequest.ts}
  34. +17 −0 packages/api/src/listeners/_load.ts
  35. +11 −0 packages/api/src/mediaParsers/_load.ts
  36. +1 −1 packages/api/src/mediaParsers/applicationFormUrlEncoded.ts
  37. +2 −3 packages/api/src/mediaParsers/applicationJson.ts
  38. +1 −1 packages/api/src/mediaParsers/textPlain.ts
  39. +13 −0 packages/api/src/middlewares/_load.ts
  40. +2 −1 packages/api/src/middlewares/auth.ts
  41. +2 −1 packages/api/src/middlewares/body.ts
  42. +3 −3 packages/api/src/middlewares/cookies.ts
  43. +3 −3 packages/api/src/middlewares/headers.ts
  44. +9 −5 packages/api/src/register.ts
  45. +9 −0 packages/api/src/routes/_load.ts
  46. +1 −2 packages/api/src/routes/oauth/callback.ts
  47. +2 −2 packages/api/src/routes/oauth/logout.ts
  48. +11 −0 packages/editable-commands/CHANGELOG.md
  49. +7 −7 packages/editable-commands/package.json
  50. +1 −1 packages/editable-commands/src/listeners/{pluginMessageUpdate.ts → PluginMessageUpdate.ts}
  51. +7 −0 packages/editable-commands/src/listeners/_load.ts
  52. +2 −2 packages/editable-commands/src/register.ts
  53. +6 −0 packages/hmr/CHANGELOG.md
  54. +7 −7 packages/hmr/package.json
  55. +32 −0 packages/i18next/CHANGELOG.md
  56. +4 −4 packages/i18next/README.md
  57. +8 −8 packages/i18next/package.json
  58. +14 −1 packages/i18next/src/index.ts
  59. +39 −15 packages/i18next/src/lib/InternationalizationHandler.ts
  60. +67 −32 packages/i18next/src/lib/functions.ts
  61. +14 −22 packages/i18next/src/lib/types.ts
  62. +2 −12 packages/i18next/src/register.ts
  63. +6 −0 packages/logger/CHANGELOG.md
  64. +1 −1 packages/logger/README.md
  65. +7 −7 packages/logger/package.json
  66. +6 −0 packages/pattern-commands/CHANGELOG.md
  67. +7 −7 packages/pattern-commands/package.json
  68. +3 −3 packages/pattern-commands/src/index.ts
  69. +7 −3 packages/pattern-commands/src/lib/structures/PatternCommand.ts
  70. +3 −4 packages/pattern-commands/src/listeners/PluginCommandAccepted.ts
  71. +2 −3 packages/pattern-commands/src/listeners/PluginMessageParse.ts
  72. +2 −3 packages/pattern-commands/src/listeners/PluginPreCommandRun.ts
  73. +11 −0 packages/pattern-commands/src/listeners/_load.ts
  74. +5 −4 packages/pattern-commands/src/register.ts
  75. +14 −0 packages/scheduled-tasks/CHANGELOG.md
  76. +5 −5 packages/scheduled-tasks/README.md
  77. +7 −7 packages/scheduled-tasks/package.json
  78. +5 −0 packages/scheduled-tasks/src/index.ts
  79. +2 −2 packages/scheduled-tasks/src/lib/ScheduledTaskHandler.ts
  80. +41 −6 packages/scheduled-tasks/src/lib/structures/ScheduledTask.ts
  81. +4 −1 packages/scheduled-tasks/src/lib/structures/ScheduledTaskStore.ts
  82. +26 −3 packages/scheduled-tasks/src/lib/types/ScheduledTaskTypes.ts
  83. +20 −0 packages/scheduled-tasks/src/listeners/PluginScheduledTaskError.ts
  84. +15 −0 packages/scheduled-tasks/src/listeners/PluginScheduledTaskNotFound.ts
  85. +15 −0 packages/scheduled-tasks/src/listeners/PluginScheduledTaskStrategyConnectError.ts
  86. +11 −0 packages/scheduled-tasks/src/listeners/_load.ts
  87. +7 −1 packages/scheduled-tasks/src/register.ts
  88. +44 −0 packages/subcommands/CHANGELOG.md
  89. +7 −7 packages/subcommands/package.json
  90. +39 −1 packages/subcommands/src/index.ts
  91. +84 −22 packages/subcommands/src/lib/Subcommand.ts
  92. +69 −0 packages/subcommands/src/lib/precondition-resolvers/subcommandCooldown.ts
  93. +16 −0 packages/subcommands/src/lib/types/Enums.ts
  94. +5 −17 packages/subcommands/src/lib/types/Events.ts
  95. +16 −10 packages/subcommands/src/lib/{ → types}/SubcommandMappings.ts
  96. +1 −1 ...subcommands/src/listeners/{pluginChatInputSubcommandError.ts → PluginChatInputSubcommandError.ts}
  97. +1 −1 ...ges/subcommands/src/listeners/{pluginMessageSubcommandError.ts → PluginMessageSubcommandError.ts}
  98. +2 −2 ...hatInputSubcommandMissingHandler.ts → PluginSubcommandMappingIsMissingChatInputCommandHandler.ts}
  99. +2 −2 ...ginMessageSubcommandMissingHandler.ts → PluginSubcommandMappingIsMissingMessageCommandHandler.ts}
  100. +21 −0 packages/subcommands/src/listeners/_load.ts
  101. +136 −0 packages/subcommands/src/preconditions/PluginSubcommandCooldown.ts
  102. +7 −0 packages/subcommands/src/preconditions/_load.ts
  103. +7 −3 packages/subcommands/src/register.ts
  104. +6 −0 packages/utilities-store/CHANGELOG.md
  105. +1 −1 packages/utilities-store/README.md
  106. +7 −7 packages/utilities-store/package.json
  107. +1 −1 packages/utilities-store/src/lib/UtilitiesStore.ts
  108. +6 −2 packages/utilities-store/src/lib/Utility.ts
  109. +1 −4 packages/utilities-store/src/register.ts
  110. +1 −1 scripts/formatTag/action.yml
  111. +1 −1 tsconfig.base.json
  112. +2,332 −2,496 yarn.lock
1 change: 0 additions & 1 deletion .github/husky/commit-msg → .github/hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
3 changes: 3 additions & 0 deletions .github/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

yarn lint-staged
1 change: 0 additions & 1 deletion .github/husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .github/husky/pre-commit

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/auto-deprecate.yml
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
4 changes: 2 additions & 2 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
@@ -31,10 +31,10 @@ jobs:
ref: ${{ github.event.inputs.ref || 'main' }}
- name: Add TypeScript problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
16 changes: 8 additions & 8 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -15,10 +15,10 @@ jobs:
uses: actions/checkout@v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
@@ -32,10 +32,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
@@ -56,10 +56,10 @@ jobs:
uses: actions/checkout@v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
@@ -73,10 +73,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
4 changes: 2 additions & 2 deletions .github/workflows/deprecate-on-merge.yml
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -24,10 +24,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
@@ -74,10 +74,10 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -4,5 +4,6 @@
"editor.useTabStops": true,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"files.eol": "\n"
"files.eol": "\n",
"cSpell.words": ["Dashless"]
}
9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-git-hooks.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-git-hooks",
factory: function (require) {
var plugin=(()=>{var p=Object.create;var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var _=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,E)=>(typeof require<"u"?require:e)[E]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+n+'" is not supported')});var c=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),A=(n,e)=>{for(var E in e)i(n,E,{get:e[E],enumerable:!0})},C=(n,e,E,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let I of l(e))!m.call(n,I)&&I!==E&&i(n,I,{get:()=>e[I],enumerable:!(s=u(e,I))||s.enumerable});return n};var U=(n,e,E)=>(E=n!=null?p(P(n)):{},C(e||!n||!n.__esModule?i(E,"default",{value:n,enumerable:!0}):E,n)),v=n=>C(i({},"__esModule",{value:!0}),n);var L=c((M,B)=>{B.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]}},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var T=c(a=>{"use strict";var D=L(),t=process.env;Object.defineProperty(a,"_vendors",{value:D.map(function(n){return n.constant})});a.name=null;a.isPR=null;D.forEach(function(n){let E=(Array.isArray(n.env)?n.env:[n.env]).every(function(s){return S(s)});if(a[n.constant]=E,!!E)switch(a.name=n.name,typeof n.pr){case"string":a.isPR=!!t[n.pr];break;case"object":"env"in n.pr?a.isPR=n.pr.env in t&&t[n.pr.env]!==n.pr.ne:"any"in n.pr?a.isPR=n.pr.any.some(function(s){return!!t[s]}):a.isPR=S(n.pr);break;default:a.isPR=null}});a.isCI=!!(t.CI!=="false"&&(t.BUILD_ID||t.BUILD_NUMBER||t.CI||t.CI_APP_ID||t.CI_BUILD_ID||t.CI_BUILD_NUMBER||t.CI_NAME||t.CONTINUOUS_INTEGRATION||t.RUN_ID||a.name||!1));function S(n){return typeof n=="string"?!!t[n]:"env"in n?t[n.env]&&t[n.env].includes(n.includes):"any"in n?n.any.some(function(e){return!!t[e]}):Object.keys(n).every(function(e){return t[e]===n[e]})}});var d={};A(d,{default:()=>O});var o=U(_("process")),r=_("@yarnpkg/core"),R=U(T()),N={configuration:{gitHooksPath:{description:"Path to git hooks directory (recommended: .github/hooks)",type:r.SettingsType.STRING,default:null},disableGitHooks:{description:"Disable automatic git hooks installation",type:r.SettingsType.BOOLEAN,default:R.default.isCI}},hooks:{afterAllInstalled:async n=>{let e=n.configuration.get("gitHooksPath"),E=n.configuration.get("disableGitHooks"),s=Boolean(n.cwd?.endsWith(`dlx-${o.default.pid}`));if(e&&!R.default.isCI&&!s&&!E)return r.execUtils.pipevp("git",["config","core.hooksPath",e],{cwd:n.cwd,strict:!0,stdin:o.default.stdin,stdout:o.default.stdout,stderr:o.default.stderr})}}},O=N;return v(d);})();
return plugin;
}
};
Loading