@fenglimg/fabric-cli 0.1.0 → 0.1.1

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,9 +1,10 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  resolveClients
3
- } from "./chunk-LHPBYOF5.js";
4
+ } from "./chunk-3FZPYATY.js";
4
5
  import {
5
6
  readFabricConfig
6
- } from "./chunk-JLIIQ75E.js";
7
+ } from "./chunk-AEOYCVBG.js";
7
8
 
8
9
  // src/commands/bootstrap.ts
9
10
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/config/resolver.ts
2
4
  import { existsSync as existsSync4 } from "fs";
3
5
  import { join as join4 } from "path";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/dev-mode.ts
2
4
  import { existsSync, readFileSync } from "fs";
3
5
  import { isAbsolute, join, resolve } from "path";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/scanner/ignores.ts
2
4
  var DEFAULT_IGNORES = [
3
5
  "**/*.meta",
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/commands/ledger-append.ts
2
4
  import { execSync } from "child_process";
3
5
  import { appendFileSync, existsSync, readFileSync, statSync } 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-JLIIQ75E.js";
6
+ } from "./chunk-AEOYCVBG.js";
6
7
  import {
7
8
  resolveIgnores
8
- } from "./chunk-ZTNSMODH.js";
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";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/commands/human-lint.ts
2
4
  import { createHash } from "crypto";
3
5
  import { existsSync } from "fs";
@@ -1,6 +1,7 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  resolveIgnores
3
- } from "./chunk-ZTNSMODH.js";
4
+ } from "./chunk-P4KVFB2T.js";
4
5
 
5
6
  // src/commands/sync-meta.ts
6
7
  import { createHash } from "crypto";
@@ -1,6 +1,7 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  resolveClients
3
- } from "./chunk-LHPBYOF5.js";
4
+ } from "./chunk-3FZPYATY.js";
4
5
 
5
6
  // src/commands/config.ts
6
7
  import { existsSync } from "fs";
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/commands/hooks.ts
2
4
  import { chmodSync, existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "fs";
3
5
  import { dirname, isAbsolute, join, parse, resolve } from "path";
@@ -1,7 +1,8 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  humanLintCommand,
3
4
  human_lint_default
4
- } from "./chunk-KQ77ZBWO.js";
5
+ } from "./chunk-YHIKLBTB.js";
5
6
  export {
6
7
  human_lint_default as default,
7
8
  humanLintCommand
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env node
2
+
1
3
  // src/index.ts
2
4
  import { resolve } from "path";
3
5
  import { fileURLToPath } from "url";
@@ -5,15 +7,15 @@ import { defineCommand, runMain } from "citty";
5
7
 
6
8
  // src/commands/index.ts
7
9
  var allCommands = {
8
- bootstrap: () => import("./bootstrap-5JAUC3JW.js").then((module) => module.default),
9
- init: () => import("./init-OM7PLR3J.js").then((module) => module.default),
10
- scan: () => import("./scan-SE25KUZV.js").then((module) => module.default),
11
- "sync-meta": () => import("./sync-meta-WM3A7FJP.js").then((module) => module.default),
12
- "human-lint": () => import("./human-lint-P7SLDBZK.js").then((module) => module.default),
13
- "ledger-append": () => import("./ledger-append-WA6ZJSMS.js").then((module) => module.default),
14
- hooks: () => import("./hooks-2FGWPKQ3.js").then((module) => module.default),
15
- config: () => import("./config-FC7AKEU7.js").then((module) => module.configCmd),
16
- "pre-commit": () => import("./pre-commit-XKYQGUMV.js").then((module) => module.default)
10
+ bootstrap: () => import("./bootstrap-BBFPEJQP.js").then((module) => module.default),
11
+ init: () => import("./init-VR43EQRO.js").then((module) => module.default),
12
+ scan: () => import("./scan-COKVYPOH.js").then((module) => module.default),
13
+ "sync-meta": () => import("./sync-meta-YIB7IBHK.js").then((module) => module.default),
14
+ "human-lint": () => import("./human-lint-SV4D5LQ7.js").then((module) => module.default),
15
+ "ledger-append": () => import("./ledger-append-KYPMIAM4.js").then((module) => module.default),
16
+ hooks: () => import("./hooks-QWVCECWF.js").then((module) => module.default),
17
+ config: () => import("./config-TNY6BCQ2.js").then((module) => module.configCmd),
18
+ "pre-commit": () => import("./pre-commit-ICTZBF6F.js").then((module) => module.default)
17
19
  };
18
20
 
19
21
  // src/index.ts
@@ -1,11 +1,12 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  createScanReport
3
- } from "./chunk-RRDTXAUS.js";
4
+ } from "./chunk-SC4A43WR.js";
4
5
  import {
5
6
  createDebugLogger,
6
7
  resolveDevMode
7
- } from "./chunk-JLIIQ75E.js";
8
- import "./chunk-ZTNSMODH.js";
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,7 +1,8 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  ledgerAppendCommand,
3
4
  ledger_append_default
4
- } from "./chunk-24U57BQE.js";
5
+ } from "./chunk-PJ4J4377.js";
5
6
  export {
6
7
  ledger_append_default as default,
7
8
  ledgerAppendCommand
@@ -1,16 +1,17 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  resolveDevModeTarget
3
- } from "./chunk-JLIIQ75E.js";
4
+ } from "./chunk-AEOYCVBG.js";
4
5
  import {
5
6
  sync_meta_default
6
- } from "./chunk-QK6XBP6I.js";
7
- import "./chunk-ZTNSMODH.js";
7
+ } from "./chunk-ZW4M4WZB.js";
8
+ import "./chunk-P4KVFB2T.js";
8
9
  import {
9
10
  human_lint_default
10
- } from "./chunk-KQ77ZBWO.js";
11
+ } from "./chunk-YHIKLBTB.js";
11
12
  import {
12
13
  ledger_append_default
13
- } from "./chunk-24U57BQE.js";
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-RRDTXAUS.js";
6
- import "./chunk-JLIIQ75E.js";
7
- import "./chunk-ZTNSMODH.js";
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-QK6XBP6I.js";
6
- import "./chunk-ZTNSMODH.js";
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.0",
3
+ "version": "0.1.1",
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 src/index.ts --format esm --dts --clean",
15
- "dev": "tsup src/index.ts --format esm --dts --watch"
14
+ "build": "tsup",
15
+ "dev": "tsup --watch"
16
16
  },
17
17
  "dependencies": {
18
18
  "@fenglimg/fabric-server": "^0.1.0",