mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-19 20:25:08 +08:00
refactor hvigor-plugin to use 2-space indentation for JSON and improve condition checks in RCTPushy
This commit is contained in:
@@ -30,11 +30,9 @@ export function reactNativeUpdatePlugin() {
|
||||
versionName,
|
||||
};
|
||||
|
||||
fs.writeFileSync(metaFilePath, JSON.stringify(metaContent, null, 4));
|
||||
fs.writeFileSync(metaFilePath, JSON.stringify(metaContent, null, 2));
|
||||
console.log(`Build time written to ${metaFilePath}`);
|
||||
},
|
||||
dependencies: [],
|
||||
postDependencies: ['default@BuildJS'],
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user