1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-06-15 06:32:11 +08:00
Files
AzurLaneAutoScript/webapp/version/getVersion.mjs

10 lines
325 B
JavaScript
Raw Normal View History

2024-06-05 23:20:28 +08:00
/**
* Entry function for get app version.
* In current implementation, it returns `version` from `package.json`, but you can implement any logic here.
* Runs several times for each vite configs and electron-builder config.
* @return {string}
*/
export function getVersion() {
return process.env.npm_package_version;
}