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.
This commit is contained in:
2
examples/custom-components/next-env.d.ts
vendored
2
examples/custom-components/next-env.d.ts
vendored
@@ -2,4 +2,4 @@
|
|||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"_dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
|
"_dev": "cross-env NODE_OPTIONS=--no-deprecation next dev",
|
||||||
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
|
"build": "cross-env NODE_OPTIONS=--no-deprecation next build",
|
||||||
"dev": "cross-env PAYLOAD_SEED=true PAYLOAD_DROP_DATABASE=true NODE_OPTIONS=--no-deprecation next dev",
|
"dev": "cross-env NODE_OPTIONS=--no-deprecation pnpm seed && next dev",
|
||||||
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
|
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
|
||||||
"generate:schema": "payload-graphql generate:schema",
|
"generate:schema": "payload-graphql generate:schema",
|
||||||
"generate:types": "payload generate:types",
|
"generate:types": "payload generate:types",
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@payloadcms/db-mongodb": "latest",
|
"@payloadcms/db-mongodb": "latest",
|
||||||
|
"@payloadcms/graphql": "latest",
|
||||||
"@payloadcms/next": "latest",
|
"@payloadcms/next": "latest",
|
||||||
"@payloadcms/richtext-lexical": "latest",
|
"@payloadcms/richtext-lexical": "latest",
|
||||||
"@payloadcms/ui": "latest",
|
"@payloadcms/ui": "latest",
|
||||||
@@ -26,15 +27,14 @@
|
|||||||
"install": "^0.13.0",
|
"install": "^0.13.0",
|
||||||
"next": "^15.0.0",
|
"next": "^15.0.0",
|
||||||
"payload": "latest",
|
"payload": "latest",
|
||||||
"react": "19.0.0",
|
"react": "^19.0.0",
|
||||||
"react-dom": "19.0.0"
|
"react-dom": "^19.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@payloadcms/graphql": "latest",
|
|
||||||
"@swc/core": "^1.6.13",
|
"@swc/core": "^1.6.13",
|
||||||
"@types/ejs": "^3.1.5",
|
"@types/ejs": "^3.1.5",
|
||||||
"@types/react": "19.0.1",
|
"@types/react": "^19.0.0",
|
||||||
"@types/react-dom": "19.0.1",
|
"@types/react-dom": "^19.0.0",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-config-next": "^15.0.0",
|
"eslint-config-next": "^15.0.0",
|
||||||
"tsx": "^4.16.2",
|
"tsx": "^4.16.2",
|
||||||
|
|||||||
2559
examples/custom-components/pnpm-lock.yaml
generated
2559
examples/custom-components/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -38,9 +38,9 @@ export interface Config {
|
|||||||
user: User & {
|
user: User & {
|
||||||
collection: 'users';
|
collection: 'users';
|
||||||
};
|
};
|
||||||
jobs?: {
|
jobs: {
|
||||||
tasks: unknown;
|
tasks: unknown;
|
||||||
workflows?: unknown;
|
workflows: unknown;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
export interface UserAuthOperations {
|
export interface UserAuthOperations {
|
||||||
|
|||||||
Reference in New Issue
Block a user