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

Commit 1e42046

Browse files
Fatmerosen-vladimirov
authored andcommitted
fix: don't throw an error from after-prepare hook when running legacy workflow with CLI <= v5.4.2 and nativescript-dev-webpack@next (#948)
Rel to: #945
1 parent a352064 commit 1e42046

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/after-prepare.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ const { installSnapshotArtefacts } = require("../snapshot/android/project-snapsh
22
const { shouldSnapshot } = require("./utils");
33

44
module.exports = function (hookArgs) {
5+
if (hookArgs && hookArgs.appFilesUpdaterOptions && !hookArgs.appFilesUpdaterOptions.bundle) {
6+
return;
7+
}
8+
59
const env = hookArgs.prepareData.env || {};
610
const shouldSnapshotOptions = {
711
platform: hookArgs.prepareData.platform,

0 commit comments

Comments
 (0)