We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a18bc5 commit a70c501Copy full SHA for a70c501
.env
@@ -0,0 +1 @@
1
+VITE_ROSLIBJS_VERSION=${npm_package_version}
src/index.ts
@@ -4,7 +4,7 @@
4
*/
5
6
/** @description Library version */
7
-export const REVISION = "1.4.1";
+export const REVISION = import.meta.env.VITE_ROSLIBJS_VERSION;
8
export * from "./core/index.js";
9
export * from "./actionlib/index.js";
10
export * from "./math/index.js";
src/vite-env.d.ts
@@ -0,0 +1,5 @@
+interface ImportMeta {
2
+ readonly env: {
3
+ readonly VITE_ROSLIBJS_VERSION: string;
+ };
+}
0 commit comments