create-payload-app 0.3.26 → 0.3.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,7 +54,7 @@ function getDatabaseConnection(args, projectName) {
54
54
  type: 'text',
55
55
  name: 'value',
56
56
  message: 'Enter MongoDB connection',
57
- initial: "mongodb://localhost/".concat(projectName === '.'
57
+ initial: "mongodb://127.0.0.1/".concat(projectName === '.'
58
58
  ? "payload-".concat(getRandomDigitSuffix())
59
59
  : (0, slugify_1.default)(projectName)),
60
60
  validate: function (value) { return !!value.length; },
@@ -19,4 +19,4 @@ export default buildConfig({
19
19
  graphQL: {
20
20
  schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
21
21
  },
22
- });
22
+ })
@@ -11,17 +11,11 @@ export default buildConfig({
11
11
  admin: {
12
12
  user: Users.slug,
13
13
  },
14
- collections: [
15
- Categories,
16
- Posts,
17
- Tags,
18
- Users,
19
- Media,
20
- ],
14
+ collections: [Categories, Posts, Tags, Users, Media],
21
15
  typescript: {
22
- outputFile: path.resolve(__dirname, 'payload-types.ts')
16
+ outputFile: path.resolve(__dirname, 'payload-types.ts'),
23
17
  },
24
18
  graphQL: {
25
19
  schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
26
20
  },
27
- });
21
+ })
@@ -8,14 +8,11 @@ export default buildConfig({
8
8
  admin: {
9
9
  user: Users.slug,
10
10
  },
11
- collections: [
12
- TodoLists,
13
- Users,
14
- ],
11
+ collections: [TodoLists, Users],
15
12
  typescript: {
16
- outputFile: path.resolve(__dirname, 'payload-types.ts')
13
+ outputFile: path.resolve(__dirname, 'payload-types.ts'),
17
14
  },
18
15
  graphQL: {
19
16
  schemaOutputFile: path.resolve(__dirname, 'generated-schema.graphql'),
20
17
  },
21
- });
18
+ })
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  "prompts": "^2.4.0",
38
38
  "terminal-link": "^2.1.1"
39
39
  },
40
- "version": "0.3.26",
40
+ "version": "0.3.28",
41
41
  "devDependencies": {
42
42
  "@types/command-exists": "^1.2.0",
43
43
  "@types/degit": "^2.8.3",