crabygen 0.1.0-alpha.7 → 0.1.0-alpha.9
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/index.cjs +17 -11
- package/dist/index.js +8 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -21,13 +21,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
|
-
let __craby_cli_bindings = require("@craby/cli-bindings");
|
|
25
|
-
__craby_cli_bindings = __toESM(__craby_cli_bindings);
|
|
26
24
|
let __commander_js_extra_typings = require("@commander-js/extra-typings");
|
|
27
25
|
__commander_js_extra_typings = __toESM(__commander_js_extra_typings);
|
|
26
|
+
let __craby_cli_bindings = require("@craby/cli-bindings");
|
|
27
|
+
__craby_cli_bindings = __toESM(__craby_cli_bindings);
|
|
28
28
|
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "0.1.0-alpha.
|
|
30
|
+
var version = "0.1.0-alpha.9";
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/utils/bindings.ts
|
|
34
|
+
function getBindings() {
|
|
35
|
+
return __craby_cli_bindings;
|
|
36
|
+
}
|
|
31
37
|
|
|
32
38
|
//#endregion
|
|
33
39
|
//#region src/utils/command.ts
|
|
@@ -45,32 +51,32 @@ function resolveProjectRoot() {
|
|
|
45
51
|
//#endregion
|
|
46
52
|
//#region src/commands/build.ts
|
|
47
53
|
const command = withVerbose(new __commander_js_extra_typings.Command().name("build").action(async () => {
|
|
48
|
-
|
|
54
|
+
getBindings().build({ projectRoot: resolveProjectRoot() });
|
|
49
55
|
}));
|
|
50
56
|
|
|
51
57
|
//#endregion
|
|
52
58
|
//#region src/commands/clean.ts
|
|
53
59
|
const command$1 = withVerbose(new __commander_js_extra_typings.Command().name("clean").action(async () => {
|
|
54
|
-
|
|
60
|
+
getBindings().clean({ projectRoot: resolveProjectRoot() });
|
|
55
61
|
}));
|
|
56
62
|
|
|
57
63
|
//#endregion
|
|
58
64
|
//#region src/commands/codegen.ts
|
|
59
65
|
async function runCodegen() {
|
|
60
|
-
|
|
66
|
+
getBindings().codegen({ projectRoot: resolveProjectRoot() });
|
|
61
67
|
}
|
|
62
68
|
const command$2 = withVerbose(new __commander_js_extra_typings.Command().name("codegen").action(runCodegen));
|
|
63
69
|
|
|
64
70
|
//#endregion
|
|
65
71
|
//#region src/commands/doctor.ts
|
|
66
72
|
const command$3 = withVerbose(new __commander_js_extra_typings.Command().name("doctor").action(async () => {
|
|
67
|
-
|
|
73
|
+
getBindings().doctor({ projectRoot: resolveProjectRoot() });
|
|
68
74
|
}));
|
|
69
75
|
|
|
70
76
|
//#endregion
|
|
71
77
|
//#region src/commands/init.ts
|
|
72
78
|
const command$4 = withVerbose(new __commander_js_extra_typings.Command().name("init").argument("<packageName>", "The name of the package").action(async (packageName) => {
|
|
73
|
-
|
|
79
|
+
getBindings().init({
|
|
74
80
|
cwd: process.cwd(),
|
|
75
81
|
pkgName: packageName
|
|
76
82
|
});
|
|
@@ -79,7 +85,7 @@ const command$4 = withVerbose(new __commander_js_extra_typings.Command().name("i
|
|
|
79
85
|
//#endregion
|
|
80
86
|
//#region src/commands/show.ts
|
|
81
87
|
const command$5 = withVerbose(new __commander_js_extra_typings.Command().name("show").action(async () => {
|
|
82
|
-
|
|
88
|
+
getBindings().show({ projectRoot: resolveProjectRoot() });
|
|
83
89
|
}));
|
|
84
90
|
|
|
85
91
|
//#endregion
|
|
@@ -106,7 +112,7 @@ function run$1(baseCommand) {
|
|
|
106
112
|
let logger = null;
|
|
107
113
|
function getLogger() {
|
|
108
114
|
if (logger) return logger;
|
|
109
|
-
const bindings =
|
|
115
|
+
const bindings = getBindings();
|
|
110
116
|
logger = {
|
|
111
117
|
trace: bindings.trace,
|
|
112
118
|
debug: bindings.debug,
|
|
@@ -123,7 +129,7 @@ const loggerProxy = new Proxy({}, { get(_, prop) {
|
|
|
123
129
|
//#endregion
|
|
124
130
|
//#region src/index.ts
|
|
125
131
|
async function run(baseCommand = "crabygen") {
|
|
126
|
-
const { setup } =
|
|
132
|
+
const { setup } = getBindings();
|
|
127
133
|
const verbose = Boolean(process.argv.find((arg) => arg === "-v" || arg === "--verbose"));
|
|
128
134
|
try {
|
|
129
135
|
setup(verbose ? "debug" : process.env.RUST_LOG);
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { getBindings } from "@craby/cli-bindings";
|
|
2
1
|
import { Command, Option, program } from "@commander-js/extra-typings";
|
|
2
|
+
import * as mod from "@craby/cli-bindings";
|
|
3
3
|
|
|
4
4
|
//#region package.json
|
|
5
|
-
var version = "0.1.0-alpha.
|
|
5
|
+
var version = "0.1.0-alpha.9";
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/utils/bindings.ts
|
|
9
|
+
function getBindings() {
|
|
10
|
+
return mod;
|
|
11
|
+
}
|
|
6
12
|
|
|
7
13
|
//#endregion
|
|
8
14
|
//#region src/utils/command.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crabygen",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"craby": "./bin-craby.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"homepage": "https://github.com/leegeunhyeok/craby#readme",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@commander-js/extra-typings": "^14.0.0",
|
|
26
|
-
"@craby/cli-bindings": "0.1.0-alpha.
|
|
26
|
+
"@craby/cli-bindings": "0.1.0-alpha.9",
|
|
27
27
|
"commander": "^14.0.1",
|
|
28
28
|
"es-toolkit": "^1.39.10"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22",
|
|
32
|
-
"tsdown": "^0.15.
|
|
32
|
+
"tsdown": "^0.15.6",
|
|
33
33
|
"typescript": "^5.9.2"
|
|
34
34
|
},
|
|
35
35
|
"packageManager": "yarn@4.9.2"
|