Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/pnpm"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["pnpm","link"], {});
console.log(JSON.stringify(result));From the command line
$ mark pnpm link
As data, in a program
{ "$proc": ["pnpm", "link"], "input": {} }JSON Schemas
{
"input": {
"type": "object",
"properties": {
"path": {
"description": "Path to package to link. If not provided, links current directory globally",
"type": "string"
},
"global": {
"description": "Link globally",
"type": "boolean"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"timeout": {
"description": "Timeout in milliseconds",
"type": "number"
}
}
},
"output": {
"type": "object",
"properties": {
"exitCode": {
"type": "number",
"description": "The exit code of pnpm (0 is success)"
},
"stdout": {
"type": "string",
"description": "The standard output of pnpm"
},
"stderr": {
"type": "string",
"description": "The standard error of pnpm"
},
"success": {
"type": "boolean",
"description": "True when the exit code is 0"
},
"duration": {
"type": "number",
"description": "The time of the command, in milliseconds"
}
},
"required": [
"exitCode",
"stdout",
"stderr",
"success",
"duration"
],
"additionalProperties": {}
}
}