mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Raise every caret range to the current latest within its major, in the
root package.json, the pnpm-workspace.yaml catalog, the per-package
package.json files and the create plugin template.
Majors taken: eslint 10, @eslint/js 10, globals 17, nyc 18,
@types/express 5, @types/node 24, finalhandler 2, pidusage 4,
style-loader 4, css-loader 7, yargs 18 (all packages), chalk 6.
Majors skipped: mocha 12 (integration suite fails under it, 59 tests,
starting with a 30 s timeout in clusteriocontroller run; kept at
^11.8.0), inquirer (10+ is a rewrite on @inquirer/prompts where
ui.Prompt.prototype.close no longer exists, so the win32 readline
workaround in create.js would have to go and cannot be verified here),
react/antd/react-router-dom/@types/react, typescript 7,
@sinclair/typebox, webpack-merge (exact pin), webpack-dev-middleware,
webpack-manifest-plugin, winston-daily-rotate-file.
Code adaptations: the two /api/stream/:id handlers in routes.ts are
typed Request<{ id: string }> because @types/express 5 types
req.params values as string | string[]; eslint.config.mjs adds
newIsCapExceptions: ["constructor"] because eslint 10.10 new-cap now
reports `new this.constructor()`.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
101 lines
1.9 KiB
JSON
101 lines
1.9 KiB
JSON
{
|
|
"name": "__plugin_name__",
|
|
"version": "0.1.0",
|
|
"description": "Example Description. Package. Change me in package.json",
|
|
"type": "module",
|
|
//%if typescript
|
|
"main": "dist/node/index.js",
|
|
//%endif
|
|
//%if !typescript
|
|
"main": "index.js",
|
|
//%endif
|
|
"scripts": {
|
|
"prepare": "__prepare__"
|
|
},
|
|
"engines": {
|
|
"node": "__node_version__"
|
|
},
|
|
"peerDependencies": {
|
|
//%if controller
|
|
"@clusterio/controller": "^__clusterio_version__",
|
|
//%endif
|
|
//%if host
|
|
"@clusterio/host": "^__clusterio_version__",
|
|
//%endif
|
|
//%if ctl
|
|
"@clusterio/ctl": "^__clusterio_version__",
|
|
//%endif
|
|
"@clusterio/lib": "^__clusterio_version__"
|
|
},
|
|
//%if controller | host | ctl
|
|
"peerDependenciesMeta": {
|
|
//%endif
|
|
//%if controller
|
|
"@clusterio/controller": {
|
|
"optional": true
|
|
//%endif
|
|
//%if controller & host | controller & ctl
|
|
},
|
|
//%endif
|
|
//%if host
|
|
"@clusterio/host": {
|
|
"optional": true
|
|
//%endif
|
|
//%if host & ctl
|
|
},
|
|
//%endif
|
|
//%if ctl
|
|
"@clusterio/ctl": {
|
|
"optional": true
|
|
//%endif
|
|
//%if controller | host | ctl
|
|
}
|
|
},
|
|
//%endif
|
|
"devDependencies": {
|
|
//%// Typescript and type declarations
|
|
//%if typescript
|
|
"typescript": "^5.9.3",
|
|
"@types/node": "^24.13.4",
|
|
//%endif
|
|
//%if typescript & web
|
|
"@types/react": "^18.3.31",
|
|
//%endif
|
|
//%// Everything else
|
|
//%if web
|
|
"antd": "^5.29.3",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
//%endif
|
|
//%if webpack
|
|
"webpack": "^5.110.3",
|
|
"webpack-cli": "^7.2.3",
|
|
"webpack-merge": "^5.9.0",
|
|
//%endif
|
|
//%if controller
|
|
"@clusterio/controller": "^__clusterio_version__",
|
|
//%endif
|
|
//%if webpack
|
|
"@clusterio/web_ui": "^__clusterio_version__",
|
|
//%endif
|
|
//%if host
|
|
"@clusterio/host": "^__clusterio_version__",
|
|
//%endif
|
|
//%if ctl
|
|
"@clusterio/ctl": "^__clusterio_version__",
|
|
//%endif
|
|
"@clusterio/lib": "^__clusterio_version__"
|
|
},
|
|
"dependencies": {
|
|
"@sinclair/typebox": "^0.30.6"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"clusterio",
|
|
"clusterio-plugin",
|
|
"factorio"
|
|
]
|
|
}
|