@artale/pi-builder
v1.0.0
Published
Extension builder for Pi. Scaffold, build, test, and publish Pi extensions from a single command. The tool that built 82 packages.
Readme
pi-builder
Extension builder for Pi. Scaffold, validate, and publish Pi extensions from inside Pi.
The tool that built 82+ packages, productized.
Install
pi install npm:@artale/pi-builderCommands
/build new <name> [--desc "..."] — scaffold a new extension
/build validate [dir] — validate structure + API usage
/build publish [dir] — git init + GitHub repo + npm publish
/build audit [dir] — deep validation
/build list — list your published packagesWhat /build new creates
pi-myext/
├── package.json # name, version, pi-package keyword, pi config
├── src/extension.ts # working template with addCommand + addTool
├── tsconfig.json # ES2022, bundler resolution
└── README.md # install instructionsWhat /build validate checks
- ✅ package.json exists and is valid
- ✅
pi-packagekeyword present - ✅ Extension file exists
- ✅
export default functionpresent - ✅ No old API usage (registerCommand/registerTool)
- ✅ Proper imports
- ⚠️ Missing README, tsconfig
- ℹ️ Line count, commands, tools, events
What /build publish does
- Validates the extension
git init+git add -A+git commitgh repo create(public, push)npm publish --access public
All in one command.
Tools
builder_scaffold— create extension projectbuilder_validate— validate extensionbuilder_publish— publish to npm
The workflow
/build new pi-awesome --desc "Something awesome"
# Edit src/extension.ts
/build validate ~/Projects/pi-awesome
/build publish ~/Projects/pi-awesomeThree commands. Scaffold → code → ship.
License
MIT
