@greatstore/cli 0.0.8 → 0.0.9

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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -731,6 +731,7 @@ function manifest(name) {
731
731
  return JSON.stringify(
732
732
  {
733
733
  name,
734
+ displayName: defaultDisplayName(name),
734
735
  description: `Renders the ${name} widget.`,
735
736
  displayMode: "inline",
736
737
  inputSchema: {
@@ -742,6 +743,12 @@ function manifest(name) {
742
743
  2
743
744
  ) + "\n";
744
745
  }
746
+ function defaultDisplayName(name) {
747
+ const words = name.split("_").filter(Boolean);
748
+ if (words.length === 0) return name;
749
+ const first = words[0];
750
+ return first.charAt(0).toUpperCase() + first.slice(1) + (words.length > 1 ? " " + words.slice(1).join(" ") : "");
751
+ }
745
752
  function component(name) {
746
753
  return `import React from "react";
747
754
 
@@ -877,7 +884,7 @@ function pascal(name) {
877
884
  }
878
885
 
879
886
  // src/index.ts
880
- var VERSION = true ? "0.0.8" : "0.0.0-dev";
887
+ var VERSION = true ? "0.0.9" : "0.0.0-dev";
881
888
  var HELP = `gs \u2014 GreatStore CLI (v${VERSION})
882
889
 
883
890
  Usage:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatstore/cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "CLI for authoring and shipping GreatStore custom components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",