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

This commit is contained in:
Alireza 2024-06-14 13:37:24 -04:00
parent 1a57e54f74
commit 339299113c
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -15,9 +15,9 @@
"start": "yarn run dev"
},
"peerDependencies": {
"@ohif/core": "^3.0.0",
"@ohif/extension-default": "^3.0.0",
"@ohif/extension-cornerstone": "^3.0.0",
"@ohif/core": "^{LATEST_OHIF_VERSION}",
"@ohif/extension-default": "^{LATEST_OHIF_VERSION}",
"@ohif/extension-cornerstone": "^{LATEST_OHIF_VERSION}",
"@ohif/i18n": "^1.0.0",
"prop-types": "^15.6.2",
"react": "^17.0.2",

View File

@ -1 +1 @@
3.8.1
3.8.2