Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit efea463

Browse files
committed
fix: run gradlew clean only for tns <=3.0.1
1 parent c3e7376 commit efea463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: bin/ns-bundle

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function cleanBuildArtefacts(platform) {
7979
getTnsVersion().then(version => {
8080
// the android build artefacts should be cleaned manually
8181
// for nativescript-cli v3.0.1 and below or if using uglify
82-
if (isVersionGte(version, "3.0.1") || shouldUglify()) {
82+
if (!isVersionGte(version, "3.0.1") || shouldUglify()) {
8383
gradlewClean().then(resolve).catch(throwError);
8484
} else {
8585
return resolve();
@@ -155,7 +155,7 @@ function webpack(platform, env) {
155155
...env.map(item => `--${item}`),
156156
shouldUglify() && `--env.uglify`,
157157
shouldSnapshot(platform) && `--env.snapshot`
158-
];
158+
].filter(a => !!a);
159159

160160
spawnChildProcess(...args)
161161
.then(resolve)

0 commit comments

Comments
 (0)