-
Notifications
You must be signed in to change notification settings - Fork 14
feat(cca): Update tsconfig and jsconfig to support require(ESM) #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for cedarjs canceled.
|
Greptile SummaryUpdated TypeScript and JavaScript compiler configurations across all project templates and fixtures to align with Node.js 24 requirements. The changes update Key Changes:
Impact: Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant TS as TypeScript Compiler
participant Node as Node.js 24
participant ESM as ES Module Package
Dev->>TS: Write code with require() for ESM
Note over TS: Uses module: "Node20"<br/>target: "ES2024"<br/>moduleResolution: "Node16"
TS->>TS: Validates module syntax
TS->>Dev: Type checking passes
Dev->>Node: Run script/API code
Node->>ESM: require(ESM) synchronously
Note over Node: Node 24+ supports<br/>require() for ESM modules<br/>(without top-level await)
ESM->>Node: Module loaded
Node->>Dev: Execution succeeds
|
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build |
✅ Succeeded | 3m 32s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-01-01 21:01:06 UTC
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build |
✅ Succeeded | 2m 32s | View ↗ |
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 41s | View ↗ |
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 6s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 6s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-12-31 13:55:53 UTC

Update tsconfig and jsconfig for the api side and for scripts to align with the fact that we now require Node 24. This lets TS know that it's safe to require ES modules, allowing both scripts and the api side to use modern esm packages.
If you're upgrading to this version of Cedar we recommend you manually update your
tsconfig.json/jsconfig.jsonfiles inapi/andscripts/.Docs on
"module": "node20"microsoft/TypeScript#60761
https://www.typescriptlang.org/tsconfig/#node16node18node20nodenext