Mobrovac has submitted this change and it was merged.
Change subject: Do not use the relative './node_modules' path in require
......................................................................
Do not use the relative './node_modules' path in require
This just creates confusion in the deploy repo as it cannot find the
path in the expected place. Either way, the correct way to require a
dependency's sub-resource is to use 'mod_name/sub-path', as node
searches all parent directories for 'node_modules/mod_name'
automatically.
Change-Id: I620392da7292e30eb0c9ddad26339844268df447
---
M app.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Mobrovac: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/app.js b/app.js
index 1047474..76dec28 100644
--- a/app.js
+++ b/app.js
@@ -14,7 +14,7 @@
var fs = BBPromise.promisifyAll(require('fs'));
var sUtil = require('./lib/util');
var packageInfo = require('./package.json');
-var mjAPI = require("./node_modules/MathJax-node/lib/mj-single.js");
+var mjAPI = require("MathJax-node/lib/mj-single.js");
/**
--
To view, visit https://gerrit.wikimedia.org/r/218866
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I620392da7292e30eb0c9ddad26339844268df447
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mathoid
Gerrit-Branch: master
Gerrit-Owner: Mobrovac <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits