Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
minzhi3 committed May 4, 2022
1 parent e479e1c commit eed0d2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as fs from "fs";
import { IBuildTaskOption } from "../@types";
import { IBuildResult } from "../@types";
import * as path from "path";
import { MergeBuilder } from "./merge";

interface IOptions {
Expand Down Expand Up @@ -48,8 +46,8 @@ export async function onAfterBuild(
result: IBuildResult
) {
log(options.name);
const { adNetwork, needMerge } = options.packages[PACKAGE_NAME];
if (needMerge === true) {
const { adNetwork, isPlayable } = options.packages[PACKAGE_NAME];
if (isPlayable === true) {
const mergeTool = new MergeBuilder(result.paths.dir, options.name);
await mergeTool.merge(adNetwork);
}
Expand Down

0 comments on commit eed0d2b

Please # to comment.