fix(cli): version txt had a new line which it should not

This commit is contained in:
Alireza committed 2024-06-14 13:39:09 -04:00
1 parent 1a57e54f74
commit 339299113c
3 files changed
+5 -5

No files matched your search

@@ -4,7 +4,7 @@ import path from 'path';
async function editPackageJson(options) {
const { name, version, description, author, license, targetDir } = options;
const ohifVersion = fs.readFileSync('./version.txt', 'utf8');
const ohifVersion = fs.readFileSync('./version.txt', 'utf8').trim();
// read package.json from targetDir
const dependenciesPath = path.join(targetDir, 'dependencies.json');