Commit graph

6 commits

Author SHA1 Message Date
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
715783dbf3 docs: add frontend conventions, CI/CD templates, and deployment scripts
- Frontend conventions document (setup, patterns, workflow)
- CI workflow template for GitHub Actions
- Staging deploy workflow template
- Plesk post-deploy script template

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 17:53:09 +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