mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
Merge branch 'dev' into engines
This commit is contained in:
@@ -4,6 +4,11 @@
|
|||||||
"description": "A CLI for Squoosh",
|
"description": "A CLI for Squoosh",
|
||||||
"public": true,
|
"public": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"homepage": "https://github.com/GoogleChromeLabs/squoosh",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/GoogleChromeLabs/squoosh.git"
|
||||||
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"squoosh-cli": "src/index.js",
|
"squoosh-cli": "src/index.js",
|
||||||
"@squoosh/cli": "src/index.js"
|
"@squoosh/cli": "src/index.js"
|
||||||
|
|||||||
@@ -177,8 +177,8 @@ async function processFiles(files) {
|
|||||||
jobsFinished++;
|
jobsFinished++;
|
||||||
const outputPath = path.join(
|
const outputPath = path.join(
|
||||||
program.opts().outputDir,
|
program.opts().outputDir,
|
||||||
program.opts().suffix +
|
path.basename(originalFile, path.extname(originalFile)) +
|
||||||
path.basename(originalFile, path.extname(originalFile)),
|
program.opts().suffix
|
||||||
);
|
);
|
||||||
for (const output of Object.values(image.encodedWith)) {
|
for (const output of Object.values(image.encodedWith)) {
|
||||||
const outputFile = `${outputPath}.${(await output).extension}`;
|
const outputFile = `${outputPath}.${(await output).extension}`;
|
||||||
|
|||||||
@@ -12,6 +12,11 @@
|
|||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Google Chrome Developers <chromium-dev@google.com>",
|
"author": "Google Chrome Developers <chromium-dev@google.com>",
|
||||||
|
"homepage": "https://github.com/GoogleChromeLabs/squoosh",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/GoogleChromeLabs/squoosh.git"
|
||||||
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": " ^12.5.0 || ^14.0.0 || ^16.0.0 "
|
"node": " ^12.5.0 || ^14.0.0 || ^16.0.0 "
|
||||||
|
|||||||
Reference in New Issue
Block a user