-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ES2015 support to CLI #23
Conversation
I have no idea why execFile failed in travis |
t.plan(3); | ||
|
||
execFile('./cli.js', ['test/es2015.js'], { | ||
cwd: __dirname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cwd: path.resolve(__dirname, '..')
Awesome! Thanks for working on this :) Would you mind adding something about it to the readme too? |
Why did you remove the test? Can you fix the merge conflict? |
var updateNotifier = require('update-notifier'); | ||
|
||
try { | ||
require(resolveFrom('.', 'babel/register')); | ||
} catch (e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} catch (err) {
I will fix |
@sindresorhus I fixed conflicts |
Can you add back the test? We need a test to make sure it's working ok. |
var updateNotifier = require('update-notifier'); | ||
|
||
try { | ||
require(resolveFrom('.', 'babel/register')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be babel-core
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, should probably do both, in case users use plain babel
.
require(resolveFrom('.', 'babel-core/register') || resolveFrom('.', 'babel/register'));
Looks good. Thank you @andrepolischuk :) |
Thank you for review and comments |
🍻 |
Fix #20