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.
47 lines
1.5 KiB
JSON
47 lines
1.5 KiB
JSON
{
|
|
"name": "payload-example-custom-fields",
|
|
"version": "1.0.0",
|
|
"description": "An example of custom fields in Payload.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"_dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
|
|
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
|
|
"dev": "cross-env NODE_OPTIONS=--no-deprecation pnpm seed && next dev",
|
|
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
|
|
"generate:schema": "payload-graphql generate:schema",
|
|
"generate:types": "payload generate:types",
|
|
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
|
|
"seed": "npm run payload migrate:fresh",
|
|
"start": "cross-env NODE_OPTIONS=--no-deprecation next start"
|
|
},
|
|
"dependencies": {
|
|
"@payloadcms/db-mongodb": "latest",
|
|
"@payloadcms/graphql": "latest",
|
|
"@payloadcms/next": "latest",
|
|
"@payloadcms/richtext-lexical": "latest",
|
|
"@payloadcms/ui": "latest",
|
|
"cross-env": "^7.0.3",
|
|
"dotenv": "^8.2.0",
|
|
"graphql": "^16.9.0",
|
|
"install": "^0.13.0",
|
|
"next": "^15.0.0",
|
|
"payload": "latest",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@swc/core": "^1.6.13",
|
|
"@types/ejs": "^3.1.5",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-next": "^15.0.0",
|
|
"tsx": "^4.16.2",
|
|
"typescript": "5.5.2"
|
|
},
|
|
"engines": {
|
|
"node": "^18.20.2 || >=20.9.0"
|
|
}
|
|
}
|