Comparing version 0.1.17 to 0.1.18
@@ -15,5 +15,5 @@ #!/usr/bin/env node | ||
if (fs.existsSync(configFile)) { | ||
const config = require(configFile); | ||
const config = JSON.parse(fs.readFileSync(configFile)); | ||
if (config.inputDir) inputDir = config.inputDir; | ||
if (config.outputDir) outputDir = config.outputDir; | ||
outputDir = config.outputDir || outputDir; | ||
} | ||
@@ -64,3 +64,2 @@ | ||
const help = args.help; | ||
const outputDir = args.outputdir || '.'; | ||
@@ -67,0 +66,0 @@ if (!inputFile) { |
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.18](https://github.com/shinokada/bimgc/compare/v0.1.17...v0.1.18) (2023-02-23) | ||
### Bug Fixes | ||
* outputDir duplicate ([ce9cde5](https://github.com/shinokada/bimgc/commit/ce9cde53bbffd18e7f0b4235e5b4f538fbcbedd2)) | ||
### [0.1.17](https://github.com/shinokada/bimgc/compare/v0.1.16...v0.1.17) (2023-02-23) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "bimgc", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"description": "A node.js script that converts PNG and JPG images to AVIF and WebP format with various sizes and saves them in a specified output directory. The output images are named based on the input file and include information about their size and format.", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
8285935
1
1018