Dependency analysis
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
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- javascript
- Ambito
- build-system, compilers
Direzione di ricerca
Inizia con l'esempio collegato res-dep-issue, confronta i suoi branch main e rescript-11-cjs e riproduci il problema di linking in stile pnpm. Poi leggi gli entry point dell'analisi delle dipendenze del compilatore e determina come dovrebbero essere verificate le dipendenze di package.json. Il lavoro è completato quando l'analisi proposta identifica in modo affidabile le dipendenze errate e offre un percorso chiaro per l'integrazione con Knip.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently it is very hard to analyze where a dependency will be imported, for example:
type t
@module("dep") external make: unit => t = "make"
let timeMake = () => {
Js.Console.timeStart("make")
let t = make()
Js.Console.timeEnd("make")
t
}
A consuming module may import dep directly, or it may not depending on which function is used and if there is an interface file.
If dependencies, devDependencies, and peerDependencies are not properly set this may become a problem for certain package manager setups. A small change could end up causing a runtime error. It could be particularly insidious if it is a rarely used or lazy loaded binding.
Due to the different dependency types often being misunderstood and the complexity of analysis, I believe ReScript should have the ability to check package.json dependencies for correctness.
I've had Claude create an example project here that failures when using pnpm style linking. The main branch uses ReScript 12 and ESM, but there is also a rescript-11-cjs branch for reference.
BTW it could be helpful if this feature was implemented in a way that we could integrate with Knip as a plugin
- Lingua principale
- OCaml
- Stelle
- 7.5k
- Fork
- 485
- Merge medio
- 1g 2h
- PR unite (30g)
- 55
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rescript-lang/rescript
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
rescript-lang/rescript#8659 · 2 commenti · 2 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
rescript-lang/rescript#8647 ·
-
rescript-lang/rescript#8632 · 1 assegnatario ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
rescript-lang/rescript#8624 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
rescript-lang/rescript#8596 · 2 commenti ·
Tutte le issue di rescript-lang/rescript
Issue simili
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
kubernetes-sigs/prow#953 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
zephyrproject-rtos/zephyr#119726 ·
-
out-of-date
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
CachyOS/CachyOS-PKGBUILDS#1894 ·
-
comp/dashboard P3 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
NousResearch/hermes-agent#117722 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
objectionary/jeo-maven-plugin#1760 ·