vaadin / observability-kit

Other
5 stars 3 forks source link

fix: use correct build for publish #230

Closed Lodin closed 1 year ago

Lodin commented 1 year ago

This PR improves the package registration system on client. Now, the version is added to build during the build (also, build is run during npm version command). So, now the source file only contains a __VERSION__ placeholder for the version which will be replaced during the build.

Lodin commented 1 year ago

Note that the published code is gonna be obfuscated. The source maps are coming along with the code, so user would be able to track it. I have used the experience from Lit. They also obfuscate their code before publishing.

MatthewVaadin commented 1 year ago

Should the version in the package.json files be changed to 2.1.1? I don't think we can re-use the 2.1.0 version.