Closed bjrmatos closed 8 years ago
Ouch, I will check it on npm 2 and probably release hotfix 0.10.1 for this in the evening. Thank you.
I am preparing hotfix 0.10.1 with required changes. It should be live in a hour.
excellent! i'll continue testing later to see if there are other little bugs
It is in npm now. Works for me on both npm 2 and 3. You can reopen if it won't work for you.
i was testing lastest jsreport (0.10) and found some cases where auto-discovery is not working..
1.- not working with jsreport installation instructions, so i have created a directory named
jsreport-playground
, thennpm install jsreport --save
,node node_modules/jsreport --init
,node server.js
, results -> Found 0 extensions (i haved added someconsole.log
to see what is happening)the bug is caused by this line, and can be solved by changing the condition to:
the solution is tested in npm 2 not sure if it will work in npm 3
2.- in the same app (
jsreport-playground
), currently if i need to install an additional extension to the app, jsreport doesn't recognize the extension listed in my app, only recognize extensions inside its node_modules (jsreport-playground/node_modules/jsreport/node_modules
).. is the right behavior?i think jsreport should recognize the extensions inside the application dependencies, if i'm not wrong jsreport was doing that in previous versions, must be a bug introduced by the split of jsreport, jsreport-core..
i think we should test very carefully if the auto-discovery feature (with jsreport-core and jsreport) works in npm 2 and 3 (since npm3 change the way to install node modules) , i only have tested in npm 2..