-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Add supported Tact version
- Loading branch information
1 parent
10f1048
commit ae70f5d
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as packageJson from "../package.json"; | ||
|
||
export const MISTI_VERSION = packageJson.version; | ||
|
||
/** The supported version of Tact. */ | ||
export const TACT_VERSION = removeCaret( | ||
packageJson.dependencies["@tact-lang/compiler"], | ||
); | ||
|
||
function removeCaret(version: string): string { | ||
if (version.startsWith("^")) { | ||
return version.substring(1); | ||
} | ||
return version; | ||
} |