@cedarjs/cli 1.0.0-canary.12970 → 1.0.0-canary.12974

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.
@@ -28,7 +28,12 @@ function createCommand(componentName, positionalsObj = {}) {
28
28
  function createDescription(componentName) {
29
29
  return `Generate a ${componentName} component`;
30
30
  }
31
- function createBuilder({ componentName, optionsObj, positionalsObj }) {
31
+ function createBuilder({
32
+ componentName,
33
+ optionsObj,
34
+ positionalsObj,
35
+ addStories
36
+ }) {
32
37
  return (yargs) => {
33
38
  yargs.positional("name", {
34
39
  description: `Name of the ${componentName}`,
@@ -41,9 +46,6 @@ function createBuilder({ componentName, optionsObj, positionalsObj }) {
41
46
  ).option("tests", {
42
47
  description: "Generate test files",
43
48
  type: "boolean"
44
- }).option("stories", {
45
- description: "Generate storybook files",
46
- type: "boolean"
47
49
  }).option("verbose", {
48
50
  description: "Print all logs",
49
51
  type: "boolean",
@@ -53,6 +55,12 @@ function createBuilder({ componentName, optionsObj, positionalsObj }) {
53
55
  type: "boolean",
54
56
  default: true
55
57
  });
58
+ if (addStories || typeof addStories === "undefined") {
59
+ yargs.option("stories", {
60
+ description: "Generate storybook files",
61
+ type: "boolean"
62
+ });
63
+ }
56
64
  Object.entries(positionalsObj || {}).forEach(([option, config]) => {
57
65
  yargs.positional(option, config);
58
66
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12970+a0b9793f6",
3
+ "version": "1.0.0-canary.12974+a4d76d5e2",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,15 +31,15 @@
31
31
  "dependencies": {
32
32
  "@babel/preset-typescript": "7.28.5",
33
33
  "@babel/runtime-corejs3": "7.28.4",
34
- "@cedarjs/api-server": "1.0.0-canary.12970",
35
- "@cedarjs/cli-helpers": "1.0.0-canary.12970",
36
- "@cedarjs/fastify-web": "1.0.0-canary.12970",
37
- "@cedarjs/internal": "1.0.0-canary.12970",
38
- "@cedarjs/prerender": "1.0.0-canary.12970",
39
- "@cedarjs/project-config": "1.0.0-canary.12970",
40
- "@cedarjs/structure": "1.0.0-canary.12970",
41
- "@cedarjs/telemetry": "1.0.0-canary.12970",
42
- "@cedarjs/web-server": "1.0.0-canary.12970",
34
+ "@cedarjs/api-server": "1.0.0-canary.12974",
35
+ "@cedarjs/cli-helpers": "1.0.0-canary.12974",
36
+ "@cedarjs/fastify-web": "1.0.0-canary.12974",
37
+ "@cedarjs/internal": "1.0.0-canary.12974",
38
+ "@cedarjs/prerender": "1.0.0-canary.12974",
39
+ "@cedarjs/project-config": "1.0.0-canary.12974",
40
+ "@cedarjs/structure": "1.0.0-canary.12974",
41
+ "@cedarjs/telemetry": "1.0.0-canary.12974",
42
+ "@cedarjs/web-server": "1.0.0-canary.12974",
43
43
  "@listr2/prompt-adapter-enquirer": "2.0.16",
44
44
  "@opentelemetry/api": "1.8.0",
45
45
  "@opentelemetry/core": "1.22.0",
@@ -101,5 +101,5 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "gitHead": "a0b9793f6d5043998be093ca949610cc3f6b19dd"
104
+ "gitHead": "a4d76d5e2d9eb6e15e38c3956e3cf30d735a73df"
105
105
  }