create-payload-app 0.5.0-beta.2 → 0.5.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -67,15 +67,19 @@ function configurePayloadConfig(args) {
|
|
67
67
|
_a.label = 1;
|
68
68
|
case 1:
|
69
69
|
_a.trys.push([1, 4, , 5]);
|
70
|
-
return [4 /*yield*/, fs_extra_1.default.readJson(packageJsonPath)
|
70
|
+
return [4 /*yield*/, fs_extra_1.default.readJson(packageJsonPath)
|
71
|
+
// TODO: Likely revert this once we go to latest
|
72
|
+
];
|
71
73
|
case 2:
|
72
74
|
packageObj = _a.sent();
|
75
|
+
// TODO: Likely revert this once we go to latest
|
76
|
+
packageObj.dependencies['payload'] = 'beta';
|
73
77
|
dbPackage = packages_1.dbPackages[args.dbDetails.type];
|
74
78
|
bundlerPackage = packages_1.bundlerPackages['webpack'];
|
75
79
|
editorPackage = packages_1.editorPackages['lexical'];
|
76
|
-
packageObj.dependencies[dbPackage.packageName] = '
|
77
|
-
packageObj.dependencies[bundlerPackage.packageName] = '
|
78
|
-
packageObj.dependencies[editorPackage.packageName] = '
|
80
|
+
packageObj.dependencies[dbPackage.packageName] = 'beta';
|
81
|
+
packageObj.dependencies[bundlerPackage.packageName] = 'beta';
|
82
|
+
packageObj.dependencies[editorPackage.packageName] = 'beta';
|
79
83
|
return [4 /*yield*/, fs_extra_1.default.writeJson(packageJsonPath, packageObj, { spaces: 2 })];
|
80
84
|
case 3:
|
81
85
|
_a.sent();
|
package/dist/lib/packages.js
CHANGED
@@ -44,12 +44,12 @@ exports.bundlerPackages = {
|
|
44
44
|
exports.editorPackages = {
|
45
45
|
slate: {
|
46
46
|
packageName: '@payloadcms/richtext-slate',
|
47
|
-
importReplacement: "import {
|
48
|
-
configReplacement: ' editor:
|
47
|
+
importReplacement: "import { slateEditor } from '@payloadcms/richtext-slate'",
|
48
|
+
configReplacement: ' editor: slateEditor({}),',
|
49
49
|
},
|
50
50
|
lexical: {
|
51
51
|
packageName: '@payloadcms/richtext-lexical',
|
52
|
-
importReplacement: "import {
|
53
|
-
configReplacement: ' editor:
|
52
|
+
importReplacement: "import { lexicalEditor } from '@payloadcms/richtext-lexical'",
|
53
|
+
configReplacement: ' editor: lexicalEditor({}),',
|
54
54
|
},
|
55
55
|
};
|