Skip to content

Commit

Permalink
Fix version number of installer
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebremer committed Mar 16, 2024
1 parent 2315964 commit cff6a3f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/installer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export declare namespace Installer {
}
const CWD: string;
const DIR: string;
const VERSION = "Version 1.1.0";
const VERSION: string;
const HELP: string[];
function run(argv: Array<string>): Promise<void>;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/installer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/installer.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion src/installer/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,15 @@ export namespace Installer {
export const DIR = Path.dirname( import.meta.url.substring( 7 ) );


export const VERSION = 'Version 1.1.0';
export const VERSION = 'Version ' + (
JSON.parse(
FS.readFileSync(
Path.join( DIR, '..', 'package.json' ),
'utf8'
)
).version ||
'1.3.0'
);


export const HELP = [
Expand Down

0 comments on commit cff6a3f

Please sign in to comment.