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

This commit is contained in:
Alireza authored and GitHub committed 2024-06-17 10:17:38 -04:00
1 parent 729efb6d76
commit 097ef76655
7 files changed
+24 -20

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');