Hi,
In one of my NPM pakages which is designed to be compatible with both
MarkLogic and Node (which is sometimes difficult, especially that require()
does not look in node_modules/), I use the usual idiom to access the
package.json file:
const pkg = require('../package.json');
But trying that in MarkLogic results in the following error:
XDMP-NOEXECUTE: const pkg = require('../package.json'); -- Document is not
of executable mimetype. URI: ../package.json
Any idea how we can adapt this idiom to the way require() works on
MarkLogic? (and still be compatible with Node)
Regards,
--
Florent Georges
H2O Consulting
http://h2o.consulting/
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general