Skip to content

fix version#563

Closed
SharonStrats wants to merge 1 commit intomainfrom
fix/version
Closed

fix version#563
SharonStrats wants to merge 1 commit intomainfrom
fix/version

Conversation

@SharonStrats
Copy link
Contributor

There was a problem with version when i tried to run locally and this fixed it.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to fix a local version/build issue by ensuring the generated versionInfo module is created as part of common lifecycle steps.

Changes:

  • Adds a postinstall script to run build-version after dependency installation.
  • Adds a prestart script to run build-version before starting the dev server.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +35 to +36
"postinstall": "npm run build-version",
"prestart": "npm run build-version",
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a postinstall hook to run build-version will break installs for consumers of the published npm package: build-version depends on timestamp.sh and writes src/versionInfo.ts, but the published package only includes dist/, README.md, and LICENSE (no src/ or timestamp.sh). Consider removing postinstall, or making it conditional (only run in a git checkout where src/ + timestamp.sh exist), or generating version info during build/pack so install doesn’t need to run scripts.

Suggested change
"postinstall": "npm run build-version",
"prestart": "npm run build-version",
"postinstall": "if [ -f timestamp.sh ] && [ -d src ]; then npm run build-version; else echo \"Skipping build-version during postinstall: sources not available.\"; fi",
"prestart": "if [ -f timestamp.sh ] && [ -d src ]; then npm run build-version; else echo \"Skipping build-version before start: sources not available.\"; fi",

Copilot uses AI. Check for mistakes.
@SharonStrats
Copy link
Contributor Author

Actually I don't think we need this. I should've just ran build version. sorry.

@SharonStrats SharonStrats deleted the fix/version branch March 10, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants