Skip to content

fix(deps): install @escalated-dev/plugin-sdk via codeload tarball — 114 → 70 TS errors#38

Merged
mpge merged 1 commit into
mainfrom
fix/adonis-34-plugin-sdk-dep
Apr 19, 2026
Merged

fix(deps): install @escalated-dev/plugin-sdk via codeload tarball — 114 → 70 TS errors#38
mpge merged 1 commit into
mainfrom
fix/adonis-34-plugin-sdk-dep

Conversation

@mpge
Copy link
Copy Markdown
Member

@mpge mpge commented Apr 19, 2026

Summary

The plugin bridge (src/bridge/*.ts), dispatcher and route registrar all import from @escalated-dev/plugin-sdk. The package lives at https://github.com/escalated-dev/escalated-plugin-sdk and is not yet published to npm, so it was unresolvable at build time:

  • 6 direct TS2307: Cannot find module '@escalated-dev/plugin-sdk'
  • ~38 cascading TS7006: Parameter implicitly has an 'any' type and similar across bridge code

Pin to v0.1.2 of the SDK (escalated-plugin-sdk#7 ships the build/ artifacts in git; #8 drops the prepare hook).

Use the codeload tarball URL rather than the github: shorthand because npm 11 spawns the git-prepare child install with both --prefer-offline=false AND --prefer-online=false and then rejects them as mutually exclusive — a known npm regression. Codeload tarball URLs bypass the git-prepare path entirely and install cleanly on every npm version.

Effect

tsc --noEmit errors drop from 114 → 70. The remaining 70 split into real code issues tracked individually in #34:

  • 38 TS2339 (property does not exist) — narrower set than before, no longer cascading from never
  • 16 TS2769 (overload mismatches) — Lucid query builder edge cases
  • 6 TS18046 (X is unknown)
  • 3 TS2307 (Cannot find module) — #start/env, @adonisjs/transmit/services/main, adm-zip
  • Misc small (configure.publishMigrations, etc.)

Each will be a focused follow-up PR.

Test plan

  • rm -rf node_modules/@escalated-dev && npm install — succeeds, node_modules/@escalated-dev/plugin-sdk/build/ present with the expected .js + .d.ts files
  • tsc --noEmit errors: 114 → 70
  • No runtime change beyond the new dep

The plugin bridge / dispatcher / route registrar all import from
@escalated-dev/plugin-sdk, which lives at
https://github.com/escalated-dev/escalated-plugin-sdk and is not yet
published to npm. The package was therefore unresolvable at build time,
producing 6 direct TS2307 errors and ~38 cascading implicit-any errors
across the bridge code.

This commit pins the dep at v0.1.2 (which ships the build/ artifacts in
git, ref escalated-plugin-sdk#7 and #8) and uses the codeload tarball URL
rather than the github: shorthand. The shorthand triggers an npm 11 bug
where the cli spawns the git-prepare child install with both
--prefer-offline=false AND --prefer-online=false, which the same cli
then rejects as mutually exclusive. Codeload tarball URLs bypass the git-
prepare path entirely and install cleanly on every npm version.

Effect: tsc --noEmit goes from 114 -> 70 errors. The remaining 70 are
real code issues tracked individually in #34.
@mpge mpge merged commit 1a3dc07 into main Apr 19, 2026
4 checks passed
@mpge mpge deleted the fix/adonis-34-plugin-sdk-dep branch April 19, 2026 20:25
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.

1 participant