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
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:
co-authored by
Claude Opus 5.5
parent
66b169cf06
commit
a3d6cbe404
@@ -24,7 +24,7 @@ A tulajdonos 2026-09-29-én döntött:
|
||||
- PostgreSQL 16 szolgáltatás a staging és a prod Compose-ban, csak belső hálózaton;
|
||||
- új változó: `DATABASE_URI` (a `MONGODB_URI` helyett);
|
||||
- a `deploy.sh` a deploy előtt `pg_dump` mentést készít.
|
||||
- **Eszközök:** a Payload parancssori eszköze helyben `npx node@22`-vel fut (a Node 26-os `ERR_REQUIRE_ASYNC_MODULE` hiba miatt). A konténer Node 20-at használ, ott nincs változás.
|
||||
- **Eszközök:** `"type": "module"` a `proto/package.json`-ban (a CommonJS jest-fájlok `.cjs`-re nevezve). Ezzel a Payload parancssori eszköze Node 26-on is működik; az `ERR_REQUIRE_ASYNC_MODULE` oka a CommonJS-betöltés volt, nem a Node-verzió.
|
||||
- **Kivezetés:** a halott `src/lib/mongodb.ts`, a `mongodb` és a `@payloadcms/db-mongodb` csomag, a Mongo-utánzatos tesztek, valamint a MongoDB-szolgáltatás a Compose-ból egy kiadással később, sikeres ellenőrzés után.
|
||||
- **Dokumentáció:** `CLAUDE.md` (stack, környezeti változók), `.agent/steering/architecture.md`, `DOCKER.md`, `deploy.md`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user