Skip to content
This repository was archived by the owner on Feb 5, 2023. It is now read-only.

Commit 774df9d

Browse files
committed
fix: Set file mode config only if it exists
1 parent 8cdf3be commit 774df9d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/JSZipCLI.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class JSZipCLI {
3636

3737
this.options = {...defaultOptions, ...this.terminalOptions};
3838
this.logger.state.isEnabled = this.options.verbose;
39+
this.logger.info('Merged options', this.options);
3940

4041
this.checkConfigFile();
4142

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ commander
134134
}
135135

136136
await new JSZipCLI({
137-
configFile: options.config,
137+
...(options.config && {configFile: options.config}),
138138
...(options.force && {force: options.force}),
139139
...(options.ignore && {ignoreEntries: [options.ignore]}),
140140
...(options.output && {outputEntry: options.output}),

0 commit comments

Comments
 (0)