mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 07:10:36 +08:00
* Fix incorrect link behaviour introduced with promise addition in ios postlink script * simplify postlink/run.js
11 lines
241 B
JavaScript
11 lines
241 B
JavaScript
var postlinks = [
|
|
require("./ios/postlink"),
|
|
require("./android/postlink")
|
|
];
|
|
|
|
//run them sequentially
|
|
postlinks
|
|
.reduce((p, fn) => p.then(fn), Promise.resolve())
|
|
.catch((err) => {
|
|
console.error(err.message);
|
|
});
|