-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Livescript support broken #3017
Comments
To clearify even further: Should be (or at least it should respect the package.json settings?) |
What version of sails? |
RC1, possible RC2 as well |
@borestad To clarify, did you see this working before RC1? Looking through the commit history of Livescript, I don't see that there was ever an |
Closing this, should be fixed by cc39522. |
Hi.
I know that the dirty patch in #2662 I submitted was refactored and enhanced. Great work!
Although, in the latest RC1, it seems broken.
Test case:
Convert ./config/routes.js to ./config/routes.ls
Something like this:
When running
sails lift
this results in:It seems like the path to the index.js file is wrong:
https://github.com/balderdashy/sails/blob/master/lib/hooks/moduleloader/index.js#L100
From my understanding, node & require should respect the "main" property here in the package.json, but it seems it doesn't.
https://github.com/gkz/LiveScript/blob/master/package.json#L35
My dirty fix right now:
cd node_modules/livescript && ln -s lib/index.js index.js
but maybe sails should change the required file to become
require: 'LiveScript/lib/index'
instead.This bug accurs with this setup:
The text was updated successfully, but these errors were encountered: