@anraktech/sync 0.2.0 → 0.2.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.
- package/dist/cli.js +7 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -934,8 +934,14 @@ async function startWatching(config) {
|
|
|
934
934
|
}
|
|
935
935
|
|
|
936
936
|
// src/cli.ts
|
|
937
|
+
import { readFileSync as readFileSync2 } from "fs";
|
|
938
|
+
import { fileURLToPath } from "url";
|
|
939
|
+
import { dirname as dirname2, join as join3 } from "path";
|
|
940
|
+
var __filename2 = fileURLToPath(import.meta.url);
|
|
941
|
+
var __dirname2 = dirname2(__filename2);
|
|
942
|
+
var pkg = JSON.parse(readFileSync2(join3(__dirname2, "..", "package.json"), "utf-8"));
|
|
937
943
|
var program = new Command();
|
|
938
|
-
program.name("anrak-sync").description("AnrakLegal desktop file sync \u2014 watches local folders, syncs to case management").version(
|
|
944
|
+
program.name("anrak-sync").description("AnrakLegal desktop file sync \u2014 watches local folders, syncs to case management").version(pkg.version);
|
|
939
945
|
program.command("init").description("Set up AnrakLegal Sync (first-time configuration)").option("--password", "Use email/password login instead of browser").action(async (opts) => {
|
|
940
946
|
const rl = createInterface2({ input: stdin2, output: stdout2 });
|
|
941
947
|
try {
|