create-payload-app 0.5.0-beta.5 → 0.5.0-beta.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -76,10 +76,10 @@ function configurePayloadConfig(args) {
76
76
  packageObj.dependencies['payload'] = 'beta';
77
77
  dbPackage = packages_1.dbPackages[args.dbDetails.type];
78
78
  bundlerPackage = packages_1.bundlerPackages['webpack'];
79
- editorPackage = packages_1.editorPackages['lexical'];
80
- packageObj.dependencies[dbPackage.packageName] = 'beta';
81
- packageObj.dependencies[bundlerPackage.packageName] = 'beta';
82
- packageObj.dependencies[editorPackage.packageName] = 'beta';
79
+ editorPackage = packages_1.editorPackages['slate'];
80
+ packageObj.dependencies[dbPackage.packageName] = 'latest';
81
+ packageObj.dependencies[bundlerPackage.packageName] = 'latest';
82
+ packageObj.dependencies[editorPackage.packageName] = 'latest';
83
83
  return [4 /*yield*/, fs_extra_1.default.writeJson(packageJsonPath, packageObj, { spaces: 2 })];
84
84
  case 3:
85
85
  _a.sent();
@@ -137,7 +137,7 @@ describe('createProject', function () {
137
137
  template = {
138
138
  name: 'blank',
139
139
  type: 'starter',
140
- url: 'https://github.com/payloadcms/payload/templates/blank#2.0',
140
+ url: 'https://github.com/payloadcms/payload/templates/blank#feat/2.0-template-updates',
141
141
  description: 'Blank Template',
142
142
  };
143
143
  return [4 /*yield*/, (0, create_project_1.createProject)({
@@ -94,7 +94,7 @@ function selectDb(args, projectName) {
94
94
  return [4 /*yield*/, (0, prompts_1.default)({
95
95
  type: 'text',
96
96
  name: 'value',
97
- message: "Enter ".concat(dbChoice.title, " connection string"),
97
+ message: "Enter ".concat(dbChoice.title.split(' ')[0], " connection string"),
98
98
  initial: "".concat(dbChoice.dbConnectionPrefix).concat(projectName === '.'
99
99
  ? "payload-".concat(getRandomDigitSuffix())
100
100
  : (0, slugify_1.default)(projectName)),
@@ -64,19 +64,19 @@ function getValidTemplates() {
64
64
  {
65
65
  name: 'blank',
66
66
  type: 'starter',
67
- url: 'https://github.com/payloadcms/payload/templates/blank#2.0',
67
+ url: 'https://github.com/payloadcms/payload/templates/blank#feat/2.0-template-updates',
68
68
  description: 'Blank Template',
69
69
  },
70
70
  {
71
71
  name: 'website',
72
72
  type: 'starter',
73
- url: 'https://github.com/payloadcms/payload/templates/website#2.0',
73
+ url: 'https://github.com/payloadcms/payload/templates/website#feat/2.0-template-updates',
74
74
  description: 'Website Template',
75
75
  },
76
76
  {
77
77
  name: 'ecommerce',
78
78
  type: 'starter',
79
- url: 'https://github.com/payloadcms/payload/templates/ecommerce#2.0',
79
+ url: 'https://github.com/payloadcms/payload/templates/ecommerce#feat/2.0-template-updates',
80
80
  description: 'E-commerce Template',
81
81
  },
82
82
  {
package/dist/main.js CHANGED
@@ -67,6 +67,7 @@ var Main = /** @class */ (function () {
67
67
  '--no-deps': Boolean,
68
68
  '--dry-run': Boolean,
69
69
  '--beta': Boolean,
70
+ '-d': '--db',
70
71
  '-h': '--help',
71
72
  '-n': '--name',
72
73
  '-t': '--template',
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  "prompts": "^2.4.2",
38
38
  "terminal-link": "^2.1.1"
39
39
  },
40
- "version": "0.5.0-beta.5",
40
+ "version": "0.5.0-beta.8",
41
41
  "devDependencies": {
42
42
  "@types/command-exists": "^1.2.0",
43
43
  "@types/degit": "^2.8.3",