@cedarjs/cli 5.0.0-canary.2442 → 5.0.0-canary.2446

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.
@@ -1,6 +1,6 @@
1
1
  import { createHandler, createYargsForComponentDestroy } from "../helpers.js";
2
2
  const description = "Destroy a component";
3
- const { command, builder, tasks } = createYargsForComponentDestroy({
3
+ const { command, builder } = createYargsForComponentDestroy({
4
4
  componentName: "component"
5
5
  });
6
6
  const handler = createHandler("component");
@@ -8,6 +8,5 @@ export {
8
8
  builder,
9
9
  command,
10
10
  description,
11
- handler,
12
- tasks
11
+ handler
13
12
  };
@@ -1,9 +1,7 @@
1
- import { files as directiveFiles } from "../../generate/directive/directiveHandler.js";
2
1
  import { createYargsForComponentDestroy, createHandler } from "../helpers.js";
3
2
  const description = "Destroy a directive";
4
3
  const { command, builder } = createYargsForComponentDestroy({
5
- componentName: "directive",
6
- filesFn: (args) => directiveFiles({ ...args, type: "validator" })
4
+ componentName: "directive"
7
5
  });
8
6
  const handler = createHandler("directive");
9
7
  export {
@@ -1,4 +1,3 @@
1
- import { files as functionFiles } from "../../generate/function/functionHandler.js";
2
1
  import { createYargsForComponentDestroy, createHandler } from "../helpers.js";
3
2
  const description = "Destroy a Function";
4
3
  const builder = (yargs) => {
@@ -8,8 +7,7 @@ const builder = (yargs) => {
8
7
  });
9
8
  };
10
9
  const { command } = createYargsForComponentDestroy({
11
- componentName: "function",
12
- filesFn: functionFiles
10
+ componentName: "function"
13
11
  });
14
12
  const handler = createHandler("function");
15
13
  export {
@@ -1,7 +1,11 @@
1
1
  import { Listr } from "listr2";
2
2
  import { recordTelemetryAttributes } from "@cedarjs/cli-helpers";
3
3
  import { deleteFilesTask } from "../../lib/index.js";
4
- const tasks = ({ componentName, filesFn, name }) => new Listr(
4
+ const tasks = ({
5
+ componentName,
6
+ filesFn,
7
+ name
8
+ }) => new Listr(
5
9
  [
6
10
  {
7
11
  title: `Destroying ${componentName} files...`,
@@ -1,4 +1,6 @@
1
- const createYargsForComponentDestroy = ({ componentName }) => {
1
+ const createYargsForComponentDestroy = ({
2
+ componentName
3
+ }) => {
2
4
  return {
3
5
  command: `${componentName} <name>`,
4
6
  description: `Destroy a ${componentName} component`,
@@ -1,7 +1,6 @@
1
- import { files as layoutFiles } from "../../generate/layout/layoutHandler.js";
2
1
  import { createYargsForComponentDestroy, createHandler } from "../helpers.js";
3
2
  const { command, description, builder } = createYargsForComponentDestroy(
4
- { componentName: "layout", filesFn: layoutFiles }
3
+ { componentName: "layout" }
5
4
  );
6
5
  const handler = createHandler("layout");
7
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "5.0.0-canary.2442",
3
+ "version": "5.0.0-canary.2446",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,17 +33,17 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.3",
35
35
  "@babel/preset-typescript": "7.28.5",
36
- "@cedarjs/api-server": "5.0.0-canary.2442",
37
- "@cedarjs/cli-helpers": "5.0.0-canary.2442",
38
- "@cedarjs/fastify-web": "5.0.0-canary.2442",
39
- "@cedarjs/internal": "5.0.0-canary.2442",
40
- "@cedarjs/prerender": "5.0.0-canary.2442",
41
- "@cedarjs/project-config": "5.0.0-canary.2442",
42
- "@cedarjs/structure": "5.0.0-canary.2442",
43
- "@cedarjs/telemetry": "5.0.0-canary.2442",
44
- "@cedarjs/utils": "5.0.0-canary.2442",
45
- "@cedarjs/vite": "5.0.0-canary.2442",
46
- "@cedarjs/web-server": "5.0.0-canary.2442",
36
+ "@cedarjs/api-server": "5.0.0-canary.2446",
37
+ "@cedarjs/cli-helpers": "5.0.0-canary.2446",
38
+ "@cedarjs/fastify-web": "5.0.0-canary.2446",
39
+ "@cedarjs/internal": "5.0.0-canary.2446",
40
+ "@cedarjs/prerender": "5.0.0-canary.2446",
41
+ "@cedarjs/project-config": "5.0.0-canary.2446",
42
+ "@cedarjs/structure": "5.0.0-canary.2446",
43
+ "@cedarjs/telemetry": "5.0.0-canary.2446",
44
+ "@cedarjs/utils": "5.0.0-canary.2446",
45
+ "@cedarjs/vite": "5.0.0-canary.2446",
46
+ "@cedarjs/web-server": "5.0.0-canary.2446",
47
47
  "@listr2/prompt-adapter-enquirer": "4.2.1",
48
48
  "@opentelemetry/api": "1.9.1",
49
49
  "@opentelemetry/core": "1.30.1",
@@ -83,7 +83,7 @@
83
83
  "rimraf": "6.1.3",
84
84
  "semver": "7.7.4",
85
85
  "smol-toml": "1.6.1",
86
- "srvx": "0.11.15",
86
+ "srvx": "0.11.16",
87
87
  "string-env-interpolation": "1.0.1",
88
88
  "systeminformation": "5.31.5",
89
89
  "termi-link": "1.1.0",