mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
The template asked for TypeBox ^0.30.6 while lib uses ^0.34, so a new plugin failed tsc on the first message class. TypeBox is now provided to plugin web code through the import map, so the template should be on the version the web interface ships. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
99 lines
1.8 KiB
JSON
99 lines
1.8 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 web_build
|
|
"vite": "^8.3.4",
|
|
//%endif
|
|
//%if controller
|
|
"@clusterio/controller": "^__clusterio_version__",
|
|
//%endif
|
|
//%if web_build
|
|
"@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.34.52"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"clusterio",
|
|
"clusterio-plugin",
|
|
"factorio"
|
|
]
|
|
}
|