bldrs-ai / ifctool

Command line tools for working with IFC models
https://bldrs-ai.github.io/ifctool
16 stars 5 forks source link

IFCTool: centralize version tracking #21

Open pablo-mayrgundter opened 2 years ago

pablo-mayrgundter commented 2 years ago

Version is now hardcoded in 4 places, which must be kept in sync manually. This should be centralized.

tool/package.json
lib/package.json
lib/src/version.js

Preferred approach currently is similar to https://github.com/bldrs-ai/Share/blob/main/src/utils/version.mjs, probably just modify this code to modify the string in a list of files.

Alternately, could import package.json but this isn't backwards compatible with node 14, which is still in our support set.