Validates WIT definitions for changed proposals. Used by the CI workflow.
- Node.js
- Wasm-tools
- wit-deps
# Validate specific proposals by simulating changed files
WIT_FILES='["proposals/cli/wit/command.wit"]' node .github/scripts/validate-proposals.js
# Validate multiple proposals
WIT_FILES='["proposals/cli/wit/command.wit", "proposals/http/wit/worlds.wit"]' node .github/scripts/validate-proposals.js| Variable | Description |
|---|---|
WIT_FILES |
JSON array of changed files in proposals/*/wit/** |
- wit-deps lock - If
deps.tomlexists, checks thatdeps.lockis up to date - WIT syntax - Parses WIT files with
Wasm-tools component wit - Wasm encoding - Validates Wasm binary encoding with
--Wasmflag