Console: change __dirname to expected __dirname
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.6k
- Forks
- 179
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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`.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- cli, tooling
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 65/100