@cedarjs/cli 1.0.0-canary.12735 → 1.0.0-canary.12737

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.
@@ -12,8 +12,9 @@ const createYargsForComponentDestroy = ({ componentName }) => {
12
12
  };
13
13
  function createHandler(componentName) {
14
14
  return async (argv) => {
15
- const importedHandler = await import(`./${componentName}Handler.js`);
16
- return importedHandler(argv);
15
+ const importedHandler = await import(`./${componentName}/${componentName}Handler.js`);
16
+ const fn = importedHandler.default ?? importedHandler.handler ?? importedHandler;
17
+ return typeof fn === "function" ? fn(argv) : fn;
17
18
  };
18
19
  }
19
20
  export {
@@ -17,7 +17,7 @@ const tasks = ({ name, path }) => new Listr(
17
17
  title: "Destroying page files...",
18
18
  task: async () => {
19
19
  const p = pathName(path, name);
20
- const f = pageFiles({
20
+ const f = await pageFiles({
21
21
  name,
22
22
  path: p,
23
23
  stories: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12735+a92c00e5e",
3
+ "version": "1.0.0-canary.12737+c7dafc412",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,15 +32,15 @@
32
32
  "dependencies": {
33
33
  "@babel/preset-typescript": "7.27.1",
34
34
  "@babel/runtime-corejs3": "7.27.6",
35
- "@cedarjs/api-server": "1.0.0-canary.12735",
36
- "@cedarjs/cli-helpers": "1.0.0-canary.12735",
37
- "@cedarjs/fastify-web": "1.0.0-canary.12735",
38
- "@cedarjs/internal": "1.0.0-canary.12735",
39
- "@cedarjs/prerender": "1.0.0-canary.12735",
40
- "@cedarjs/project-config": "1.0.0-canary.12735",
41
- "@cedarjs/structure": "1.0.0-canary.12735",
42
- "@cedarjs/telemetry": "1.0.0-canary.12735",
43
- "@cedarjs/web-server": "1.0.0-canary.12735",
35
+ "@cedarjs/api-server": "1.0.0-canary.12737",
36
+ "@cedarjs/cli-helpers": "1.0.0-canary.12737",
37
+ "@cedarjs/fastify-web": "1.0.0-canary.12737",
38
+ "@cedarjs/internal": "1.0.0-canary.12737",
39
+ "@cedarjs/prerender": "1.0.0-canary.12737",
40
+ "@cedarjs/project-config": "1.0.0-canary.12737",
41
+ "@cedarjs/structure": "1.0.0-canary.12737",
42
+ "@cedarjs/telemetry": "1.0.0-canary.12737",
43
+ "@cedarjs/web-server": "1.0.0-canary.12737",
44
44
  "@listr2/prompt-adapter-enquirer": "2.0.16",
45
45
  "@opentelemetry/api": "1.8.0",
46
46
  "@opentelemetry/core": "1.22.0",
@@ -102,5 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "gitHead": "a92c00e5ebaa75a4210064e1b0d27ca9d971822c"
105
+ "gitHead": "c7dafc41243479b37152ef54e0ee6582ab812aeb"
106
106
  }