mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-21 17:04:00 +00:00
Run with `pnpm --filter @expcluster/roles test`, using tap as the runner. The lua module is exercised for real: each test file runs in its own lua state, created on first use by the helper, with the factorio surface and the clusterio modules stubbed. The environment is passed to the chunk as an argument so no globals are involved. Covers lookups and comparisons, the permission checks, assignment with confirmation, rejection and local only roles, jail suppression, the sync entry points, and the holder listings, including a player holding a role in both the synced and the local list. The javascript side covers the message records round tripping through their schemas, the indexed permission encoding, and the seed: every permission it grants must be defined by exp_scenario, and every parent must exist and have its permissions carried into its children. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"name": "@expcluster/roles",
|
|
"version": "6.5.0",
|
|
"description": "Clusterio plugin providing syncing of in game roles.",
|
|
"author": "Cooldude2606 <https://github.com/Cooldude2606>",
|
|
"license": "MIT",
|
|
"repository": "explosivegaming/ExpCluster",
|
|
"main": "dist/node/index.js",
|
|
"scripts": {
|
|
"prepare": "tsc --build && webpack-cli --env production",
|
|
"test": "tap --disable-coverage --allow-empty-coverage test/*.test.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"peerDependencies": {
|
|
"@clusterio/controller": "workspace:^",
|
|
"@clusterio/host": "workspace:^",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@clusterio/web_ui": "workspace:^"
|
|
},
|
|
"devDependencies": {
|
|
"@ant-design/icons": "^6.2.3",
|
|
"@clusterio/controller": "workspace:^",
|
|
"@clusterio/host": "workspace:^",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@clusterio/web_ui": "workspace:^",
|
|
"@expcluster/scenario": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"antd": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-router-dom": "catalog:",
|
|
"typescript": "catalog:",
|
|
"webpack": "catalog:",
|
|
"fengari": "^0.1.5",
|
|
"tap": "^21.1.0",
|
|
"webpack-cli": "catalog:",
|
|
"webpack-merge": "catalog:"
|
|
},
|
|
"dependencies": {
|
|
"@sinclair/typebox": "catalog:"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"clusterio",
|
|
"clusterio-plugin",
|
|
"factorio"
|
|
]
|
|
}
|