mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Reorganise packages/lib
Move the majority of the script files into a src directory to be consistent with the organisation of the other packages.
This commit is contained in:
1 parent
bfe119eaa3
commit
bc574ee1cb
48 files changed
+41
-41
No files matched your search
+14
-14
@@ -1,15 +1,15 @@
|
|||||||
export * from "./config";
|
export * from "./src/config";
|
||||||
export * from "./data";
|
export * from "./src/data";
|
||||||
export * from "./errors";
|
export * from "./src/errors";
|
||||||
export * from "./factorio/exchange_string";
|
export * from "./src/factorio/exchange_string";
|
||||||
export * from "./helpers";
|
export * from "./src/helpers";
|
||||||
export * from "./ini";
|
export * from "./src/ini";
|
||||||
export * from "./link";
|
export * from "./src/link";
|
||||||
export * from "./logging";
|
export * from "./src/logging";
|
||||||
export * from "./plugin";
|
export * from "./src/plugin";
|
||||||
export * from "./schema";
|
export * from "./src/schema";
|
||||||
export * from "./users";
|
export * from "./src/users";
|
||||||
|
|
||||||
export { default as ExponentialBackoff } from "./ExponentialBackoff";
|
export { default as ExponentialBackoff } from "./src/ExponentialBackoff";
|
||||||
export { default as PlayerStats } from "./PlayerStats";
|
export { default as PlayerStats } from "./src/PlayerStats";
|
||||||
export { default as RateLimiter } from "./RateLimiter";
|
export { default as RateLimiter } from "./src/RateLimiter";
|
||||||
+25
-25
@@ -4,32 +4,32 @@
|
|||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
const libBuildMod = require("./build_mod");
|
const libBuildMod = require("./build_mod");
|
||||||
const libCommand = require("./command");
|
const libCommand = require("./src/command");
|
||||||
const libConfig = require("./config");
|
const libConfig = require("./src/config");
|
||||||
const libData = require("./data");
|
const libData = require("./src/data");
|
||||||
const libDatabase = require("./database");
|
const libDatabase = require("./src/database");
|
||||||
const libErrors = require("./errors");
|
const libErrors = require("./src/errors");
|
||||||
const libFactorio = require("./factorio");
|
const libFactorio = require("./src/factorio");
|
||||||
const libFileOps = require("./file_ops");
|
const libFileOps = require("./src/file_ops");
|
||||||
const libHash = require("./hash");
|
const libHash = require("./src/hash");
|
||||||
const libHelpers = require("./helpers");
|
const libHelpers = require("./src/helpers");
|
||||||
const libIni = require("./ini");
|
const libIni = require("./src/ini");
|
||||||
const libLink = require("./link");
|
const libLink = require("./src/link");
|
||||||
const libLogging = require("./logging");
|
const libLogging = require("./src/logging");
|
||||||
const libLoggingUtils = require("./logging_utils");
|
const libLoggingUtils = require("./src/logging_utils");
|
||||||
const libLuaTools = require("./lua_tools");
|
const libLuaTools = require("./src/lua_tools");
|
||||||
const libPlugin = require("./plugin");
|
const libPlugin = require("./src/plugin");
|
||||||
const libPluginLoader = require("./plugin_loader");
|
const libPluginLoader = require("./src/plugin_loader");
|
||||||
const libPrometheus = require("./prometheus");
|
const libPrometheus = require("./src/prometheus");
|
||||||
const libSchema = require("./schema");
|
const libSchema = require("./src/schema");
|
||||||
const libSharedCommands = require("./shared_commands");
|
const libSharedCommands = require("./src/shared_commands");
|
||||||
const libStream = require("./stream");
|
const libStream = require("./src/stream");
|
||||||
const libUsers = require("./users");
|
const libUsers = require("./src/users");
|
||||||
const libZipOps = require("./zip_ops");
|
const libZipOps = require("./src/zip_ops");
|
||||||
|
|
||||||
const ExponentialBackoff = require("./ExponentialBackoff");
|
const ExponentialBackoff = require("./src/ExponentialBackoff");
|
||||||
const PlayerStats = require("./PlayerStats");
|
const PlayerStats = require("./src/PlayerStats");
|
||||||
const RateLimiter = require("./RateLimiter");
|
const RateLimiter = require("./src/RateLimiter");
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,7 +6,7 @@ const Jimp = require("jimp");
|
|||||||
const JSZip = require("jszip");
|
const JSZip = require("jszip");
|
||||||
|
|
||||||
const libIni = require("../ini");
|
const libIni = require("../ini");
|
||||||
const libBuildMod = require("../build_mod");
|
const libBuildMod = require("../../build_mod");
|
||||||
const libZipOps = require("../zip_ops");
|
const libZipOps = require("../zip_ops");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,7 +35,7 @@ async function generateExportMod(server) {
|
|||||||
build: true,
|
build: true,
|
||||||
pack: true,
|
pack: true,
|
||||||
// XXX fix path when moving lib/factorio to host
|
// XXX fix path when moving lib/factorio to host
|
||||||
sourceDir: path.join(__dirname, "..", "..", "host", "lua", "export"),
|
sourceDir: path.join(__dirname, "..", "..", "..", "host", "lua", "export"),
|
||||||
outputDir: server.writePath("mods"),
|
outputDir: server.writePath("mods"),
|
||||||
bumpPatch: false,
|
bumpPatch: false,
|
||||||
factorioVersion: server.version.replace(/\.\d+$/, ""),
|
factorioVersion: server.version.replace(/\.\d+$/, ""),
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user