github-desktop/app/package-info.ts

21 lines
441 B
TypeScript
Raw Normal View History

2018-01-17 14:06:32 +00:00
const appPackage: Record<string, string> = require('./package.json')
export function getProductName() {
const productName = appPackage.productName
return process.env.NODE_ENV === 'development'
? `${productName}-dev`
: productName
}
export function getCompanyName() {
return appPackage.companyName
}
export function getVersion() {
return appPackage.version
}
export function getBundleID() {
return appPackage.bundleID
}