Closed endel closed 4 years ago
Could you also do a global.colyseus.version? That might be easier since you can import your package.json as part of the build process.
Sounds better! 😅 Thanks @seiyria
I'm going to close this for now as the header has been placed on the dist/colyseus.js
file.
To ensure a Client.VERSION
is also available we'd need to somehow modify the lib/*
files generated by TypeScript, which are not post-processed by webpack so far, but as the version is already listed on package.json
and package-lock.json
I believe that's not much of a problem.
Right now it's not possible to know which version of
colyseus.js
is being used if the file is grabbed manually fromdist/
folder.We should have a header stating its version number: