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

Commit 874773e

Browse files
author
Mitko-Kerezov
committed
feat(build): clean snapshot artifacts on cleanApp hook
This fixes NativeScript/nativescript-cli#3335
1 parent 06ce695 commit 874773e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: lib/before-cleanApp.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const ProjectSnapshotGenerator = require("../snapshot/android/project-snapshot-generator");
2+
module.exports = function (hookArgs) {
3+
ProjectSnapshotGenerator.cleanSnapshotArtefacts(hookArgs.platformInfo.projectData.projectDir);
4+
}

Diff for: package.json

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
"script": "lib/before-prepareJS.js",
1616
"inject": true
1717
},
18+
{
19+
"type": "before-cleanApp",
20+
"script": "lib/before-cleanApp.js",
21+
"inject": true
22+
},
1823
{
1924
"type": "after-prepare",
2025
"script": "lib/after-prepare.js",

0 commit comments

Comments
 (0)