fix(cli): version txt had a new line which it should not
This commit is contained in:
parent
1a57e54f74
commit
339299113c
@ -4,7 +4,7 @@ import path from 'path';
|
|||||||
async function editPackageJson(options) {
|
async function editPackageJson(options) {
|
||||||
const { name, version, description, author, license, targetDir } = 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
|
// read package.json from targetDir
|
||||||
const dependenciesPath = path.join(targetDir, 'dependencies.json');
|
const dependenciesPath = path.join(targetDir, 'dependencies.json');
|
||||||
|
|||||||
@ -15,9 +15,9 @@
|
|||||||
"start": "yarn run dev"
|
"start": "yarn run dev"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@ohif/core": "^3.0.0",
|
"@ohif/core": "^{LATEST_OHIF_VERSION}",
|
||||||
"@ohif/extension-default": "^3.0.0",
|
"@ohif/extension-default": "^{LATEST_OHIF_VERSION}",
|
||||||
"@ohif/extension-cornerstone": "^3.0.0",
|
"@ohif/extension-cornerstone": "^{LATEST_OHIF_VERSION}",
|
||||||
"@ohif/i18n": "^1.0.0",
|
"@ohif/i18n": "^1.0.0",
|
||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.6.2",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
3.8.1
|
3.8.2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user