You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the latest version so that magic string __STREAM_CHAT_REACT_VERSION__ can be replaced with it in the source code (used for reporting purposes)
4
+
// get the latest version so that "process.env.PKG_VERSION" can be replaced with it in the source code (used for reporting purposes), see bundle.mjs for source
7
5
exportdefaultfunctiongetPackageVersion(){
8
-
letversion;
9
-
// During release, use the version being released
10
-
// see .releaserc.json where the .version file is generated
// "build" script ("prepack" hook) gets invoked when semantic-release runs "npm publish", at that point package.json#version already contains updated next version which we can use
7
+
letversion=packageJson.version;
15
8
16
-
if(typeofversion!=='string'){
17
-
// Otherwise use the latest git tag
9
+
// if it fails (loads a default), try pulling version from git
0 commit comments