@deneb-ui/cli 2.0.103 → 2.0.104

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deneb-ui/cli",
3
- "version": "2.0.103",
3
+ "version": "2.0.104",
4
4
  "description": "Official DENEB CLI — scaffold, convert, validate, and package Fivora-ready storefront templates.",
5
5
  "bin": {
6
6
  "deneb": "bin/index.js",
@@ -49,7 +49,7 @@
49
49
  "license": "MIT",
50
50
  "dependencies": {
51
51
  "@babel/parser": "^7.28.0",
52
- "@deneb-ui/core": "^2.0.103",
52
+ "@deneb-ui/core": "^2.0.104",
53
53
  "@octokit/rest": "^22.0.1",
54
54
  "adm-zip": "^0.6.0",
55
55
  "dotenv": "^17.4.2",
@@ -32,6 +32,11 @@ function getGithubConfig() {
32
32
  * @returns {{ ready: boolean, reason?: string }}
33
33
  */
34
34
  function checkGithubReady() {
35
+ // Automated branch/PR creation is permanently disabled by default.
36
+ // Set DENEB_ENABLE_PR=true only if you explicitly want to create GitHub branches.
37
+ if (process.env.DENEB_ENABLE_PR !== 'true') {
38
+ return { ready: false, reason: 'Automated GitHub branch creation is disabled.' };
39
+ }
35
40
  loadEnv();
36
41
  const config = getGithubConfig();
37
42
  if (!config.pat) {
@@ -204,10 +209,10 @@ async function createComponentPR(params) {
204
209
  let corePr = null;
205
210
  let uiPr = null;
206
211
 
207
- if (dryRun) {
212
+ if (dryRun || process.env.DENEB_ENABLE_PR !== 'true') {
208
213
  return {
209
- corePr: { number: 0, url: '(dry-run — PR not created)' },
210
- uiPr: docsCode ? { number: 0, url: '(dry-run — PR not created)' } : null,
214
+ corePr: { number: 0, url: '(branch/PR creation disabled)' },
215
+ uiPr: docsCode ? { number: 0, url: '(branch/PR creation disabled)' } : null,
211
216
  errors: [],
212
217
  };
213
218
  }