Skip to content

Commit 37e49ce

Browse files
committed
fix: dynamically load version from package.json
1 parent 2bc11f0 commit 37e49ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const chalk = require('chalk');
66
const fs = require('fs');
77
const path = require('path');
88
const { execSync } = require('child_process');
9+
const packageJson = require('./package.json');
910

1011
// Get the current directory name for default output file
1112
const getCurrentDirectoryName = () => {
@@ -17,7 +18,7 @@ const getCurrentDirectoryName = () => {
1718
program
1819
.name('code2prompt-manager')
1920
.description('A CLI tool to manage code2prompt file size limits')
20-
.version('1.0.0');
21+
.version(packageJson.version);
2122

2223
// Command line options
2324
program

0 commit comments

Comments
 (0)