mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-17 18:06:10 +08:00

- Move IS_CRESC logic to constants module - Update package.json with new type definitions - Simplify global variable usage - Update bun.lock with latest package versions - Improve type safety and configuration management
14 lines
500 B
TypeScript
14 lines
500 B
TypeScript
import path from 'node:path';
|
|
|
|
const scriptName: 'cresc' | 'pushy' = path.basename(process.argv[1]) as
|
|
| 'cresc'
|
|
| 'pushy';
|
|
export const IS_CRESC = scriptName === 'cresc';
|
|
|
|
export const credentialFile = IS_CRESC ? '.cresc.token' : '.update';
|
|
export const updateJson = IS_CRESC ? 'cresc.config.json' : 'update.json';
|
|
export const tempDir = IS_CRESC ? '.cresc.temp' : '.pushy';
|
|
export const pricingPageUrl = IS_CRESC
|
|
? 'https://cresc.dev/pricing'
|
|
: 'https://pushy.reactnative.cn/pricing.html';
|