Skip to main content
Glama
run_pnpm_script.py689 B
#!/usr/bin/env python3 """ Runs a Pnpm script """ import argparse import subprocess import sys if __name__ == "__main__": parser = argparse.ArgumentParser(description=__doc__) parser.add_argument( "--package-dir", help="Path to the workspace member package", ) parser.add_argument( "script", help="Pnpm script to invoke", ) parser.add_argument( "args", help="Extra arguments passed to the Pnpm run script", nargs=argparse.REMAINDER, ) args = parser.parse_args() cmd = ["pnpm", "run", args.script] + args.args exit_code = subprocess.call(cmd, cwd=args.package_dir) sys.exit(exit_code)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server