Skip to content

Commit

Permalink
Merge branch 'feat/extend-cmd-program' into release/cmd-1.1.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
vCaisim committed Sep 26, 2024
2 parents ab0ff11 + 76da9da commit 2eeaaad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cmd/src/config/cache/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function cacheGetCommandOptsToConfig(
id: options.id,
preset: options.preset,
outputDir: options.outputDir,
pwConfigDump: options.pwConfigDump,
debug: options.debug,
};
}
Expand All @@ -22,7 +23,6 @@ export function cacheSetCommandOptsToConfig(
id: options.id,
preset: options.preset,
pwOutputDir: options.pwOutputDir,
pwConfigDump: options.pwConfigDump,
paths: options.paths,
includeHidden: options.includeHidden,
debug: options.debug,
Expand Down
1 change: 0 additions & 1 deletion packages/cmd/src/services/cache/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ async function handleMetaDownload(readUrl: string) {
try {
const buffer = await download(readUrl);
const meta = JSON.parse(buffer.toString("utf-8")) as MetaFile;
console.log(meta);
debug("Meta file: %O", meta);
return meta;
} catch (error) {
Expand Down
8 changes: 4 additions & 4 deletions packages/cmd/src/services/cache/presets.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { debug } from '@debug';
import _ from "lodash";
import { PW_CONFIG_DUMP_FILE } from "../../commands/cache/options";

Expand Down Expand Up @@ -95,10 +96,9 @@ async function dumpPWConfigForGHA(
const pwCliOptions = [lastFailedOption, shardOption]
.filter(Boolean)
.join(" ");
await writeFileAsync(
config.pwConfigDump ?? PW_CONFIG_DUMP_FILE,
pwCliOptions,
);
const dumpPath = config.pwConfigDump ?? PW_CONFIG_DUMP_FILE;
await writeFileAsync(dumpPath, pwCliOptions);
debug('Dumped PW config: "%s" for GHA to %s', pwCliOptions, dumpPath);
}

const parseIntSafe = (
Expand Down

0 comments on commit 2eeaaad

Please sign in to comment.