Skip to content

Commit

Permalink
Move the exports of @keystone-next/keystone to `@keystone-next/keys…
Browse files Browse the repository at this point in the history
…tone/system` (#6377)
  • Loading branch information
emmatown authored Aug 20, 2021
1 parent 5ceccd8 commit 3008c51
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-masks-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': major
---

Moved exports of `@keystone-next/keystone` to `@keystone-next/keystone/system`
5 changes: 3 additions & 2 deletions packages/keystone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"admin-ui",
"testing",
"fields",
"types"
"types",
"system"
],
"bin": {
"keystone-next": "bin/cli.js"
Expand Down Expand Up @@ -136,7 +137,7 @@
},
"preconstruct": {
"entrypoints": [
"index.ts",
"system.ts",
"next.ts",
"___internal-do-not-use-will-break-in-patch/{node-api,next-graphql}.ts",
"___internal-do-not-use-will-break-in-patch/admin-ui/pages/*/index.tsx",
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/src/admin-ui/templates/api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const apiTemplate = `
import keystoneConfig from '../../../../keystone';
import { initConfig, createSystem, createApolloServerMicro } from '@keystone-next/keystone';
import { initConfig, createSystem, createApolloServerMicro } from '@keystone-next/keystone/system';
import { PrismaClient } from '.prisma/client';
const initializedKeystoneConfig = initConfig(keystoneConfig);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertInputObjectType, printType, assertObjectType, parse } from 'graphql';
import { createSystem, initConfig } from '../../../../.';
import { createSystem, initConfig } from '../../../../system';
import { config, list } from '../../../../schema';
import { relationship } from '..';
import { text } from '../../text';
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone/src/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const withKeystone =
'@keystone-next/keystone/___internal-do-not-use-will-break-in-patch/api',
'@keystone-next/keystone/___internal-do-not-use-will-break-in-patch/next-graphql',
'@keystone-next/keystone/next',
'@keystone-next/keystone',
'@keystone-next/keystone/system',
'.prisma/client',
];
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/keystone/src/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
generateNodeModulesArtifacts,
} from './artifacts';
import { pushPrismaSchemaToDatabase } from './migrations';
import { initConfig, createSystem, createExpressServer } from '.';
import { initConfig, createSystem, createExpressServer } from './system';

export type GraphQLRequest = (arg: {
query: string;
Expand Down
4 changes: 4 additions & 0 deletions packages/keystone/system/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"main": "dist/keystone.cjs.js",
"module": "dist/keystone.esm.js"
}

0 comments on commit 3008c51

Please sign in to comment.