@contentful/experience-design-system-cli 2.36.0 → 2.36.1-dev-build-49ac29ec.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
|
@@ -1089,6 +1089,11 @@ var init_app = __esm({
|
|
|
1089
1089
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
1090
1090
|
import { Command } from "commander";
|
|
1091
1091
|
|
|
1092
|
+
// packages/experience-design-system-cli/src/legacy/forwarded-import-args.ts
|
|
1093
|
+
function forwardedImportArgs(argv) {
|
|
1094
|
+
return argv[0] === "import" ? argv.slice(1) : argv;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1092
1097
|
// packages/experience-design-system-cli/src/legacy/run-legacy.ts
|
|
1093
1098
|
init_legacy_cli_path();
|
|
1094
1099
|
import { spawn } from "node:child_process";
|
|
@@ -1142,7 +1147,11 @@ function registerForwardedCommands(program) {
|
|
|
1142
1147
|
}
|
|
1143
1148
|
function createProgram() {
|
|
1144
1149
|
const program = new Command().name("experiences").description("Contentful Experiences design system import CLI").version(pkg.version, "--version", "Print version number");
|
|
1145
|
-
program.command("import", { isDefault: true }).description("Launch the Experiences CLI").action(async () => {
|
|
1150
|
+
program.command("import", { isDefault: true }).description("Launch the Experiences CLI").allowUnknownOption().allowExcessArguments().helpOption(false).argument("[args...]").action(async () => {
|
|
1151
|
+
const forwarded = forwardedImportArgs(process.argv.slice(2));
|
|
1152
|
+
if (forwarded.length > 0) {
|
|
1153
|
+
process.exit(await runLegacy(["import", ...forwarded]));
|
|
1154
|
+
}
|
|
1146
1155
|
const { render } = await import("ink");
|
|
1147
1156
|
const { runApp: runApp2 } = await Promise.resolve().then(() => (init_app(), app_exports));
|
|
1148
1157
|
await runApp2(render);
|
package/dist/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function forwardedImportArgs(argv: string[]): string[];
|
package/legacy/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.36.0",
|
|
3
|
+
"version": "2.36.1-dev-build-49ac29ec.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"svelte": "^5.56.4",
|
|
42
42
|
"ts-morph": "^27.0.2",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"@contentful/experience-design-system-types": "2.36.0"
|
|
44
|
+
"@contentful/experience-design-system-types": "2.36.1-dev-build-49ac29ec.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tsconfig/node24": "^24.0.4",
|