-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatten scripts/* and use stderr for errors, add some deprecations #8569
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
packages/core/src/access.ts
Outdated
@@ -9,7 +10,7 @@ export function denyAll() { | |||
return false; | |||
} | |||
|
|||
export function unfiltered() { | |||
export function unfiltered<ListTypeInfo extends BaseListTypeInfo>(): MaybePromise<boolean | ListTypeInfo['inputs']['where']> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type ends up inferring as => boolean
, which isn't helpful when you want the type to help infer other function types.
/** We do this to stop webpack from bundling next inside of next */ | ||
const next = 'next/dist/build'; | ||
const build = require(next).default; | ||
await build(projectAdminPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't reproduce any behaviors related to this
}; | ||
|
||
export async function getNextApp(dev: boolean, projectAdminPath: string): Promise<NextApp> { | ||
/** We do this to stop webpack from bundling next inside of next */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot reproduce
fa7134e
to
b6a896c
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
e2d477f
to
2327545
Compare
Co-authored-by: Josh Calder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one
This pull request tidy's up a number of internal modules, flattening their directory structures and removing some now deprecated work-arounds.
As part of the moving,
@keystone-6/core/system
exports (createSystem
,createExpressServer
,initConfig
andcreateAdminUIMiddleware
) have been deprecated, and should be removed in the next breaking change.This pull request additionally changes a number of
console.log
s toconsole.error
to unify errors being printed tostderr
.Lastly, this pull request fixes
keystone dev
exiting whendb.enableLogging
was an array.