feat: add NPX CLI and OpenClaw build pipeline, optimize npm package size

Adds esbuild steps for npx-cli (57KB, Node.js ESM) and openclaw plugin
(12KB). Creates .npmignore to exclude node_modules and Bun binary from
npm package, reducing pack size from 146MB to 2MB.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alex Newman
2026-02-26 23:56:34 -05:00
parent 85eb796b18
commit 3a09c1bb1a
5 changed files with 129 additions and 7 deletions
+11 -1
View File
@@ -42,7 +42,17 @@
},
"files": [
"dist",
"plugin"
"plugin/.claude-plugin",
"plugin/CLAUDE.md",
"plugin/package.json",
"plugin/hooks",
"plugin/modes",
"plugin/scripts/*.js",
"plugin/scripts/*.cjs",
"plugin/scripts/CLAUDE.md",
"plugin/skills",
"plugin/ui",
"openclaw"
],
"engines": {
"node": ">=18.0.0",