Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

Add yarn xds shortcut and fix no-args exit code (#456)

Joey0ec6a87121e2
diff --git a/package.json b/package.json
index 77515f591c..1c4bd24785 100644
--- a/package.json
+++ b/package.json
@@ -21,6 +21,7 @@
"docs": "yarn workspace @xds/docs dev",
"sync:exports": "node scripts/sync-exports.js",
"sync:exports:check": "node scripts/sync-exports.js --check",
+ "xds": "yarn workspace @xds/cli xds",
"validate-readmes": "node scripts/validate-readmes.mjs",
"package:source": "node scripts/package-source.js",
"changeset": "changeset",
diff --git a/packages/cli/src/index.mjs b/packages/cli/src/index.mjs
index 57242e5b4b..ce7c6ed460 100644
--- a/packages/cli/src/index.mjs
+++ b/packages/cli/src/index.mjs
@@ -20,7 +20,10 @@ program
.name('xds')
.description('XDS design system CLI — components, themes, and tooling')
.version('0.0.1')
- .addHelpCommand('help', 'Show all commands');
+ .addHelpCommand('help', 'Show all commands')
+ .action(() => {
+ program.help();
+ });
registerInit(program);
registerComponent(program);