From 05772856f3a130f091bd1319c69c3dc3ce8aa908 Mon Sep 17 00:00:00 2001 From: MartinPELCAT Date: Wed, 27 Dec 2023 00:06:20 +0100 Subject: [PATCH] fix version --- package.json | 6 +++--- src/index.ts | 3 ++- tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7583152..c81d0ac 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "ytdl-utils-cli", - "version": "0.5.5", + "version": "0.5.6", "description": "", - "main": "./dist/index.js", + "main": "./dist/src/index.js", "bin": { - "ytdl": "./dist/index.js" + "ytdl": "./dist/src/index.js" }, "publishConfig": { "registry": "https://registry.npmjs.org/" diff --git a/src/index.ts b/src/index.ts index 8271cc8..a651ee5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,7 @@ import { program } from "commander"; import figlet from "figlet"; import { handleConfiguration } from "./services/configuration"; import { handleDownload } from "./services/download"; +import packageJon from "../package.json" const cliArgs: CliArgs = { url: "", @@ -12,7 +13,7 @@ const cliArgs: CliArgs = { console.log(figlet.textSync("YTDL", { horizontalLayout: "full" })); program - .version("0.1.0") + .version(packageJon.version) .argument("", "Youtube URL") .action((url: string) => { cliArgs.url = url; diff --git a/tsconfig.json b/tsconfig.json index 5546454..0224ac7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "lib": ["ESNext", "dom"], "declaration": false, "outDir": "dist", - "rootDir": "src", + "rootDir": ".", "sourceMap": false, "strict": true, "types": ["node"],