Skip to content

Commit 9f5ffed

Browse files
authored
chore(examples): bumps custom components example to latest and runs seed on init (#10661)
The custom components example no longer ran seed on init. This is done through a preconfigured migration script that automatically runs on startup. The `@payloadcms/graphql` package was also incorrectly installed as a dev dependency and the lockfile was significantly out of date. The `react` and `react-dom` packages were also pinned to v19.0.0, with their corresponding types packages to v19.0.1. These now all match as expected and are identified using the caret operator to ensure the latest versions are installed.
1 parent ef44bdd commit 9f5ffed

File tree

4 files changed

+1347
-1232
lines changed

4 files changed

+1347
-1232
lines changed

examples/custom-components/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

examples/custom-components/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"_dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
99
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
10-
"dev": "cross-env PAYLOAD_SEED=true PAYLOAD_DROP_DATABASE=true NODE_OPTIONS=--no-deprecation next dev",
10+
"dev": "cross-env NODE_OPTIONS=--no-deprecation pnpm seed && next dev",
1111
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
1212
"generate:schema": "payload-graphql generate:schema",
1313
"generate:types": "payload generate:types",
@@ -17,6 +17,7 @@
1717
},
1818
"dependencies": {
1919
"@payloadcms/db-mongodb": "latest",
20+
"@payloadcms/graphql": "latest",
2021
"@payloadcms/next": "latest",
2122
"@payloadcms/richtext-lexical": "latest",
2223
"@payloadcms/ui": "latest",
@@ -26,15 +27,14 @@
2627
"install": "^0.13.0",
2728
"next": "^15.0.0",
2829
"payload": "latest",
29-
"react": "19.0.0",
30-
"react-dom": "19.0.0"
30+
"react": "^19.0.0",
31+
"react-dom": "^19.0.0"
3132
},
3233
"devDependencies": {
33-
"@payloadcms/graphql": "latest",
3434
"@swc/core": "^1.6.13",
3535
"@types/ejs": "^3.1.5",
36-
"@types/react": "19.0.1",
37-
"@types/react-dom": "19.0.1",
36+
"@types/react": "^19.0.0",
37+
"@types/react-dom": "^19.0.0",
3838
"eslint": "^8.57.0",
3939
"eslint-config-next": "^15.0.0",
4040
"tsx": "^4.16.2",

0 commit comments

Comments
 (0)