twitchdropsminer-cli 0.1.3 → 0.1.4

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/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from "@commander-js/extra-typings";
3
+ import { createRequire } from "node:module";
3
4
  import { runCommand } from "./commands/run.js";
4
5
  import { authCommand } from "./commands/auth.js";
5
6
  import { statusCommand } from "./commands/status.js";
@@ -11,10 +12,12 @@ import { serviceCommand } from "./commands/service.js";
11
12
  import { logsCommand } from "./commands/logs.js";
12
13
  import { ensureSingleInstanceLock } from "../core/runtime.js";
13
14
  const program = new Command();
15
+ const require = createRequire(import.meta.url);
16
+ const { version } = require("../../package.json");
14
17
  program
15
18
  .name("tdm")
16
19
  .description("Twitch Drops Miner CLI (headless)")
17
- .version("0.1.0");
20
+ .version(version);
18
21
  program.hook("preAction", (_thisCommand, actionCommand) => {
19
22
  if (actionCommand.name() === "run" && !actionCommand.getOptionValue("noLock")) {
20
23
  ensureSingleInstanceLock();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twitchdropsminer-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Headless CLI rewrite of DevilXD/TwitchDropsMiner for mining Twitch drops on servers.",
5
5
  "bin": {
6
6
  "tdm": "dist/cli/index.js"