Currently, I am in the process of creating the definition file for jquery-colorbox. To achieve this, I am running the following command from the root of my project:
dts-gen -m jquery-colorbox
Unfortunately, this command is failing with the following error:
Unexpected crash! Please log a bug with the commandline you specified.
/usr/local/lib/node_modules/dts-gen/bin/lib/run.js:130
throw e;
^
ReferenceError: jQuery is not defined
at Object.<anonymous> (/home/adr/Projects/albums/node_modules/jquery-colorbox/jquery.colorbox.js:1105:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/dts-gen/bin/lib/run.js:57:67)
at Module._compile (module.js:653:30)
I do have both jQuery and other necessary libraries installed globally and locally. How can I instruct dts-gen to recognize and utilize jQuery?