CrabDude / babel-node-debug

node-inspector's node-debug using babel-node
MIT License
91 stars 11 forks source link

Doesn't appear to be reading my .babelrc #8

Open krainboltgreene opened 8 years ago

krainboltgreene commented 8 years ago

For some reason it's not reading my babelrc file, so it doesn't know what to do with my syntax :(

krainboltgreene commented 8 years ago

So it's not the issue I thought it was (bug with babel-node) but I am having odd issues.

CrabDude commented 8 years ago

This is almost certainly related to babel-node-debug using its locally installed babel dependency, which probably detects .babelrc relative to babel-node-debug/ instead of $PWD. I'm not sure when I'll be able to get to this (Christmas), but it's probably a simple fix.

Thanks for reporting!

CrabDude commented 8 years ago

If my suspicion is correct (still need to verify), might be possible to spawn a child process with the properly set cwd:

spawn('bash', ['-i'], {
  cwd: new_cwd,
  env: new_env,
  stdio: 'inherit'
});
ChrisCinelli commented 8 years ago

Did you fix this ? =)

CrabDude commented 8 years ago

Don't remember. I'll take a look.