@fenglimg/fabric-cli 0.1.0 → 0.1.2
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/{bootstrap-5JAUC3JW.js → bootstrap-BBFPEJQP.js} +3 -2
- package/dist/{chunk-LHPBYOF5.js → chunk-3FZPYATY.js} +2 -0
- package/dist/{chunk-JLIIQ75E.js → chunk-AEOYCVBG.js} +2 -0
- package/dist/{chunk-ZTNSMODH.js → chunk-P4KVFB2T.js} +2 -0
- package/dist/{chunk-24U57BQE.js → chunk-PJ4J4377.js} +2 -0
- package/dist/{chunk-RRDTXAUS.js → chunk-SC4A43WR.js} +3 -2
- package/dist/{chunk-KQ77ZBWO.js → chunk-YHIKLBTB.js} +2 -0
- package/dist/{chunk-QK6XBP6I.js → chunk-ZW4M4WZB.js} +2 -1
- package/dist/{config-FC7AKEU7.js → config-TNY6BCQ2.js} +2 -1
- package/dist/{hooks-2FGWPKQ3.js → hooks-QWVCECWF.js} +2 -0
- package/dist/{human-lint-P7SLDBZK.js → human-lint-SV4D5LQ7.js} +2 -1
- package/dist/index.js +13 -10
- package/dist/{init-OM7PLR3J.js → init-VR43EQRO.js} +4 -3
- package/dist/{ledger-append-WA6ZJSMS.js → ledger-append-KYPMIAM4.js} +2 -1
- package/dist/{pre-commit-XKYQGUMV.js → pre-commit-ICTZBF6F.js} +6 -5
- package/dist/{scan-SE25KUZV.js → scan-COKVYPOH.js} +4 -3
- package/dist/{sync-meta-WM3A7FJP.js → sync-meta-YIB7IBHK.js} +3 -2
- package/package.json +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
resolveClients
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3FZPYATY.js";
|
|
4
5
|
import {
|
|
5
6
|
readFabricConfig
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AEOYCVBG.js";
|
|
7
8
|
|
|
8
9
|
// src/commands/bootstrap.ts
|
|
9
10
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
createDebugLogger,
|
|
3
4
|
readFabricConfig,
|
|
4
5
|
resolveDevMode
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AEOYCVBG.js";
|
|
6
7
|
import {
|
|
7
8
|
resolveIgnores
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P4KVFB2T.js";
|
|
9
10
|
|
|
10
11
|
// src/commands/scan.ts
|
|
11
12
|
import { existsSync as existsSync2, readdirSync, readFileSync as readFileSync2, statSync } from "fs";
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
// src/index.ts
|
|
4
|
+
import { realpathSync } from "fs";
|
|
2
5
|
import { resolve } from "path";
|
|
3
6
|
import { fileURLToPath } from "url";
|
|
4
7
|
import { defineCommand, runMain } from "citty";
|
|
5
8
|
|
|
6
9
|
// src/commands/index.ts
|
|
7
10
|
var allCommands = {
|
|
8
|
-
bootstrap: () => import("./bootstrap-
|
|
9
|
-
init: () => import("./init-
|
|
10
|
-
scan: () => import("./scan-
|
|
11
|
-
"sync-meta": () => import("./sync-meta-
|
|
12
|
-
"human-lint": () => import("./human-lint-
|
|
13
|
-
"ledger-append": () => import("./ledger-append-
|
|
14
|
-
hooks: () => import("./hooks-
|
|
15
|
-
config: () => import("./config-
|
|
16
|
-
"pre-commit": () => import("./pre-commit-
|
|
11
|
+
bootstrap: () => import("./bootstrap-BBFPEJQP.js").then((module) => module.default),
|
|
12
|
+
init: () => import("./init-VR43EQRO.js").then((module) => module.default),
|
|
13
|
+
scan: () => import("./scan-COKVYPOH.js").then((module) => module.default),
|
|
14
|
+
"sync-meta": () => import("./sync-meta-YIB7IBHK.js").then((module) => module.default),
|
|
15
|
+
"human-lint": () => import("./human-lint-SV4D5LQ7.js").then((module) => module.default),
|
|
16
|
+
"ledger-append": () => import("./ledger-append-KYPMIAM4.js").then((module) => module.default),
|
|
17
|
+
hooks: () => import("./hooks-QWVCECWF.js").then((module) => module.default),
|
|
18
|
+
config: () => import("./config-TNY6BCQ2.js").then((module) => module.configCmd),
|
|
19
|
+
"pre-commit": () => import("./pre-commit-ICTZBF6F.js").then((module) => module.default)
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
// src/index.ts
|
|
@@ -30,7 +33,7 @@ async function run() {
|
|
|
30
33
|
}
|
|
31
34
|
var entrypoint = process.argv[1];
|
|
32
35
|
var currentFilePath = fileURLToPath(import.meta.url);
|
|
33
|
-
var isMainModule = entrypoint !== void 0 && resolve(entrypoint) === currentFilePath;
|
|
36
|
+
var isMainModule = entrypoint !== void 0 && realpathSync(resolve(entrypoint)) === currentFilePath;
|
|
34
37
|
if (isMainModule) {
|
|
35
38
|
void run();
|
|
36
39
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
createScanReport
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SC4A43WR.js";
|
|
4
5
|
import {
|
|
5
6
|
createDebugLogger,
|
|
6
7
|
resolveDevMode
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-AEOYCVBG.js";
|
|
9
|
+
import "./chunk-P4KVFB2T.js";
|
|
9
10
|
|
|
10
11
|
// src/commands/init.ts
|
|
11
12
|
import { createHash } from "crypto";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
resolveDevModeTarget
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AEOYCVBG.js";
|
|
4
5
|
import {
|
|
5
6
|
sync_meta_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ZW4M4WZB.js";
|
|
8
|
+
import "./chunk-P4KVFB2T.js";
|
|
8
9
|
import {
|
|
9
10
|
human_lint_default
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YHIKLBTB.js";
|
|
11
12
|
import {
|
|
12
13
|
ledger_append_default
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PJ4J4377.js";
|
|
14
15
|
|
|
15
16
|
// src/commands/pre-commit.ts
|
|
16
17
|
import { defineCommand } from "citty";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
createScanReport,
|
|
3
4
|
scanCommand,
|
|
4
5
|
scan_default
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-SC4A43WR.js";
|
|
7
|
+
import "./chunk-AEOYCVBG.js";
|
|
8
|
+
import "./chunk-P4KVFB2T.js";
|
|
8
9
|
export {
|
|
9
10
|
createScanReport,
|
|
10
11
|
scan_default as default,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import {
|
|
2
3
|
computeAgentsMeta,
|
|
3
4
|
syncMetaCommand,
|
|
4
5
|
sync_meta_default
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-ZW4M4WZB.js";
|
|
7
|
+
import "./chunk-P4KVFB2T.js";
|
|
7
8
|
export {
|
|
8
9
|
computeAgentsMeta,
|
|
9
10
|
sync_meta_default as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fenglimg/fabric-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"fab": "./dist/index.js"
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "tsup
|
|
15
|
-
"dev": "tsup
|
|
14
|
+
"build": "tsup",
|
|
15
|
+
"dev": "tsup --watch"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@fenglimg/fabric-server": "^0.1.0",
|