Console: change __dirname to expected __dirname
- Lingua principale
- JavaScript
- Stelle
- 1.6k
- Fork
- 179
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Problem: when running `rw c` or `rw c "script"`, the `__dirname` is `/path/to/project/node_modules/compound/lib/server`.
Expected: `__dirname === /path/to/project`
Current workaround: `var dirname = './'`, since `./` points to the correct local dir.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Look at the console command implementation, likely in a file like `lib/server/console.js` or `lib/compound.js`. Find where `__dirname` is used or where the script execution context is set. The goal is to ensure the working directory for scripts run via `rw c` is the project root. Test by running a script that logs `__dirname`.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- cli, tooling
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 65/100