Skip to content

Update danger and danger plugins to latest versions#3506

Merged
jakebailey merged 5 commits intov2from
copilot/update-danger-to-latest-version
Feb 15, 2026
Merged

Update danger and danger plugins to latest versions#3506
jakebailey merged 5 commits intov2from
copilot/update-danger-to-latest-version

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Updates danger and its plugins to their latest versions per DefinitelyTyped/DefinitelyTyped@c1bf2c9.

  • package.json: Bump danger from ^9.2.10 to ^13.0.5, bump danger-plugin-spellcheck from ^1.5.0 to ^2.1.0 (danger-plugin-lighthouse was already at latest ^0.5.2)
  • dangerfile.ts: Changed from ESM import to CJS require() with destructured default export to avoid CJS/ESM interop issues with danger 13's transpiler

Danger 13's transpiler, when no root tsconfig.json is present, does not override the module system to CommonJS. This causes ESM import statements to be preserved at runtime, leading to CJS/ESM interop failures:

TypeError: spellcheck is not a function

The fix uses const { default: spellcheck } = require("danger-plugin-spellcheck") which works correctly in danger's CJS execution context regardless of transpiler configuration.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 14, 2026 20:23
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
…angerfile.ts

Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Copilot AI changed the title [WIP] Update danger to latest version and ensure functionality Update danger to ^13.0.5 Feb 14, 2026
Copilot AI requested a review from jakebailey February 14, 2026 20:29
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 14, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • unpkg.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node scripts/postinstall.js -optional-packages-test (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot also update the other danger plugins

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated danger-plugin-spellcheck from ^1.5.0 to ^2.1.0. danger-plugin-lighthouse was already at the latest (^0.5.2). Verified pnpm danger ci works correctly with the updated plugin. (d329652)

Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 14, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • unpkg.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node scripts/postinstall.js -optional-packages (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Update danger to ^13.0.5 Update danger and danger plugins to latest versions Feb 14, 2026
Copilot AI requested a review from jakebailey February 14, 2026 20:51
@jakebailey jakebailey marked this pull request as ready for review February 14, 2026 21:20
@jakebailey jakebailey enabled auto-merge (squash) February 14, 2026 21:25
@jakebailey jakebailey merged commit e8021cf into v2 Feb 15, 2026
8 checks passed
@jakebailey jakebailey deleted the copilot/update-danger-to-latest-version branch February 15, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants