Remove .js suffix in require paths

Remove the .js suffix in require paths to make requires consistent
across the project.
This commit is contained in:
Hornwitser committed 2019-10-28 19:45:34 +01:00
1 parent 6bde8a2219
commit ff3fc3b94b
14 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -12,5 +12,5 @@ module.exports = ({config} = {}) => ({
arg1 is the instanceID
Promise resolves with a string, either the displayName or instanceID if not found.
*/
getInstanceName: require("./getInstanceName.js")(config),
getInstanceName: require("./getInstanceName")(config),
})
+1 -1
View File
@@ -1 +1 @@
module.exports = require("./isFactorioCommand.js");
module.exports = require("./isFactorioCommand");
+1 -1
View File
@@ -36,7 +36,7 @@ modManager.listMods(config, instance);
*/
async function listMods(config, instance) {
return new Promise((resolve, reject) => {
const instances = require("./../getInstances.js")(config).sync();
const instances = require("./../getInstances")(config).sync();
if (instances.includes(instance.name)) {
factorioAPI.init(false, instance.path("instanceMods"), instance.path("saves"), config.factorio_version);
factorioAPI.authenticate({