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

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

Merged
merged 1 commit into from
Jun 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/after-prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const { installSnapshotArtefacts } = require("../snapshot/android/project-snapsh
const { shouldSnapshot } = require("./utils");

module.exports = function (hookArgs) {
if (hookArgs && hookArgs.appFilesUpdaterOptions && !hookArgs.appFilesUpdaterOptions.bundle) {
return;
}

const env = hookArgs.prepareData.env || {};
const shouldSnapshotOptions = {
platform: hookArgs.prepareData.platform,
Expand Down