Skip to content

Commit

Permalink
refactor: make properties optional
Browse files Browse the repository at this point in the history
According to usage in tests
  • Loading branch information
ComradeVanti committed Oct 25, 2023
1 parent 01ee62a commit a94c468
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cmd-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { splitPkgName } from "./utils/pkg-name";
import { GlobalOptions, PkgName, PkgVersion } from "./types/global";

export type DepsOptions = {
deep: boolean;
deep?: boolean;
_global: GlobalOptions;
};

Expand All @@ -26,7 +26,7 @@ const _deps = async function ({
}: {
name: PkgName;
version: PkgVersion | undefined;
deep: boolean;
deep?: boolean;
}) {
// eslint-disable-next-line no-unused-vars
const [depsValid, depsInvalid] = await fetchPackageDependencies({
Expand Down
2 changes: 1 addition & 1 deletion lib/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const fetchPackageDependencies = async function ({
}: {
name: PkgName;
version: PkgVersion | undefined;
deep: boolean;
deep?: boolean;
}): Promise<[Dependency[], Dependency[]]> {
log.verbose("dependency", `fetch: ${name}@${version} deep=${deep}`);
// a list of pending dependency {name, version}
Expand Down

0 comments on commit a94c468

Please sign in to comment.