Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(segment-wrapper): send client version as a context property #1877

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

kikoruiz
Copy link
Member

No description provided.

@kikoruiz kikoruiz changed the title feat(segment-wrapper): send client version as context property feat(segment-wrapper): send client version as a context property Nov 25, 2024
"prepublishOnly": "npm run umd && npm run lib",
"set:version": "sed -i.bak \"s/process\\.env\\.VERSION/\\\"$npm_package_version\\\"/g\" lib/segmentWrapper.js && rm lib/segmentWrapper.js.bak",
Copy link
Member Author

@kikoruiz kikoruiz Nov 25, 2024

Choose a reason for hiding this comment

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

Sets package version by manipulating the compiled file that uses the process.env.VERSION, this script is compatible between Linux and macOS platforms.

@kikoruiz kikoruiz merged commit 31c07c9 into master Nov 26, 2024
2 checks passed
@kikoruiz kikoruiz deleted the client-version branch November 26, 2024 08:08
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.

4 participants