MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / isDevBuild

Function isDevBuild

scripts/version-utils.mjs:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46// 检查当前环境是否为dev构建
47export function isDevBuild() {
48 return (
49 process.env.NODE_ENV === 'development' ||
50 process.argv.includes('--dev') ||
51 process.env.GITHUB_EVENT_NAME === 'workflow_dispatch'
52 )
53}
54
55// 获取处理后的版本号
56export function getProcessedVersion() {

Callers 2

updater.mjsFile · 0.90
getProcessedVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected