create-keystone-app 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,7 @@ var terminalLink__default = /*#__PURE__*/_interopDefault(terminalLink);
|
|
|
44
44
|
|
|
45
45
|
var currentPkgJson = {
|
|
46
46
|
name: "create-keystone-app",
|
|
47
|
-
version: "6.0.
|
|
47
|
+
version: "6.0.1",
|
|
48
48
|
main: "dist/create-keystone-app.cjs.js",
|
|
49
49
|
files: [
|
|
50
50
|
"dist",
|
|
@@ -55,7 +55,7 @@ var currentPkgJson = {
|
|
|
55
55
|
bin: "./bin.js",
|
|
56
56
|
license: "MIT",
|
|
57
57
|
dependencies: {
|
|
58
|
-
"@babel/runtime": "^7.16.
|
|
58
|
+
"@babel/runtime": "^7.16.5",
|
|
59
59
|
chalk: "^4.1.2",
|
|
60
60
|
enquirer: "^2.3.6",
|
|
61
61
|
execa: "^5.1.1",
|
|
@@ -44,7 +44,7 @@ var terminalLink__default = /*#__PURE__*/_interopDefault(terminalLink);
|
|
|
44
44
|
|
|
45
45
|
var currentPkgJson = {
|
|
46
46
|
name: "create-keystone-app",
|
|
47
|
-
version: "6.0.
|
|
47
|
+
version: "6.0.1",
|
|
48
48
|
main: "dist/create-keystone-app.cjs.js",
|
|
49
49
|
files: [
|
|
50
50
|
"dist",
|
|
@@ -55,7 +55,7 @@ var currentPkgJson = {
|
|
|
55
55
|
bin: "./bin.js",
|
|
56
56
|
license: "MIT",
|
|
57
57
|
dependencies: {
|
|
58
|
-
"@babel/runtime": "^7.16.
|
|
58
|
+
"@babel/runtime": "^7.16.5",
|
|
59
59
|
chalk: "^4.1.2",
|
|
60
60
|
enquirer: "^2.3.6",
|
|
61
61
|
execa: "^5.1.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-keystone-app",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"main": "dist/create-keystone-app.cjs.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bin": "./bin.js",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@babel/runtime": "^7.16.
|
|
14
|
+
"@babel/runtime": "^7.16.5",
|
|
15
15
|
"chalk": "^4.1.2",
|
|
16
16
|
"enquirer": "^2.3.6",
|
|
17
17
|
"execa": "^5.1.1",
|
package/starter/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keystone-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "keystone dev",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"postinstall": "keystone postinstall"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@keystone-6/auth": "^1.0.
|
|
13
|
-
"@keystone-6/core": "^1.0.
|
|
14
|
-
"@keystone-6/fields-document": "^1.0.
|
|
15
|
-
"typescript": "^4.5.
|
|
12
|
+
"@keystone-6/auth": "^1.0.1",
|
|
13
|
+
"@keystone-6/core": "^1.0.1",
|
|
14
|
+
"@keystone-6/fields-document": "^1.0.1",
|
|
15
|
+
"typescript": "^4.5.4"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": "^14.15 || ^16.13"
|
package/starter/schema.ts
CHANGED
|
@@ -31,10 +31,16 @@ import {
|
|
|
31
31
|
// custom ones.
|
|
32
32
|
import { document } from '@keystone-6/fields-document';
|
|
33
33
|
|
|
34
|
+
// We are using Typescript, and we want our types experience to be as strict as it can be.
|
|
35
|
+
// By providing the Keystone generated `Lists` type to our lists object, we refine
|
|
36
|
+
// our types to a stricter subset that is type-aware of other lists in our schema
|
|
37
|
+
// that Typescript cannot easily infer.
|
|
38
|
+
import { Lists } from '.keystone/types';
|
|
39
|
+
|
|
34
40
|
// We have a users list, a blogs list, and tags for blog posts, so they can be filtered.
|
|
35
41
|
// Each property on the exported object will become the name of a list (a.k.a. the `listKey`),
|
|
36
42
|
// with the value being the definition of the list, including the fields.
|
|
37
|
-
export const lists = {
|
|
43
|
+
export const lists: Lists = {
|
|
38
44
|
// Here we define the user list.
|
|
39
45
|
User: list({
|
|
40
46
|
// Here are the fields that `User` will have. We want an email and password so they can log in
|