@pulse-editor/cli 0.1.0-beta.3 → 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.
@@ -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.3",
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
+ }