File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
packages/ts-lib-tools/src/config Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ export function getAppPackageInfo(): Record<string, any> {
3434/**
3535 * 项目版本号
3636 */
37- export const getAppVersion = ( ) : string => {
38- return getAppPackageInfo ( ) . version ;
39- } ;
37+ export const getAppVersion = ( ) : string => getAppPackageInfo ( ) . version ;
4038
4139/**
4240 * 解析模块的真实文件路径
@@ -111,13 +109,11 @@ export const getJestDOMModulePath = (): string | undefined => {
111109/**
112110 * 库对应的全局名称
113111 */
114- export const globals = ( ) : string => {
115- return {
116- react : 'React' ,
117- 'react-native' : 'ReactNative' ,
118- ...getAppPackageInfo ( ) . globals ,
119- } ;
120- } ;
112+ export const globals = ( ) : string => ( {
113+ react : 'React' ,
114+ 'react-native' : 'ReactNative' ,
115+ ...getAppPackageInfo ( ) . globals ,
116+ } ) ;
121117
122118/**
123119 * 获取 mono 项目的根目录
You can’t perform that action at this time.
0 commit comments