@hostlink/hostlink-cli 1.0.2 → 1.0.3

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/bundle.js CHANGED
@@ -65358,6 +65358,51 @@ var require_leave = __commonJS({
65358
65358
  }
65359
65359
  });
65360
65360
 
65361
+ // package.json
65362
+ var require_package = __commonJS({
65363
+ "package.json"(exports2, module2) {
65364
+ module2.exports = {
65365
+ name: "@hostlink/hostlink-cli",
65366
+ version: "1.0.3",
65367
+ description: "CLI tool for the HostLink platform",
65368
+ main: "index.js",
65369
+ bin: {
65370
+ hostlink: "dist/bundle.js"
65371
+ },
65372
+ files: [
65373
+ "dist/bundle.js"
65374
+ ],
65375
+ publishConfig: {
65376
+ access: "public"
65377
+ },
65378
+ scripts: {
65379
+ build: "esbuild index.js --bundle --platform=node --outfile=dist/bundle.js",
65380
+ prepublishOnly: "npm run build"
65381
+ },
65382
+ keywords: [
65383
+ "hostlink",
65384
+ "cli"
65385
+ ],
65386
+ author: "HostLink",
65387
+ license: "MIT",
65388
+ repository: {
65389
+ type: "git",
65390
+ url: "https://github.com/HostLink/hostlink-cli"
65391
+ },
65392
+ type: "commonjs",
65393
+ dependencies: {
65394
+ commander: "^14.0.3",
65395
+ conf: "^10.2.0",
65396
+ "graphql-request": "^7.4.0",
65397
+ inquirer: "^8.2.6"
65398
+ },
65399
+ devDependencies: {
65400
+ esbuild: "^0.27.4"
65401
+ }
65402
+ };
65403
+ }
65404
+ });
65405
+
65361
65406
  // index.js
65362
65407
  var { Command } = require_commander();
65363
65408
  var Conf = require_source();
@@ -65369,7 +65414,7 @@ var me = require_me();
65369
65414
  var leave = require_leave();
65370
65415
  var config = new Conf({ projectName: "hostlink-cli" });
65371
65416
  var program = new Command();
65372
- program.name("hostlink").description("HostLink CLI").version("1.0.0");
65417
+ program.name("hostlink").description("HostLink CLI").version(require_package().version);
65373
65418
  program.command("set-token <token>").description("Save your access token").action((token) => {
65374
65419
  config.set("token", token);
65375
65420
  console.log("Token saved.");
package/index.js CHANGED
@@ -16,7 +16,7 @@ const program = new Command();
16
16
  program
17
17
  .name('hostlink')
18
18
  .description('HostLink CLI')
19
- .version('1.0.0');
19
+ .version(require('./package.json').version);
20
20
 
21
21
  program
22
22
  .command('set-token <token>')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/hostlink-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI tool for the HostLink platform",
5
5
  "main": "index.js",
6
6
  "bin": {