Console: change __dirname to expected __dirname
- Langage dominant
- JavaScript
- Étoiles
- 1.6k
- Forks
- 179
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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`.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, node.js
- Domaine
- cli, tooling
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 65/100