Skip to content

Commit 38381bb

Browse files
committed
Fix: Skip removeOldBuilds for content-only builds with outputDir
1 parent ac0caf0 commit 38381bb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/AdaptFrameworkBuild.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ class AdaptFrameworkBuild {
164164
* @return {Promise} Resolves with the output directory
165165
*/
166166
async build () {
167-
await this.removeOldBuilds()
167+
if (!this.outputDir) {
168+
await this.removeOldBuilds()
169+
}
168170

169171
const framework = await App.instance.waitForModule('adaptframework')
170172
if (!this.expiresAt) {

0 commit comments

Comments
 (0)