Run version command instead of calling node directly

This commit is contained in:
dannyrb 2019-07-16 14:14:34 -04:00
parent fe3ee3010f
commit 4386b5c960
2 changed files with 7 additions and 1 deletions

View File

@ -77,7 +77,8 @@ yarn install --no-ignore-optional --pure-lockfile
cd ./platform/viewer/
# Create a Versions File
node -p -e '"export default "' + require(\"./../package.json\").version + '";"' > src/version.js
# node -p -e '"export default "' + require(\"./../package.json\").version + '";"' > src/version.js
yarn run version
# Copy over wado-image-loader codecs and worker file
cp ./../../node_modules/cornerstone-wado-image-loader/dist/*.min.js* public -v
# Build using react-scripts

View File

@ -7,6 +7,11 @@
"publish": {
"ignoreChanges": ["*.md"],
"message": "chore(release): publish"
},
"version": {
"conventionalCommits": true,
"yes": true,
"message": "chore(release): publish %s [skip ci]"
}
}
}