@contentful/experience-design-system-cli 2.35.1-dev-build-76df9d03.0 → 2.35.1-dev-build-fa264c11.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/index.js CHANGED
@@ -1394,6 +1394,11 @@ var init_app = __esm({
1394
1394
  import { readFileSync as readFileSync3 } from "node:fs";
1395
1395
  import { Command } from "commander";
1396
1396
 
1397
+ // packages/experience-design-system-cli/src/legacy/forwarded-import-args.ts
1398
+ function forwardedImportArgs(argv) {
1399
+ return argv[0] === "import" ? argv.slice(1) : argv;
1400
+ }
1401
+
1397
1402
  // packages/experience-design-system-cli/src/legacy/run-legacy.ts
1398
1403
  init_legacy_cli_path();
1399
1404
  import { spawn } from "node:child_process";
@@ -1447,7 +1452,11 @@ function registerForwardedCommands(program) {
1447
1452
  }
1448
1453
  function createProgram() {
1449
1454
  const program = new Command().name("experiences").description("Contentful Experiences design system import CLI").version(pkg.version, "--version", "Print version number");
1450
- program.command("import", { isDefault: true }).description("Launch the Experiences CLI").action(async () => {
1455
+ program.command("import", { isDefault: true }).description("Launch the Experiences CLI").allowUnknownOption().allowExcessArguments().helpOption(false).argument("[args...]").action(async () => {
1456
+ const forwarded = forwardedImportArgs(process.argv.slice(2));
1457
+ if (forwarded.length > 0) {
1458
+ process.exit(await runLegacy(["import", ...forwarded]));
1459
+ }
1451
1460
  const { render } = await import("ink");
1452
1461
  const { runApp: runApp2 } = await Promise.resolve().then(() => (init_app(), app_exports));
1453
1462
  await runApp2(render);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-76df9d03.0",
3
+ "version": "2.35.1-dev-build-fa264c11.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1 @@
1
+ export declare function forwardedImportArgs(argv: string[]): string[];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-76df9d03.0",
3
+ "version": "2.35.1-dev-build-fa264c11.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-76df9d03.0",
3
+ "version": "2.35.1-dev-build-fa264c11.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "svelte": "^5.56.4",
43
43
  "ts-morph": "^27.0.2",
44
44
  "typescript": "^5.9.3",
45
- "@contentful/experience-design-system-types": "2.35.1-dev-build-76df9d03.0"
45
+ "@contentful/experience-design-system-types": "2.35.1-dev-build-fa264c11.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",