Skip to content

Commit

Permalink
Cleanup android dir on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Apr 30, 2022
1 parent d43d28d commit 49d4b97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/publish-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* * or otherwise `{major}.{minor}-stable`
*/

const {exec, echo, exit, test, env} = require('shelljs');
const {exec, echo, exit, test, env, rm} = require('shelljs');
const {parseVersion, isTaggedLatest} = require('./version-utils');
const fs = require('fs');
const os = require('os');
Expand Down Expand Up @@ -170,6 +170,9 @@ if (isCommitly) {
}
}

// Cleanup old artifacts.
rm('-rf', 'android');

// -------- Generating Android Artifacts with JavaDoc
if (exec('./gradlew :ReactAndroid:installArchives').code) {
echo('Could not generate artifacts');
Expand Down

0 comments on commit 49d4b97

Please sign in to comment.