kieler / klighd-vscode

Eclipse Public License 2.0
8 stars 6 forks source link

Packaging the CLI causes an error on Windows #97

Closed NiklasRentzCAU closed 1 year ago

NiklasRentzCAU commented 1 year ago

When building the CLI on Windows, it will throw an error in the prepackage step. This is due to different handling of script variables in Windows. A temporary solution for Windows users is to update the applications/klighd-cli/package.json file with this line: "prepackage": "echo exports.VERSION = \"%npm_package_version%\"; > ./lib/version.js",. As this only works in Windows and not in Linux/MacOS a better solution should be found that works for all OSs.

NiklasRentzCAU commented 1 year ago

Fixed by #131