From f5304916dbf306d073f5d15f2a3b22a618bff3b8 Mon Sep 17 00:00:00 2001 From: Erik Golinelli Date: Tue, 9 Apr 2024 00:41:52 +0200 Subject: [PATCH] chore Took 7 seconds --- package-lock.json | 32 +++++++++++++++++++++++++++++--- package.json | 14 ++++++++------ 2 files changed, 37 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1516945..349e561 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,20 @@ { "name": "squashify", - "version": "1.0.1", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "squashify", - "version": "1.0.1", - "license": "GPL-2.0-or-later", + "version": "1.1.0", + "license": "LGPL-3.0-or-later", "dependencies": { "glob": "^10.3.12", "ini": "^4.1.2", "prompts": "^2.4.2", "sharp": "0.33.3", "svgo": "^3.2.0", + "xml2js": "^0.6.2", "yargs": "^17.7.2" }, "bin": { @@ -8419,6 +8420,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/sax": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.3.0.tgz", + "integrity": "sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==" + }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -9668,6 +9674,26 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/xml2js": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "engines": { + "node": ">=4.0" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index eb74cf7..8270eda 100644 --- a/package.json +++ b/package.json @@ -20,12 +20,12 @@ "type": "git", "url": "git+https://github.com/wp-blocks/squashify.git" }, - "main": "lib/esm/index.js", - "module": "lib/esm/", + "main": "lib/esm/index.js", + "module": "lib/esm/", "reqire": "lib/cjs/index.js", "types": "lib/@types/index.d.ts", "scripts": { - "prebuild": "rimraf lib && tsc --emitDeclarationOnly --outDir lib/@types/", + "prebuild": "rimraf lib && tsc --emitDeclarationOnly --outDir lib/@types/", "build": "npx esbuild ./src/* --outdir=lib/esm/ --format=esm --platform=node --minify", "postbuild": "npx esbuild src/index.ts --outfile=lib/cjs/index.js --bundle --platform=node --minify", "watch": "tsc --watch --sourceMap --outDir lib/esm/", @@ -36,10 +36,11 @@ "files": [ "lib", "tests", + "!tests/images/**/*", "*.json", - "*.md", - ".gitignore", - "LICENSE" + "*.md", + ".gitignore", + "LICENSE" ], "keywords": [ "image", @@ -61,6 +62,7 @@ "prompts": "^2.4.2", "sharp": "0.33.3", "svgo": "^3.2.0", + "xml2js": "^0.6.2", "yargs": "^17.7.2" }, "devDependencies": {