Skip to content

Commit 2769747

Browse files
committed
fix(nx-payload): add type module package.json to generated app
1 parent 0dab6b3 commit 2769747

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/nx-payload/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ The types can be distributed to the client developer manually or saved to a shar
316316
> nx payload [app-name] generate:types
317317
> nx payload-graphql [app-name] generate:schema
318318
> ```
319+
>
320+
> The generated app includes a `package.json` with `"type": "module"` to ensure the Payload config loads as ESM when running CLI targets on Node ≥ 20.11. If your workspace root `package.json` already has `"type": "module"`, this file is redundant but harmless.
319321
320322
### Troubleshooting
321323
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

0 commit comments

Comments
 (0)