mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
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:
1 parent
6bde8a2219
commit
ff3fc3b94b
14 files changed
+21
-21
No files matched your search
@@ -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 @@
|
||||
module.exports = require("./isFactorioCommand.js");
|
||||
module.exports = require("./isFactorioCommand");
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user