Comparing version 0.1.18 to 0.1.19
@@ -13,3 +13,3 @@ #!/usr/bin/env node | ||
// Check for configuration file and set input/output directories | ||
const configFile = path.join(process.cwd(), '.bimgcrc'); | ||
const configFile = path.resolve(process.cwd(), '.bimgc.config.js'); | ||
if (fs.existsSync(configFile)) { | ||
@@ -65,3 +65,3 @@ const config = JSON.parse(fs.readFileSync(configFile)); | ||
if (!inputFile) { | ||
if (!inputFile && !inputFile.length) { | ||
console.error('🚫 Please provide an input file'); | ||
@@ -68,0 +68,0 @@ process.exit(1); |
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.19](https://github.com/shinokada/bimgc/compare/v0.1.18...v0.1.19) (2023-02-23) | ||
### Bug Fixes | ||
* index.js and add .bimgc.config.js ([bcdef39](https://github.com/shinokada/bimgc/commit/bcdef3909a3162247b8740e9a96f5f8992f1005e)) | ||
### [0.1.18](https://github.com/shinokada/bimgc/compare/v0.1.17...v0.1.18) (2023-02-23) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "bimgc", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"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", |
8286292
57
1021