@pulse-editor/cli 0.1.0-beta.2 → 0.1.0-beta.4
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.
|
@@ -73,7 +73,7 @@ export default function Create({ cli }) {
|
|
|
73
73
|
// Clone the template repository
|
|
74
74
|
setCreateMessage(_jsxs(Box, { children: [_jsx(Spinner, { type: "dots" }), _jsx(Text, { children: " Creating a new Pulse Editor app using React template..." })] }));
|
|
75
75
|
try {
|
|
76
|
-
await $ `git clone --depth 1 https://github.com/ClayPulse/pulse-
|
|
76
|
+
await $ `git clone --depth 1 https://github.com/ClayPulse/pulse-app-template.git ${name}`;
|
|
77
77
|
}
|
|
78
78
|
catch (error) {
|
|
79
79
|
setCreateMessage(_jsx(Text, { color: "redBright", children: "\u274C Failed to clone the template. Please check your internet connection and try again." }));
|
|
@@ -62,10 +62,9 @@ export default function Publish({ cli }) {
|
|
|
62
62
|
}
|
|
63
63
|
async function publishExtension() {
|
|
64
64
|
setIsPublishing(true);
|
|
65
|
-
// Read
|
|
66
|
-
const
|
|
67
|
-
const visibility =
|
|
68
|
-
.visibility;
|
|
65
|
+
// Read pulse.config.json for visibility
|
|
66
|
+
const config = JSON.parse(fs.readFileSync('./dist/client/pulse.config.json', 'utf-8'));
|
|
67
|
+
const visibility = config.visibility;
|
|
69
68
|
// Upload the zip file to the server
|
|
70
69
|
try {
|
|
71
70
|
const formData = new FormData();
|
package/package.json
CHANGED