Code Connect UI - Connect to NPM Package

Aperta
#322 0 commenti 8 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript

Direzione di ricerca

Read the Code Connect UI setup documentation linked in the issue and trace how the UI currently connects a GitHub repository. Identify where the repository connection is implemented and how MCP integration uses component imports. Done means users can connect to an NPM package and use its imports for component mapping, including when published package contents differ from the GitHub source.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature request

Currently the new Code Connect UI only allows connecting to a Github repository:
https://developers.figma.com/docs/code-connect/code-connect-ui-setup/

Component Libraries are published though through NPM in a majority of cases, so connecting to the code base itself is not useful for consumers of a certain library, which use the components through npm imports i.e. import {Button} from 'component-library'. Also worth considering is that the src code in Github might not match what is actually built and published through NPM.

It would be ideal to support this more properly, since consumers of a component library will install the library as a NPM dependency and don't care about where in Github the component is located, but how it can be imported through NPM. This applies also for MCP integration, where AI can't import a component from Github in all cases.

Lingua principale
TypeScript
Stelle
1.6k
Fork
126
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 figma/code-connect

Tutte le issue di figma/code-connect

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.