hsync-cli 1.0.4 → 1.0.5
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/bin.js +35 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -52058,10 +52058,44 @@ async function editSyncJob(name, options) {
|
|
|
52058
52058
|
process.exit(1);
|
|
52059
52059
|
}
|
|
52060
52060
|
}
|
|
52061
|
+
// package.json
|
|
52062
|
+
var package_default = {
|
|
52063
|
+
name: "hsync-cli",
|
|
52064
|
+
version: "1.0.5",
|
|
52065
|
+
description: "hsync CLI for file sync operations",
|
|
52066
|
+
bin: {
|
|
52067
|
+
hsync: "./dist/bin.js"
|
|
52068
|
+
},
|
|
52069
|
+
files: [
|
|
52070
|
+
"dist/bin.js"
|
|
52071
|
+
],
|
|
52072
|
+
main: "./src/index.ts",
|
|
52073
|
+
scripts: {
|
|
52074
|
+
dev: "bun --watch src/index.ts",
|
|
52075
|
+
build: `bun build src/index.ts --compile --define "process.env.DEFAULT_SERVER_URL='https://hsync-backend.giftsh.in'" --outfile dist/hsync`,
|
|
52076
|
+
"build:js": "bun scripts/build-js.ts",
|
|
52077
|
+
prepublishOnly: "bun run build:js",
|
|
52078
|
+
start: "bun src/index.ts",
|
|
52079
|
+
test: "bun test"
|
|
52080
|
+
},
|
|
52081
|
+
dependencies: {
|
|
52082
|
+
chalk: "^5.3.0",
|
|
52083
|
+
commander: "^12.0.0",
|
|
52084
|
+
axios: "^1.6.5",
|
|
52085
|
+
inquirer: "^9.2.12",
|
|
52086
|
+
ora: "^8.0.1"
|
|
52087
|
+
},
|
|
52088
|
+
devDependencies: {
|
|
52089
|
+
"@file-sync/sync-engine": "workspace:*",
|
|
52090
|
+
"@types/bun": "^1.1.0",
|
|
52091
|
+
"@types/node": "^20.11.0",
|
|
52092
|
+
typescript: "^5.3.0"
|
|
52093
|
+
}
|
|
52094
|
+
};
|
|
52061
52095
|
|
|
52062
52096
|
// src/index.ts
|
|
52063
52097
|
var program2 = new Command;
|
|
52064
|
-
program2.name("hsync").description("hsync CLI - Premium cross-device file synchronization client").version(
|
|
52098
|
+
program2.name("hsync").description("hsync CLI - Premium cross-device file synchronization client").version(package_default.version);
|
|
52065
52099
|
var configCmd = program2.command("config").description("Configure CLI settings");
|
|
52066
52100
|
configCmd.command("set-server <url>").description("Set target API server URL").action(async (url2) => {
|
|
52067
52101
|
await setServer(url2);
|