Skip to content

Commit

Permalink
remove deprecated --fix option from postinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Jun 29, 2024
1 parent 3c413cd commit a89546a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-vans-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-6/core": major
---

Removed deprecated option from `postinstall` script
10 changes: 1 addition & 9 deletions packages/core/src/scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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`)
Expand Down

0 comments on commit a89546a

Please sign in to comment.