Commit graph

7 commits

Author SHA1 Message Date
381bc291a0 fix: remove tsx from optionalDependencies to fix Plesk deploys
tsx's esbuild postinstall fails in Plesk's nodenv sub-shell context
because npm git dep preparation spawns `sh -c node install.js` which
doesn't inherit the PATH set in deploy actions.

Fix: Remove tsx entirely (only needed on sv-payload for `pnpm extract`,
where it's available via npx). Also updates extracted types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 11:22:30 +00:00
d4e1ef1035 feat: add work-order orchestration scripts (Phase 3)
- create-work-order.sh: auto-fills CMS commit, date, contracts version
- execute-work-order.sh: updates contracts on sv-frontend, provides
  implementation instructions for Claude Code
- Updated CLAUDE.md with complete work order lifecycle documentation
- Added pnpm shortcuts: wo:create, wo:execute

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 22:30:57 +00:00
a6b8a0f914 fix: restore devDependencies with tsx as optional
Move typescript and @types/react back to devDependencies (safe, pure JS).
Keep tsx in optionalDependencies since its esbuild dep fails on Plesk's
nodenv environment during npm git dependency installation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 19:55:20 +00:00
d49ccf366b fix: remove devDependencies to fix npm git dep install on Plesk
npm installs devDeps (--include=dev) when preparing git dependencies.
esbuild (via tsx) has native install script that fails on Plesk nodenv.
Since this package exports TypeScript source files directly, no build
tools are needed at install time.

devDependencies (typescript, tsx, @types/react) are only needed for
local development on sv-payload and can be installed manually.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 19:39:41 +00:00
c1fd514ce8 fix: add prepare/preinstall no-ops for npm git dep compatibility
npm runs install+prepare when cloning git deps. Plesk servers with
nodenv can't resolve 'node' during this phase, causing esbuild's
install.js to fail. Adding no-op scripts prevents this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 19:37:45 +00:00
64847594b2 fix: point exports to TypeScript source for Git dependency consumers
Git dependencies don't run prepublishOnly, so dist/ never exists.
Point all exports directly to src/*.ts files since Next.js/Turbopack
handles TypeScript natively.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 00:31:04 +00:00
774d7bc402 feat: initial payload-contracts package
Shared TypeScript types, API client, and block registry for
coordinated CMS-to-frontend development across all tenants.

- Type extraction script from payload-types.ts (12,782 lines)
- 39 frontend collection types, 42 block types
- createPayloadClient() with tenant isolation
- createBlockRenderer() for type-safe block mapping
- Media helpers (getImageUrl, getSrcSet)
- Work order system for cross-server coordination
- Block catalog documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 17:51:40 +00:00