diff --git a/packages/controller/package.json b/packages/controller/package.json index c98eca33..6f7dda66 100644 --- a/packages/controller/package.json +++ b/packages/controller/package.json @@ -1,8 +1,10 @@ { "name": "@clusterio/controller", "description": "Implementation of Clusterio controller", - "author": "Hornwitser", + "author": "Hornwitser ", + "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "version": "2.0.0-alpha.27", "main": "dist/node/index.js", "scripts": { diff --git a/packages/create/package.json b/packages/create/package.json index 258e74c5..5ba79e29 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -1,8 +1,10 @@ { "name": "@clusterio/create", "description": "Installer for clusterio", - "author": "Hornwitser", + "author": "Hornwitser ", + "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "version": "2.0.0-alpha.27", "main": "create.js", "bin": { diff --git a/packages/ctl/package.json b/packages/ctl/package.json index 700998c8..c038cff6 100644 --- a/packages/ctl/package.json +++ b/packages/ctl/package.json @@ -1,8 +1,10 @@ { "name": "@clusterio/ctl", "description": "Clusterio command line management tool", - "author": "Hornwitser", + "author": "Hornwitser ", + "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "version": "2.0.0-alpha.27", "main": "dist/node/index.js", "scripts": { @@ -25,12 +27,12 @@ "winston": "catalog:", "yargs": "^17.7.2" }, - "publishConfig": { - "access": "public" - }, "devDependencies": { "@types/node": "catalog:", "@types/yargs": "^17.0.33", "typescript": "catalog:" + }, + "publishConfig": { + "access": "public" } } diff --git a/packages/host/package.json b/packages/host/package.json index 3a3979de..1fba31ae 100644 --- a/packages/host/package.json +++ b/packages/host/package.json @@ -1,8 +1,10 @@ { "name": "@clusterio/host", "description": "Implementation of Clusterio host server", - "author": "Hornwitser", + "author": "Hornwitser ", + "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "version": "2.0.0-alpha.27", "main": "dist/node/index.js", "scripts": { diff --git a/packages/lib/package.json b/packages/lib/package.json index 009cbd1e..b0fcfd7b 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -1,9 +1,11 @@ { "name": "@clusterio/lib", "description": "Shared library for Clusterio", - "version": "2.0.0-alpha.27", - "repository": "https://github.com/clusterio/clusterio", + "author": "Hornwitser ", + "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, + "version": "2.0.0-alpha.27", "scripts": { "prepare": "tsc --build && pnpm run compile_validator", "compile_validator": "node scripts/compile_validator.js" @@ -15,7 +17,7 @@ "factorio" ], "engines": { - "node": ">=12" + "node": ">=22" }, "dependencies": { "@sinclair/typebox": "catalog:", diff --git a/packages/web_ui/package.json b/packages/web_ui/package.json index 681b4c2e..f6e1da45 100644 --- a/packages/web_ui/package.json +++ b/packages/web_ui/package.json @@ -3,6 +3,7 @@ "description": "Clusterio web interface implementation", "author": "Hornwitser", "license": "MIT", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "version": "2.0.0-alpha.27", "browser": "src/index.ts", "main": "dist/browser/src/index.js", @@ -49,12 +50,12 @@ "webpack-cli": "^5.1.4", "webpack-manifest-plugin": "^5.0.0" }, - "publishConfig": { - "access": "public" - }, "devDependencies": { "@types/node": "^20.17.19", "@types/react": "^18.3.18", "@types/react-dom": "^18.3.5" + }, + "publishConfig": { + "access": "public" } } diff --git a/plugins/global_chat/package.json b/plugins/global_chat/package.json index a3a55b27..8143a9dc 100644 --- a/plugins/global_chat/package.json +++ b/plugins/global_chat/package.json @@ -5,7 +5,7 @@ "author": "Hornwitser ", "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", - "repository": "clusterio/clusterio", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "main": "dist/node/index.js", "keywords": [ "clusterio", diff --git a/plugins/inventory_sync/package.json b/plugins/inventory_sync/package.json index 82b0ae1d..bf029786 100644 --- a/plugins/inventory_sync/package.json +++ b/plugins/inventory_sync/package.json @@ -3,9 +3,9 @@ "version": "2.0.0-alpha.27", "description": "Clusterio plugin forwarding between Factorio servers", "author": "Danielv ", - "homepage": "https://github.com/clusterio/factorioClusterio#readme", + "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", - "repository": "clusterio/factorioClusterio", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "main": "dist/node/index.js", "keywords": [ "clusterio", diff --git a/plugins/player_auth/package.json b/plugins/player_auth/package.json index 92edcf38..1c0b40a6 100644 --- a/plugins/player_auth/package.json +++ b/plugins/player_auth/package.json @@ -5,7 +5,7 @@ "author": "Hornwitser ", "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", - "repository": "clusterio/clusterio", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "main": "dist/node/index.js", "keywords": [ "clusterio", diff --git a/plugins/research_sync/package.json b/plugins/research_sync/package.json index 07f796ac..08cf2b66 100644 --- a/plugins/research_sync/package.json +++ b/plugins/research_sync/package.json @@ -5,7 +5,7 @@ "author": "Hornwitser ", "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", - "repository": "clusterio/clusterio", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "main": "dist/node/index.js", "keywords": [ "clusterio", diff --git a/plugins/statistics_exporter/package.json b/plugins/statistics_exporter/package.json index 1fe56deb..ed6fc78e 100644 --- a/plugins/statistics_exporter/package.json +++ b/plugins/statistics_exporter/package.json @@ -5,7 +5,7 @@ "author": "Hornwitser ", "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", - "repository": "clusterio/clusterio", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "main": "dist/node/index.js", "keywords": [ "clusterio", diff --git a/plugins/subspace_storage/package.json b/plugins/subspace_storage/package.json index d7e6750e..82e43d46 100644 --- a/plugins/subspace_storage/package.json +++ b/plugins/subspace_storage/package.json @@ -5,7 +5,7 @@ "author": "Hornwitser ", "homepage": "https://github.com/clusterio/clusterio#readme", "license": "MIT", - "repository": "clusterio/clusterio", + "repository": { "type": "git", "url": "https://github.com/clusterio/clusterio" }, "main": "dist/node/index.js", "keywords": [ "clusterio", diff --git a/publish.js b/publish.js index 21395c83..80c81a7c 100644 --- a/publish.js +++ b/publish.js @@ -42,9 +42,9 @@ async function uploadModRelease(file, name) { return; } - const headers = { + const headers = new Headers({ Authorization: `Bearer ${process.env.FACTORIO_TOKEN}`, - }; + }); // Start the upload process by requesting an upload url const initFormData = new FormData();