diff --git a/.changeset/rotten-vans-vanish.md b/.changeset/rotten-vans-vanish.md new file mode 100644 index 00000000000..6f7ac3aee71 --- /dev/null +++ b/.changeset/rotten-vans-vanish.md @@ -0,0 +1,5 @@ +--- +"@keystone-6/core": major +--- + +Removed deprecated option from `postinstall` script diff --git a/packages/core/src/scripts/cli.ts b/packages/core/src/scripts/cli.ts index 45920da7a6b..8bda144b5ed 100644 --- a/packages/core/src/scripts/cli.ts +++ b/packages/core/src/scripts/cli.ts @@ -9,7 +9,6 @@ import { telemetry } from './telemetry' export type Flags = { dbPush: boolean - fix: boolean // TODO: deprecated, remove in breaking change frozen: boolean prisma: boolean server: boolean @@ -58,9 +57,6 @@ export async function cli (cwd: string, argv: string[]) { prisma use prisma commands in a Keystone context Options - --fix (postinstall) @deprecated - do build the graphql or prisma schemas, don't validate them - --frozen (build, migrate) don't build the graphql or prisma schemas, only validate them @@ -116,11 +112,7 @@ export async function cli (cwd: string, argv: string[]) { // WARNING: postinstall is an alias for `build --frozen --no-ui` if (command === 'postinstall') { - return build(cwd, { - frozen: !defaultFlags(flags, { fix: false }).fix, - prisma: true, - ui: false, - }) + return build(cwd, { frozen: true, prisma: true, ui: false }) } console.log(`${command} is an unknown command`)