@contentful/experience-design-system-cli 2.17.2-dev-build-90291e8.0 → 2.17.2-dev-build-7aba545.0
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/dist/package.json
CHANGED
|
@@ -12,7 +12,7 @@ import { ServerPreviewApp, ServerPreviewConfirm, ServerApplyProgress, ServerAppl
|
|
|
12
12
|
import { SelectView, makeSelectKey } from './tui/SelectView.js';
|
|
13
13
|
import { buildPostPushUrl } from '../lib/contentful-urls.js';
|
|
14
14
|
import { resolveCompositionMode } from '../lib/composition-mode.js';
|
|
15
|
-
import { addArtifactInputOptions, addCompositionOptions, addContentfulTargetOptions, addSelectionOptions, } from '../lib/command-options.js';
|
|
15
|
+
import { addAllowDeletionsOption, addArtifactInputOptions, addCompositionOptions, addContentfulTargetOptions, addSelectionOptions, } from '../lib/command-options.js';
|
|
16
16
|
import { stripAllowedComponents } from '../import/strip-allowed-components.js';
|
|
17
17
|
import { readExperiencesCredentials } from '../credentials-store.js';
|
|
18
18
|
import { getInteractiveTerminalSupport, requireInteractiveTerminal } from '../lib/terminal-capabilities.js';
|
|
@@ -469,12 +469,12 @@ export function registerApplyCommand(program) {
|
|
|
469
469
|
addArtifactInputOptions(pushCmd);
|
|
470
470
|
addContentfulTargetOptions(pushCmd);
|
|
471
471
|
addCompositionOptions(pushCmd);
|
|
472
|
+
addAllowDeletionsOption(pushCmd);
|
|
472
473
|
pushCmd
|
|
473
474
|
.option('--yes', 'Skip interactive confirmation')
|
|
474
475
|
.option('--verbose', 'Show all entity progress including skipped/unchanged')
|
|
475
476
|
.option('--force', 'Skip confirmation for breaking changes (for CI)')
|
|
476
477
|
.option('--dry-run', 'Run preview only without applying')
|
|
477
|
-
.option('--allow-deletions', 'Allow the push to delete remote ComponentTypes/DesignTokens missing from the manifest (default: skip them)')
|
|
478
478
|
.action(async (opts) => {
|
|
479
479
|
const isTTY = getInteractiveTerminalSupport().supported;
|
|
480
480
|
if (!isTTY && !opts.yes) {
|
|
@@ -647,10 +647,8 @@ export function registerApplyCommand(program) {
|
|
|
647
647
|
addContentfulTargetOptions(selectCmd);
|
|
648
648
|
addCompositionOptions(selectCmd);
|
|
649
649
|
addSelectionOptions(selectCmd);
|
|
650
|
-
selectCmd
|
|
651
|
-
|
|
652
|
-
.option('--allow-deletions', 'Allow the push to delete remote ComponentTypes/DesignTokens missing from the manifest (default: skip them)')
|
|
653
|
-
.action(async (opts) => {
|
|
650
|
+
addAllowDeletionsOption(selectCmd);
|
|
651
|
+
selectCmd.option('--force', 'Skip confirmation for breaking changes').action(async (opts) => {
|
|
654
652
|
const nonInteractive = opts.selectAll || (opts.select ?? []).length > 0 || (opts.deselect ?? []).length > 0;
|
|
655
653
|
if (!nonInteractive) {
|
|
656
654
|
requireInteractiveTerminal({
|
|
@@ -4,7 +4,7 @@ import { resolveAutoFilter } from './auto-filter-resolve.js';
|
|
|
4
4
|
import { resolveAgent, resolveModel } from './agent-model-resolve.js';
|
|
5
5
|
import { addAgentModelOptions } from '../lib/agent-model-options.js';
|
|
6
6
|
import { resolveCompositionMode } from '../lib/composition-mode.js';
|
|
7
|
-
import { addCompositionOptions } from '../lib/command-options.js';
|
|
7
|
+
import { addAllowDeletionsOption, addCompositionOptions } from '../lib/command-options.js';
|
|
8
8
|
import { isConflictMode } from '../runs/save-path-resolver.js';
|
|
9
9
|
import { readExperiencesCredentials } from '../credentials-store.js';
|
|
10
10
|
import { DEFAULT_CONFIGURED_HOST, toConfiguredHost } from '../host-utils.js';
|
|
@@ -46,6 +46,7 @@ export function registerImportCommand(program) {
|
|
|
46
46
|
.option('--print-prompt', 'Print the generate components prompt without invoking the agent. Replaces the legacy --dry-run prompt-print behaviour on this command.')
|
|
47
47
|
.option('--auto-accept-scope', 'Accept all extracted components without prompting (for scripted/non-TTY callers)');
|
|
48
48
|
addCompositionOptions(cmd);
|
|
49
|
+
addAllowDeletionsOption(cmd);
|
|
49
50
|
cmd
|
|
50
51
|
.option('--composition-map <path>', 'Consume a hand-authored parent→children interchange map (implies --composite)')
|
|
51
52
|
.option('--composition-agent', 'Opt into agentic mapping resolution when deterministic sources find no groups (implies --composite)')
|
|
@@ -74,7 +75,6 @@ export function registerImportCommand(program) {
|
|
|
74
75
|
.option('--overwrite', "Only valid with --modify: save back to the run's recorded savePath")
|
|
75
76
|
.option('--save-as-new', 'Only valid with --modify: always save to a new path (prompts for one)')
|
|
76
77
|
.option('--force', 'Bypass staleness checks when paired with --push-from-run or --modify.')
|
|
77
|
-
.option('--allow-deletions', 'Allow the push to delete remote ComponentTypes/DesignTokens missing from the manifest (default: skip them)')
|
|
78
78
|
.action(async (opts) => {
|
|
79
79
|
const interactiveTerminalSupported = getInteractiveTerminalSupport().supported;
|
|
80
80
|
// --modify and --push-from-run resume a recorded session; the composition
|
|
@@ -3,3 +3,4 @@ export declare function addArtifactInputOptions(cmd: Command): Command;
|
|
|
3
3
|
export declare function addContentfulTargetOptions(cmd: Command): Command;
|
|
4
4
|
export declare function addCompositionOptions(cmd: Command): Command;
|
|
5
5
|
export declare function addSelectionOptions(cmd: Command): Command;
|
|
6
|
+
export declare function addAllowDeletionsOption(cmd: Command): Command;
|
|
@@ -25,3 +25,6 @@ export function addSelectionOptions(cmd) {
|
|
|
25
25
|
.option('--select <pattern>', 'Select entities by ID pattern (repeatable)', collectOptionValue, [])
|
|
26
26
|
.option('--deselect <pattern>', 'Deselect entities by ID pattern (repeatable)', collectOptionValue, []);
|
|
27
27
|
}
|
|
28
|
+
export function addAllowDeletionsOption(cmd) {
|
|
29
|
+
return cmd.option('--allow-deletions', 'Allow the push to delete remote ComponentTypes/DesignTokens missing from the manifest (default: skip them)');
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.17.2-dev-build-
|
|
3
|
+
"version": "2.17.2-dev-build-7aba545.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"react": "^18.3.1",
|
|
35
35
|
"react-devtools-core": "^4.19.1",
|
|
36
36
|
"react-dom": "^18.3.1",
|
|
37
|
-
"@contentful/experience-design-system-
|
|
38
|
-
"@contentful/experience-design-system-
|
|
37
|
+
"@contentful/experience-design-system-types": "2.17.2-dev-build-7aba545.0",
|
|
38
|
+
"@contentful/experience-design-system-extraction": "2.17.2-dev-build-7aba545.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tsconfig/node24": "^24.0.3",
|