Skip to content

Commit

Permalink
chore: Switch to @cornerstonejs/calculate-suv, fix build issues (#6)
Browse files Browse the repository at this point in the history
* chore: Switch to @cornerstonejs/calculate-suv

* Update releaserc to use main instead of master

* fix missing build script
  • Loading branch information
swederik authored Mar 22, 2022
1 parent b2b04bf commit 8152604
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
- packages-v1-{{ .Branch }}-
- packages-v1-
- run: yarn install
- run: yarn install --frozen-lockfile
- save_cache:
name: Save Package Cache
paths:
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"branch": "master"
"branch": "main"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.16.7",
"@cornerstonejs/calculate-suv": "1.0.1",
"@microsoft/api-extractor": "7.19.5",
"@types/node": "^14.18.9",
"@types/react": "^17.0.38",
Expand All @@ -52,7 +53,6 @@
"autoprefixer": "^10.4.2",
"babel-loader": "8.2.3",
"babel-plugin-istanbul": "^6.1.1",
"calculate-suv": "git+ssh://[email protected]/PrecisionMetrics/calculate-suv.git#main",
"clean-webpack-plugin": "^3.0.0",
"commander": "^9.0.0",
"copy-webpack-plugin": "^8.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { api } from 'dicomweb-client'
import dcmjs from 'dcmjs'
import { calculateSUVScalingFactors } from '@precisionmetrics/calculate-suv'
import { calculateSUVScalingFactors } from '@cornerstonejs/calculate-suv'
import { getPTImageIdInstanceMetadata } from './getPTImageIdInstanceMetadata'
import { utilities } from '@cornerstonejs/core'

Expand Down
4 changes: 2 additions & 2 deletions packages/demo/src/helpers/getPTImageIdInstanceMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { metaData } from '@cornerstonejs/core'
import {
import type {
InstanceMetadata,
PhilipsPETPrivateGroup,
} from '@precisionmetrics/calculate-suv/src/types'
} from '@cornerstonejs/calculate-suv'

export default function getPTImageIdInstanceMetadata(
imageId: string
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prep-coverage": "cd ../.. && yarn run test:ci && cd packages/docs && yarn run copy-coverage-to-docs",
"prep-examples": "cd ../.. && yarn run build-all-examples && cd packages/docs && yarn run copy-examples-to-docs",
"prep": "yarn run prep-coverage && yarn run prep-examples",
"docs:ci": "cross-env NODE_OPTIONS=--max_old_space_size=16384 && yarn run prep && yarn run build",
"docs:ci": "cross-env NODE_OPTIONS=--max_old_space_size=16384 && yarn run prep && yarn run build:docs",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/streaming-image-volume-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"peerDependencies": {
"@cornerstonejs/core": "^0.1.0",
"cornerstone-wado-image-loader": "^4.1.2",
"@precisionmetrics/calculate-suv": "^0.1.0"
"@cornerstonejs/calculate-suv": "1.0.1"
},
"devDependencies": {
"@cornerstonejs/core": "^0.1.0",
"cornerstone-wado-image-loader": "^4.1.2",
"@precisionmetrics/calculate-suv": "^0.1.0"
"@cornerstonejs/calculate-suv": "1.0.1"
},
"contributors": [{
"name": "Cornerstone.js Contributors",
Expand Down
2 changes: 1 addition & 1 deletion utils/demo/helpers/createImageIdsAndCacheMetaData.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { api } from 'dicomweb-client'
import dcmjs from 'dcmjs'
import { calculateSUVScalingFactors } from '@precisionmetrics/calculate-suv'
import { calculateSUVScalingFactors } from '@cornerstonejs/calculate-suv'
import { getPTImageIdInstanceMetadata } from './getPTImageIdInstanceMetadata'
import { utilities } from '@cornerstonejs/core'
import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader'
Expand Down
4 changes: 2 additions & 2 deletions utils/demo/helpers/getPTImageIdInstanceMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { metaData } from '@cornerstonejs/core'
import {
import type {
InstanceMetadata,
PhilipsPETPrivateGroup,
} from '@precisionmetrics/calculate-suv/src/types'
} from '@cornerstonejs/calculate-suv'

export default function getPTImageIdInstanceMetadata(
imageId: string
Expand Down
14 changes: 5 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,11 @@
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==

"@cornerstonejs/[email protected]":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@cornerstonejs/calculate-suv/-/calculate-suv-1.0.1.tgz#03981a3cedeb58c68b2103b682e0c66d058f814a"
integrity sha512-N3pzkaSAAbO0UEijOJQoLuQXwtUYVIChpAkgvzOvj9JOreV2gE5D9ogOb7ueeiPN3jMYMYxU390DQ9A1YiuEzQ==

"@cornerstonejs/codec-charls@^0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@cornerstonejs/codec-charls/-/codec-charls-0.1.1.tgz#e55d4aa908732d0cc902888b7f3856c5a996df7f"
Expand Down Expand Up @@ -3176,11 +3181,6 @@
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==

"@precisionmetrics/calculate-suv@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@precisionmetrics/calculate-suv/-/calculate-suv-0.1.0.tgz#a95d3db6d748ebca2c75c3bdff49994cd38e63ac"
integrity sha512-pVOpLMEP7lGYhRznL2t/YQM42QnFMaYFfCf3MHUc7LU8Al/5g/iogl317XvGZGnzNh0OXLH2vVpy6Xg8qB7YqQ==

"@rollup/plugin-babel@^5.2.0":
version "5.3.1"
resolved "https://registry.yarnpkg.com/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz#04bc0608f4aa4b2e4b1aebf284344d0f68fda283"
Expand Down Expand Up @@ -5517,10 +5517,6 @@ cachedir@^2.3.0:
resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-2.3.0.tgz#0c75892a052198f0b21c7c1804d8331edfcae0e8"
integrity sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==

"calculate-suv@git+ssh://[email protected]/PrecisionMetrics/calculate-suv.git#main":
version "0.0.0-semantic-release"
resolved "git+ssh://[email protected]/PrecisionMetrics/calculate-suv.git#555a2b4085cc81ad6a95a3bf1456e00fc4a63856"

call-bind@^1.0.0, call-bind@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
Expand Down

0 comments on commit 8152604

Please sign in to comment.