Skip to content

Commit

Permalink
rename keystone folder to core (keystonejs#7252)
Browse files Browse the repository at this point in the history
* rename keystone folder to core

* update repository field

* fix path name in prisma utils

* replace anywhere that uses packages/keystone
  • Loading branch information
Noviny authored Feb 1, 2022
1 parent 518bd2e commit 974d7aa
Show file tree
Hide file tree
Showing 292 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Now, for each release we want to backport to, we follow this process:
(\
export PACKAGE_NAME=@keystonejs/keystone && \
export OTP_CODE= && \
cd packages/keystone && \
cd packages/core && \
yarn publish --tag=backport --otp=$OTP_CODE && \
export BACKPORTED_VERSION=`npm dist-tag ls $PACKAGE_NAME | grep 'backport' | sed -e 's/backport: //'` && \
yarn tag remove $PACKAGE_NAME backport --otp=$OTP_CODE && \
Expand Down
4 changes: 2 additions & 2 deletions STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ For links to work across these mediums, certain rules for URLs formulation must
- The full filename, include the extension
- Eg. `/docs/pages/guides/cli.mdx` (**not** `/docs/guides/cli`)
- Links to `README.md` files must be explicit; they cannot rely on the GitHub behaviour that uses `README.md` at a sort of "index" for a directory
- Eg. `/packages/keystone/README.md#CLI` (**not** `/packages/keystone#CLI`)
- Links to directories end in a slash (eg. `/packages/keystone/`)
- Eg. `/packages/core/README.md#CLI` (**not** `/packages/core#CLI`)
- Links to directories end in a slash (eg. `/packages/core/`)
- This as is convention for URLs (so as not to be confused with a files)

## Code and Code Blocks
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/docs/guides/custom-fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ There are two parts to a field type:
- The **frontend** portion which defines how the field looks and behaves in the Admin UI.

The general approach to creating a custom field type is to take an existing field type and make the appropriate changes for your use case.
In this guide we're going to create a field type `myInt` which recreates the [`integer`](https://github.com/keystonejs/keystone/tree/main/packages/keystone/src/fields/types/integer) field type.
In this guide we're going to create a field type `myInt` which recreates the [`integer`](https://github.com/keystonejs/keystone/tree/main/packages/core/src/fields/types/integer) field type.

!> For inspiration, see [the source for the fields that Keystone provides](https://github.com/keystonejs/keystone/tree/main/packages/keystone/src/fields/types) and the [Custom Fields](https://github.com/keystonejs/keystone/tree/main/examples/custom-field) example project.
!> For inspiration, see [the source for the fields that Keystone provides](https://github.com/keystonejs/keystone/tree/main/packages/core/src/fields/types) and the [Custom Fields](https://github.com/keystonejs/keystone/tree/main/examples/custom-field) example project.

## Backend

Expand Down
2 changes: 1 addition & 1 deletion examples/custom-field/stars-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { graphql } from '@keystone-6/core';
// this field is based on the integer field
// but with validation to ensure the value is within an expected range
// and a different input in the Admin UI
// https://github.com/keystonejs/keystone/tree/main/packages/keystone/src/fields/types/integer
// https://github.com/keystonejs/keystone/tree/main/packages/core/src/fields/types/integer

export type StarsFieldConfig<ListTypeInfo extends BaseListTypeInfo> =
CommonFieldConfig<ListTypeInfo> & {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"packages/**/*.{js,ts,tsx}",
"!**/*.d.ts",
"!packages/**/dist/**",
"!packages/keystone/src/fields/**/test-fixtures.{js,ts}"
"!packages/core/src/fields/**/test-fixtures.{js,ts}"
]
},
"resolutions": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,5 @@
"types/index.ts"
]
},
"repository": "https://github.com/keystonejs/keystone/tree/main/packages/keystone"
"repository": "https://github.com/keystonejs/keystone/tree/main/packages/core"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export type GraphQLSchemaExtension<Context extends KeystoneContext> = {
resolvers: Record<string, Record<string, GraphQLResolver<Context>>>;
};

// TODO: don't duplicate this between here and packages/keystone/ListTypes/list.js
// TODO: don't duplicate this between here and packages/core/ListTypes/list.js
export function getGqlNames({
listKey,
pluralGraphQLName,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion prisma-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ ${
2
)
);
const filepath = `${__dirname}/../../packages/keystone/src/types/filters/providers/${provider}.ts`;
const filepath = `${__dirname}/../../packages/core/src/types/filters/providers/${provider}.ts`;
const newContent = format(
`// Do not manually modify this file, it is automatically generated by the package at /prisma-utils in this repo.
// Update the script if you need this file to be different
Expand Down

0 comments on commit 974d7aa

Please sign in to comment.