@ 261107.31
current
{
    "name": "node-grpc-server",
    "version": "0.0.1",
    "private": true,
    "description": "A gRPC server whose same source runs in Node.js and as a WebAssembly component using jco-std",
    "type": "module",
    "scripts": {
        "generate": "buf lint && buf generate",
        "build": "pnpm run generate && jco componentize src/server.js --bundle --with-nodejs-http2-via direct --wit wit --out component.wasm",
        "transpile": "jco transpile component.wasm --instantiation async --async-mode jspi --async-exports '*' --no-wasi-shim --map jco:node/http2@0.1.0=jco:node/http2@0.1.0 --out-dir dist/transpiled",
        "serve": "node --experimental-wasm-jspi run-transpiled.js",
        "serve:node": "node serve-node.js",
        "run-transpiled": "node --experimental-wasm-jspi run-transpiled.js",
        "demo": "buf curl --schema proto --protocol grpc --http2-prior-knowledge --data '{\"name\":\"World\"}' http://127.0.0.1:3000/example.greeter.v1.GreeterService/Greet",
        "test": "node --test test/e2e.js",
        "all": "pnpm run build && pnpm run transpile && pnpm run test"
    },
    "dependencies": {
        "@bufbuild/protobuf": "2.14.1",
        "@bytecodealliance/jco-std": "^0.5.0",
        "@bytecodealliance/preview2-shim": "0.27.1",
        "@connectrpc/connect": "2.1.2"
    },
    "devDependencies": {
        "@bufbuild/buf": "1.72.0",
        "@bufbuild/protoc-gen-es": "2.14.1",
        "@bytecodealliance/jco": "1.40.0"
    },
    "engines": {
        "node": ">=24"
    }
}