fix(release): 修复首次发布基线解析
This commit is contained in:
@@ -218,8 +218,8 @@ if (command === 'get') {
|
||||
}
|
||||
let value = manifest
|
||||
for (const segment of field.split('.')) value = value?.[segment]
|
||||
if (typeof value === 'object') console.log(JSON.stringify(value))
|
||||
else if (value === null || value === undefined) console.log('')
|
||||
if (value === null || value === undefined) console.log('')
|
||||
else if (typeof value === 'object') console.log(JSON.stringify(value))
|
||||
else console.log(String(value))
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user