build(proto): mark the package as ESM so the Payload CLI loads the config (MITHOME-136)
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s

The Payload CLI failed with ERR_REQUIRE_ASYNC_MODULE on Node 22 and 26 alike:
without "type": "module" it loaded payload.config.ts as CommonJS and could
not require the top-level-await ESM @payloadcms/richtext-lexical. Following
the official Payload template: "type": "module", CommonJS jest files and the
content schema renamed to .cjs, ESLint globs updated. Next's standalone
server.js is ESM and starts; 516 unit tests, tsc, lint and build are green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 21:55:31 +02:00
co-authored by Claude Opus 5.5
parent 66b169cf06
commit a3d6cbe404
17 changed files with 29 additions and 25 deletions
@@ -2,7 +2,7 @@
## 1. Eszközök és illesztő
- [ ] 1.1 `payload:node22` npm script (D2); a típus- és import-map-generálás erre áll át. Ellenőrzés: a `generate:types` és a `migrate:status` fut helyben.
- [x] 1.1 `"type": "module"`, a CommonJS jest-fájlok és a `schema` `.cjs`-re nevezve, az ESLint-globok frissítve (D2). Ellenőrzés: a `payload migrate:status` betölti a configot; 516 unit teszt, tsc, lint, build és a `standalone` `server.js` indítása zöld.
- [ ] 1.2 `@payloadcms/db-postgres` (Payload-verzióval azonos), `postgresAdapter({ idType: 'uuid', push: false })`, `DATABASE_URI`. Ellenőrzés: `tsc`, `npm test`.
- [ ] 1.3 Kiinduló migráció (`migrate:create initial`), új `src/migrations/index.ts`; a 8 Mongo-migráció, a `migrate-global-docs`, a `localize-paths`, a `mongodb.ts` és a fake-Mongo tesztek törlése. Ellenőrzés: eldobható PostgreSQL-en a migráció kétszer fut, a második 0 lépés.