{ "name": "zena-lang:wit-parser", "did": "did:plc:e5zdkdcj7jyovzalzclkwngr", "version": "0.0.1-preview.1", "description": "A WIT (WebAssembly Interface Types) parser, resolver and component encoder", "license": "MIT", "main": "wit", "files": [ "src" ], "exports": { "wit": {}, "parser": {}, "resolver": {}, "lexer": {}, "token": {}, "document": {}, "component-encoder": {}, "ast-json": {} }, "scripts": { "test": { "dependencies": [ "test:zena", "test:real-wit" ] }, "test:zena": { "#tests": "The lexer, the parser, the ported wasm-tools corpus and the component encoder, as Zena tests. The encoder tests need wasm-tools on PATH (the dev shell has it); regenerate their goldens with UPDATE_WIT_GOLDENS=1.", "type": "zena:test", "tests": "test/*_test.zena", "files": [ "test/**/*.zena", "test/fixtures/**" ], "dependencies": [ "../cli:build" ] }, "test:real-wit": { "#command": "The pinned real-world WIT corpus, which lives outside the repository: `/` is preopened because the Nix corpus is a store path, and a test under `zena test` gets only the repository, the standard library and a scratch directory.", "command": "cd ../.. && ./target/release/zena run --dir . --dir / packages/wit-parser/dev/parse-real-wit.zena --check", "files": [ "dev/parse-real-wit.zena", "dev/wit-corpus.json" ], "dependencies": [ "source", "../stdlib:lib", "../cli:build" ] } } }