Skip to content

Commit

Permalink
Update injectLatestProps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitBhalla authored Dec 30, 2021
1 parent abd7d89 commit 87cfef5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion injectLatestProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ try {
);
console.log("✔️ Cloned react-native-elements");

execSync(
"sed -i '/## Props/,$!d' ./react-native-elements/website/docs/main*.mdx",
(err, stdout, stderr) => {
if (err) {
// node couldn't execute the command
return;
}
// the *entire* stdout and stderr (buffered)
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
}
);

// Point 4
cpDir.sync(
"./react-native-elements/website/docs/main",
Expand All @@ -45,4 +58,4 @@ try {
} catch (err) {
console.error(err);
return;
}
}

0 comments on commit 87cfef5

Please sign in to comment.