Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Fix "pkg-fetch" types
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Apr 11, 2021
1 parent bba8148 commit 247d1d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
11 changes: 7 additions & 4 deletions lib/index.ts
Expand Up @@ -500,13 +500,16 @@ export async function exec(argv2: string[]) {

for (const target of targets) {
target.forceBuild = forceBuild;

await needWithDryRun(target);
const f = fabricatorForTarget(target);
target.fabricator = f as Target;
(f as NodeTarget).forceBuild = forceBuild;

target.fabricator = fabricatorForTarget(target) as Target;

if (bytecode) {
await needWithDryRun(f);
await needWithDryRun({
...target.fabricator,
forceBuild,
});
}
}

Expand Down
9 changes: 4 additions & 5 deletions lib/types.ts
@@ -1,3 +1,5 @@
import type { log } from './log';

export interface FileRecord {
file: string;
body?: Buffer | string;
Expand Down Expand Up @@ -32,10 +34,7 @@ export type ConfigDictionary = Record<

export interface PkgOptions {
scripts?: string[];
log?: (
logger: (message: string) => void,
context: Record<string, string>
) => void;
log?: (logger: typeof log, context: Record<string, string>) => void;
assets?: string[];
deployFiles?: string[];
patches?: Patches;
Expand Down Expand Up @@ -72,4 +71,4 @@ export interface Target extends NodeTarget {
fabricator: Target;
}

export type SymLinks = Record<string, string>;
export type SymLinks = Record<string, string>;
1 change: 0 additions & 1 deletion typings/pkg-fetch.d.ts

This file was deleted.

0 comments on commit 247d1d5

Please sign in to comment.