Skip to content

Commit

Permalink
feat: expose version
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Sep 20, 2022
1 parent 2d464d3 commit c51dcf5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ export { default as WorkerPool } from './WorkerPool.js'
export { default as WorkerPoolFunction } from './WorkerPoolFunction.js'
export { default as WorkerPoolProgressCallback } from './WorkerPoolProgressCallback.js'
export { default as WorkerPoolRunTasksResult } from './WorkerPoolRunTasksResult.js'

const version = '1.0.0-b.18';
export { version };
2 changes: 1 addition & 1 deletion src/itkConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const version = '1.0.0-b.18'
import { version } from '.'

const itkConfig = {
webWorkersUrl: undefined,
Expand Down
2 changes: 1 addition & 1 deletion update-versions.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ function rewriteVersion(filename) {
fs.writeFileSync(filename, lines.join('\n'))
}

rewriteVersion('dist/itkConfig.js')
rewriteVersion('dist/core/index.js')
rewriteVersion('dist/itkConfigDevelopment.js')

0 comments on commit c51dcf5

Please sign in to comment.