Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPELCAT committed Dec 26, 2023
1 parent 8a88f94 commit 0577285
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand All @@ -12,7 +13,7 @@ const cliArgs: CliArgs = {
console.log(figlet.textSync("YTDL", { horizontalLayout: "full" }));

program
.version("0.1.0")
.version(packageJon.version)
.argument("<url>", "Youtube URL")
.action((url: string) => {
cliArgs.url = url;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["ESNext", "dom"],
"declaration": false,
"outDir": "dist",
"rootDir": "src",
"rootDir": ".",
"sourceMap": false,
"strict": true,
"types": ["node"],
Expand Down

0 comments on commit 0577285

Please sign in to comment.