github-desktop/app/package-info.ts

20 lines
431 B
TypeScript
Raw Normal View History

2020-10-19 22:55:14 +00:00
import { bundleID, companyName, productName, version } from './package.json'
2018-01-17 14:06:32 +00:00
export function getProductName() {
return process.env.NODE_ENV === 'development'
? `${productName}-dev`
: productName
}
export function getCompanyName() {
2020-10-19 22:55:14 +00:00
return companyName
2018-01-17 14:06:32 +00:00
}
export function getVersion() {
2020-10-19 22:55:14 +00:00
return version
2018-01-17 14:06:32 +00:00
}
export function getBundleID() {
2020-12-23 11:57:04 +00:00
return process.env.NODE_ENV === 'development' ? `${bundleID}Dev` : bundleID
2018-01-17 14:06:32 +00:00
}