mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Replace invokeHook and the per plugin on* methods with AsyncHook collections on the controller, host, instance, clusterioctl and web control objects. Plugin entrypoints export a default function that receives a load context and attaches handlers to the hooks it needs. Class exports still load through fromContext with a deprecation warning. The create templates and docs use the entrypoint function. This is clusterio/clusterio#921 recreated on top of master after the ESM migration and the PluginDeclaration permissions change. Closes #730 Co-Authored-By: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
40 lines
871 B
JSON
40 lines
871 B
JSON
{
|
|
"extends": "../../tsconfig.browser.json",
|
|
"include": [
|
|
"browser.ts",
|
|
"package.json",
|
|
"./src/api.ts",
|
|
"./src/AsyncHook.ts",
|
|
"./src/config/*.ts",
|
|
"./src/data/*.ts",
|
|
"./src/external/*.ts",
|
|
"./src/check_singleton_import.ts",
|
|
"./src/datastore.ts",
|
|
"./src/errors.ts",
|
|
"./src/export.ts",
|
|
"./src/factorio/exchange_string.ts",
|
|
"./src/helpers.ts",
|
|
"./src/hash.ts",
|
|
"./src/ini.ts",
|
|
"./src/is_deep_strict_equal.browser.ts",
|
|
"./src/link/*.ts",
|
|
"./src/lua_tools.ts",
|
|
"./src/logging.ts",
|
|
"./src/permissions.ts",
|
|
"./src/prometheus.ts",
|
|
"./src/loadPlugin.ts",
|
|
"./src/plugin.ts",
|
|
"./src/schema.ts",
|
|
"./src/subscriptions.ts",
|
|
"./src/zip_ops.ts",
|
|
"./src/file_ops.ts",
|
|
"./src/ExponentialBackoff.ts",
|
|
"./src/RateLimiter.ts",
|
|
"./src/TypedEventEmitter.ts",
|
|
"./src/ValueCache.ts",
|
|
],
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
}
|
|
}
|