@cedarjs/cli 5.0.0-canary.2579 → 5.0.0-canary.2580
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 { terminalLink } from "termi-link";
|
|
2
2
|
import { createHandler, getYargsDefaults } from "../yargsCommandHelpers.js";
|
|
3
|
-
const
|
|
3
|
+
const getDefaultOptions = () => {
|
|
4
4
|
return {
|
|
5
5
|
...getYargsDefaults(),
|
|
6
6
|
crud: {
|
|
@@ -34,7 +34,7 @@ const builder = (yargs) => {
|
|
|
34
34
|
"https://cedarjs.com/docs/cli-commands#generate-sdl"
|
|
35
35
|
)}`
|
|
36
36
|
);
|
|
37
|
-
Object.entries(
|
|
37
|
+
Object.entries(getDefaultOptions()).forEach(([option, config]) => {
|
|
38
38
|
yargs.option(option, config);
|
|
39
39
|
});
|
|
40
40
|
return yargs;
|
|
@@ -44,6 +44,6 @@ export {
|
|
|
44
44
|
builder,
|
|
45
45
|
command,
|
|
46
46
|
description,
|
|
47
|
-
|
|
47
|
+
getDefaultOptions,
|
|
48
48
|
handler
|
|
49
49
|
};
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
createHandler,
|
|
6
6
|
getYargsDefaults
|
|
7
7
|
} from "../yargsCommandHelpers.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const getDefaultOptions = () => {
|
|
9
|
+
return {
|
|
10
10
|
...getYargsDefaults(),
|
|
11
11
|
tests: {
|
|
12
12
|
description: "Generate test files",
|
|
@@ -18,7 +18,6 @@ const defaults = () => {
|
|
|
18
18
|
type: "boolean"
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
return defaults2;
|
|
22
21
|
};
|
|
23
22
|
const command = createCommand("service");
|
|
24
23
|
const description = createDescription("service");
|
|
@@ -36,7 +35,7 @@ const builder = (yargs) => {
|
|
|
36
35
|
"https://cedarjs.com/docs/cli-commands#generate-service"
|
|
37
36
|
)}`
|
|
38
37
|
);
|
|
39
|
-
Object.entries(
|
|
38
|
+
Object.entries(getDefaultOptions()).forEach(([option, config]) => {
|
|
40
39
|
yargs.option(option, config);
|
|
41
40
|
});
|
|
42
41
|
return yargs;
|
|
@@ -45,7 +44,7 @@ const handler = createHandler("service");
|
|
|
45
44
|
export {
|
|
46
45
|
builder,
|
|
47
46
|
command,
|
|
48
|
-
defaults,
|
|
49
47
|
description,
|
|
48
|
+
getDefaultOptions,
|
|
50
49
|
handler
|
|
51
50
|
};
|
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.2580",
|
|
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.7",
|
|
35
35
|
"@babel/preset-typescript": "7.29.7",
|
|
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.2580",
|
|
37
|
+
"@cedarjs/cli-helpers": "5.0.0-canary.2580",
|
|
38
|
+
"@cedarjs/fastify-web": "5.0.0-canary.2580",
|
|
39
|
+
"@cedarjs/internal": "5.0.0-canary.2580",
|
|
40
|
+
"@cedarjs/prerender": "5.0.0-canary.2580",
|
|
41
|
+
"@cedarjs/project-config": "5.0.0-canary.2580",
|
|
42
|
+
"@cedarjs/structure": "5.0.0-canary.2580",
|
|
43
|
+
"@cedarjs/telemetry": "5.0.0-canary.2580",
|
|
44
|
+
"@cedarjs/utils": "5.0.0-canary.2580",
|
|
45
|
+
"@cedarjs/vite": "5.0.0-canary.2580",
|
|
46
|
+
"@cedarjs/web-server": "5.0.0-canary.2580",
|
|
47
47
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
48
48
|
"@opentelemetry/api": "1.9.1",
|
|
49
49
|
"@opentelemetry/core": "1.30.1",
|