Port global_chat plugin to typescript (#497)

* .js to .ts

* translate

* update paths to dist/plugin

* add "tsc --build" to prepare

* use field main in package.json de find info

* tsc --build need to append before webpack

* update test and use for plugins package.main
This commit is contained in:
Luciole authored and GitHub committed 2023-08-18 00:06:49 +02:00
1 parent 477b600b1b
commit 50f12c719b
26 files changed
+104 -102

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ ControllerConfigGroup.define({
});
ControllerConfigGroup.finalize();
module.exports = {
module.exports.default = {
name: "player_auth",
title: "Player Auth",
description: "Provides authentication to the cluster via logging into a Factorio server.",
+1
View File
@@ -6,6 +6,7 @@
"homepage": "https://github.com/clusterio/clusterio#readme",
"license": "MIT",
"repository": "clusterio/clusterio",
"main": "./info.js",
"scripts": {
"prepare": "webpack-cli --env production",
"test": "echo \"Error: run tests from root\" && exit 1"
+1 -1
View File
@@ -7,7 +7,7 @@ const mock = require("../../../test/mock");
const controller = require("../controller");
const instance = require("../instance");
const info = require("../info");
const info = require("../info").default;
const { FetchPlayerCodeRequest, SetVerifyCodeRequest } = require("../messages");
const lib = require("@clusterio/lib");