@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.
- package/dist/commands/destroy/component/component.js +2 -3
- package/dist/commands/destroy/directive/directive.js +1 -3
- package/dist/commands/destroy/function/function.js +1 -3
- package/dist/commands/destroy/handlerHelpers.js +5 -1
- package/dist/commands/destroy/helpers.js +3 -1
- package/dist/commands/destroy/layout/layout.js +1 -2
- package/package.json +13 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createHandler, createYargsForComponentDestroy } from "../helpers.js";
|
|
2
2
|
const description = "Destroy a component";
|
|
3
|
-
const { command, builder
|
|
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 = ({
|
|
4
|
+
const tasks = ({
|
|
5
|
+
componentName,
|
|
6
|
+
filesFn,
|
|
7
|
+
name
|
|
8
|
+
}) => new Listr(
|
|
5
9
|
[
|
|
6
10
|
{
|
|
7
11
|
title: `Destroying ${componentName} files...`,
|
|
@@ -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"
|
|
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.
|
|
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.
|
|
37
|
-
"@cedarjs/cli-helpers": "5.0.0-canary.
|
|
38
|
-
"@cedarjs/fastify-web": "5.0.0-canary.
|
|
39
|
-
"@cedarjs/internal": "5.0.0-canary.
|
|
40
|
-
"@cedarjs/prerender": "5.0.0-canary.
|
|
41
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
42
|
-
"@cedarjs/structure": "5.0.0-canary.
|
|
43
|
-
"@cedarjs/telemetry": "5.0.0-canary.
|
|
44
|
-
"@cedarjs/utils": "5.0.0-canary.
|
|
45
|
-
"@cedarjs/vite": "5.0.0-canary.
|
|
46
|
-
"@cedarjs/web-server": "5.0.0-canary.
|
|
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.
|
|
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",
|