mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Change the expected exported name of plugin declarations to be "plugin" at the main entrypoint instead of the default export. This makes the plugin's code organisation more flexible especially when using CommonJS JavaScript modules as they can export additional symbols from the plugin declaration file.
19 lines
493 B
TypeScript
19 lines
493 B
TypeScript
import type * as lib from "@clusterio/lib";
|
|
|
|
import * as messages from "./messages";
|
|
|
|
export const plugin: lib.PluginDeclaration = {
|
|
name: "research_sync",
|
|
title: "Research Sync",
|
|
description: "Synchronises technology research progress between instances.",
|
|
instanceEntrypoint: "dist/plugin/instance",
|
|
controllerEntrypoint: "dist/plugin/controller",
|
|
|
|
messages: [
|
|
messages.ContributionEvent,
|
|
messages.ProgressEvent,
|
|
messages.FinishedEvent,
|
|
messages.SyncTechnologiesRequest,
|
|
],
|
|
};
|