fix(cli): version txt had a new line which it should not (#4233)
This commit is contained in:
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');
|
||||
|
||||
@@ -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": "^18.3.1",
|
||||
|
||||
Reference in new issue
Block a user