@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-editor-extension-template.git ${name}`;
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 package.json
66
- const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
67
- const visibility = packageJson['pulse-editor-marketplace']
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulse-editor/cli",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.4",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "pulse": "./dist/cli.js"
@@ -60,4 +60,4 @@
60
60
  }
61
61
  },
62
62
  "prettier": "@vdemedes/prettier-config"
63
- }
63
+ }