[Feature]: Allow CLI to scan workspace packages for Capacitor plugins

Aperta
#7,881 3 commenti 1 reazione 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@theproducer ci sta già lavorando.

Dal 24/2/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

type: feature request
Description

Enable development of app + plugin monorepos by allowing commands like cap sync find plugins inside workspace packages

Platforms
  • iOS
  • Android
  • Web
Request or proposed solution

Right now the capacitor CLI can only detect plugins inside node_modules/ which makes developing a plugin and an app side by side cumbersome, especially if the two packages are in a monorepo together. It would be nice if the cli could use to root package.json to detect if any workspace packages are Capacitor plugins and include their relevant files when running commands like cap sync

Alternatives

No response

Additional Information

I actually already have a PR up for this but it never got looked at. Its out of date now but if theres interest from the maintainers to actually add this feature I could take care getting it up to date. https://github.com/ionic-team/capacitor/pull/7723

Lingua principale
TypeScript
Stelle
17.1k
Fork
1.3k
Merge medio
1g 22h
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ionic-team/capacitor

Tutte le issue di ionic-team/capacitor

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.