mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
f4e31e00b4
resolve json modules
19 lines
431 B
TypeScript
19 lines
431 B
TypeScript
import { bundleID, companyName, productName, version } from './package.json'
|
|
|
|
export function getProductName() {
|
|
return process.env.NODE_ENV === 'development'
|
|
? `${productName}-dev`
|
|
: productName
|
|
}
|
|
|
|
export function getCompanyName() {
|
|
return companyName
|
|
}
|
|
|
|
export function getVersion() {
|
|
return version
|
|
}
|
|
|
|
export function getBundleID() {
|
|
return process.env.NODE_ENV === 'development' ? `${bundleID}Dev` : bundleID
|
|
}
|