Skip to content

Commit bd93982

Browse files
committed
Update CLI to read config instead of package.json
1 parent 999b0dc commit bd93982

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

npm-packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pulse-editor/cli",
3-
"version": "0.1.0-beta.3",
3+
"version": "0.1.0-beta.4",
44
"license": "MIT",
55
"bin": {
66
"pulse": "./dist/cli.js"
@@ -60,4 +60,4 @@
6060
}
6161
},
6262
"prettier": "@vdemedes/prettier-config"
63-
}
63+
}

npm-packages/cli/source/components/commands/publish.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ export default function Publish({cli}: {cli: Result<Flags>}) {
7272
async function publishExtension() {
7373
setIsPublishing(true);
7474

75-
// Read package.json
76-
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
75+
// Read pulse.config.json for visibility
76+
const config = JSON.parse(
77+
fs.readFileSync('./dist/client/pulse.config.json', 'utf-8'),
78+
);
7779

78-
const visibility = packageJson['pulse-editor-marketplace']
79-
.visibility as string;
80+
const visibility = config.visibility as string;
8081

8182
// Upload the zip file to the server
8283
try {

0 commit comments

Comments
 (0)