feat: add resource schemas and validation scripts
- Introduced new resource schemas for maps, scenarios, unit sets, and turn commands using Zod. - Implemented a script to generate JSON schemas from Zod schemas. - Added a validation script to ensure resource JSON files conform to their respective schemas. - Updated the logic package to export new resource schemas. - Added new dependencies for schema generation and validation. - Created a tools-scripts package for resource management tasks.
This commit is contained in:
+6
-2
@@ -13,7 +13,9 @@
|
||||
"build": "turbo build",
|
||||
"typecheck": "turbo typecheck",
|
||||
"dev": "turbo dev",
|
||||
"build:server": "pnpm --filter ./tools/build-scripts build:server --"
|
||||
"build:server": "pnpm --filter ./tools/build-scripts build:server --",
|
||||
"generate:resource-schemas": "pnpm --filter @sammo-ts/tools-scripts generate:resource-schemas",
|
||||
"validate:resources": "pnpm --filter @sammo-ts/tools-scripts validate:resources"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.2",
|
||||
@@ -27,9 +29,11 @@
|
||||
"globals": "^17.0.0",
|
||||
"prettier": "^3.7.4",
|
||||
"tsdown": "^0.18.4",
|
||||
"tsx": "^4.21.0",
|
||||
"turbo": "^2.7.2",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.51.0",
|
||||
"vue-eslint-parser": "^10.2.0"
|
||||
"vue-eslint-parser": "^10.2.0",
|
||||
"zod-to-json-schema": "^3.25.1"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user