tools
tools copied to clipboard
🐛 Missing colors when `rome` is spawned from `node`
Environment information
𝝺 rome rage
CLI:
Version: 10.0.0
Color support: true
Platform:
CPU Architecture: x86_64
OS: linux
Environment:
ROME_LOG_DIR: unset
NO_COLOR: unset
TERM: "alacritty"
Rome Configuration:
Status: loaded
Formatter disabled: false
Linter disabled: false
Workspace:
Open Documents: 0
Discovering running Rome servers...
Server:
Status: stopped
What happened?
Colors are missing when rome is spawned:
import { exec } from 'child_process';
export async function lint() {
const rome = "npx rome check ./src/js/**";
return new Promise((resolve, reject) => {
exec(rome, (error, stdout, stderr) => {
if (error) {
console.error(error);
reject(error);
}
console.log(stdout, stderr);
resolve();
});
});
}
Here is a link to discord conversation https://discordapp.com/channels/678763474494423051/1039887487167901757
Expected result
Should have colors : ) Thank you!
Code of Conduct
- [X] I agree to follow Rome's Code of Conduct