From 677830df3535d8b9223c2c48aff85880b19d5637 Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Mon, 25 Dec 2023 17:37:38 +0100 Subject: [PATCH 1/5] chore: update dependencies --- .gitignore | 3 + package-lock.json | 164 ++++++++-------------------------------------- package.json | 10 +-- 3 files changed, 34 insertions(+), 143 deletions(-) diff --git a/.gitignore b/.gitignore index ee7a5ba9..e9a6b3ba 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,6 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* + +# Idea IDE +.idea diff --git a/package-lock.json b/package-lock.json index 6074cb32..7edd0698 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,11 +14,11 @@ "class-transformer-validator": "^0.9.1", "class-validator": "^0.14.0", "execa": "^8.0.1", - "fs-extra": "^11.1.1", - "glob": "^10.3.3", - "read-pkg": "^8.0.0", - "reflect-metadata": "^0.1.13", - "replace-in-file": "^7.0.1" + "fs-extra": "^11.2.0", + "glob": "^10.3.10", + "read-pkg": "^9.0.1", + "reflect-metadata": "^0.2.1", + "replace-in-file": "^7.0.2" }, "devDependencies": { "@babel/core": "7.23.6", @@ -3121,42 +3121,6 @@ "node": ">=10" } }, - "node_modules/@semantic-release/npm/node_modules/parse-json": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", - "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "index-to-position": "^0.1.2", - "type-fest": "^4.7.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/npm/node_modules/read-pkg": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", - "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.3", - "normalize-package-data": "^6.0.0", - "parse-json": "^8.0.0", - "type-fest": "^4.6.0", - "unicorn-magic": "^0.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@semantic-release/npm/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -3172,18 +3136,6 @@ "node": ">=10" } }, - "node_modules/@semantic-release/npm/node_modules/type-fest": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.8.3.tgz", - "integrity": "sha512-//BaTm14Q/gHBn09xlnKNqfI8t6bmdzx2DXYfPBNofN0WUybCEUDcbCWcTa0oF09lzLjZgPphXAsvRiMK0V6Bw==", - "dev": true, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@semantic-release/npm/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -5145,6 +5097,7 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, "dependencies": { "is-arrayish": "^0.2.1" } @@ -6218,7 +6171,6 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-0.1.2.tgz", "integrity": "sha512-MWDKS3AS1bGCHLBA2VLImJz42f7bJh8wQsTGCzI3j519/CASStoDONUBVz2I/VID0MpiX3SGSnbOD2xUalbE5g==", - "dev": true, "engines": { "node": ">=18" }, @@ -6265,7 +6217,8 @@ "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true }, "node_modules/is-core-module": { "version": "2.13.1", @@ -12517,17 +12470,18 @@ "dev": true }, "node_modules/read-pkg": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-8.1.0.tgz", - "integrity": "sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", + "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", "dependencies": { - "@types/normalize-package-data": "^2.4.1", + "@types/normalize-package-data": "^2.4.3", "normalize-package-data": "^6.0.0", - "parse-json": "^7.0.0", - "type-fest": "^4.2.0" + "parse-json": "^8.0.0", + "type-fest": "^4.6.0", + "unicorn-magic": "^0.1.0" }, "engines": { - "node": ">=16" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12551,42 +12505,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg-up/node_modules/parse-json": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", - "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "index-to-position": "^0.1.2", - "type-fest": "^4.7.1" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/read-pkg": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", - "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.3", - "normalize-package-data": "^6.0.0", - "parse-json": "^8.0.0", - "type-fest": "^4.6.0", - "unicorn-magic": "^0.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/read-pkg-up/node_modules/type-fest": { "version": "4.8.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.8.3.tgz", @@ -12599,46 +12517,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg/node_modules/json-parse-even-better-errors": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.1.tgz", - "integrity": "sha512-aatBvbL26wVUCLmbWdCpeu9iF5wOyWpagiKkInA+kfws3sWdBrTnsvN2CKcyCYyUrc7rebNBlK6+kteg7ksecg==", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, - "node_modules/read-pkg/node_modules/lines-and-columns": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", - "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - } - }, "node_modules/read-pkg/node_modules/parse-json": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-7.1.1.tgz", - "integrity": "sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", + "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", "dependencies": { - "@babel/code-frame": "^7.21.4", - "error-ex": "^1.3.2", - "json-parse-even-better-errors": "^3.0.0", - "lines-and-columns": "^2.0.3", - "type-fest": "^3.8.0" - }, - "engines": { - "node": ">=16" + "@babel/code-frame": "^7.22.13", + "index-to-position": "^0.1.2", + "type-fest": "^4.7.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg/node_modules/parse-json/node_modules/type-fest": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz", - "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==", "engines": { - "node": ">=14.16" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12680,9 +12569,9 @@ } }, "node_modules/reflect-metadata": { - "version": "0.1.14", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.14.tgz", - "integrity": "sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A==" + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.1.tgz", + "integrity": "sha512-i5lLI6iw9AU3Uu4szRNPPEkomnkjRTaVt9hy/bn5g/oSzekBSMeLZblcjP74AW0vBabqERLLIrz+gR8QYR54Tw==" }, "node_modules/regenerate": { "version": "1.4.2", @@ -14085,7 +13974,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", - "dev": true, "engines": { "node": ">=18" }, diff --git a/package.json b/package.json index e7fbb6f9..9d1de635 100644 --- a/package.json +++ b/package.json @@ -37,11 +37,11 @@ "class-transformer-validator": "^0.9.1", "class-validator": "^0.14.0", "execa": "^8.0.1", - "fs-extra": "^11.1.1", - "glob": "^10.3.3", - "read-pkg": "^8.0.0", - "reflect-metadata": "^0.1.13", - "replace-in-file": "^7.0.1" + "fs-extra": "^11.2.0", + "glob": "^10.3.10", + "read-pkg": "^9.0.1", + "reflect-metadata": "^0.2.1", + "replace-in-file": "^7.0.2" }, "devDependencies": { "@babel/core": "7.23.6", From dc86b907d03d9287f1b33f7a9c797d57da2e43a2 Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Mon, 25 Dec 2023 22:03:48 +0100 Subject: [PATCH 2/5] fix: fixed path resolve from config on verify-theme.ts and verify-theme.ts Refs: #159 --- lib/utils/verify-plugin.ts | 2 +- lib/utils/verify-theme.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/verify-plugin.ts b/lib/utils/verify-plugin.ts index 9cc4d64e..2b81c1da 100644 --- a/lib/utils/verify-plugin.ts +++ b/lib/utils/verify-plugin.ts @@ -6,7 +6,7 @@ import { PluginConfig } from '../classes/plugin-config.class.js'; export async function verifyPlugin(config: PluginConfig): Promise { const pluginPath = config.path - ? path.resolve(config.path, config.slug) + ? path.resolve(config.path) : path.resolve('./'); const errors: SemanticReleaseError[] = []; diff --git a/lib/utils/verify-theme.ts b/lib/utils/verify-theme.ts index 142b8a84..6a033047 100644 --- a/lib/utils/verify-theme.ts +++ b/lib/utils/verify-theme.ts @@ -6,7 +6,7 @@ import { PluginConfig } from '../classes/plugin-config.class.js'; export async function verifyTheme(config: PluginConfig): Promise { const themePath = config.path - ? path.resolve(config.path, config.slug) + ? path.resolve(config.path) : path.resolve('./'); const errors: SemanticReleaseError[] = []; From 5e61e817a9515ca49f9fcf4aada47b16b1e504ea Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Mon, 25 Dec 2023 22:04:16 +0100 Subject: [PATCH 3/5] test: update verify tests Refs: #159 --- test/1-verify-plugin.spec.ts | 8 ++++---- test/1-verify-theme.spec.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/1-verify-plugin.spec.ts b/test/1-verify-plugin.spec.ts index 6a2f1847..34252705 100644 --- a/test/1-verify-plugin.spec.ts +++ b/test/1-verify-plugin.spec.ts @@ -38,7 +38,7 @@ describe('Plugin verification', () => { { type: 'plugin', slug: 'bad-plugin', - path: './test/fixtures', + path: './test/fixtures/bad-plugin', }, context, ); @@ -56,7 +56,7 @@ describe('Plugin verification', () => { { type: 'plugin', slug: 'bad-version', - path: './test/fixtures', + path: './test/fixtures/bad-version', }, context, ); @@ -73,7 +73,7 @@ describe('Plugin verification', () => { { type: 'plugin', slug: 'other-bad-plugin', - path: './test/fixtures', + path: './test/fixtures/other-bad-plugin', }, context, ); @@ -91,7 +91,7 @@ describe('Plugin verification', () => { { type: 'plugin', slug: 'plugin1', - path: './test/fixtures', + path: './test/fixtures/plugin1', }, context, ), diff --git a/test/1-verify-theme.spec.ts b/test/1-verify-theme.spec.ts index a8d5513d..62085e47 100644 --- a/test/1-verify-theme.spec.ts +++ b/test/1-verify-theme.spec.ts @@ -38,7 +38,7 @@ describe('Theme verification', () => { { type: 'theme', slug: 'bad-theme', - path: './test/fixtures', + path: './test/fixtures/bad-theme', }, context, ); @@ -56,7 +56,7 @@ describe('Theme verification', () => { { type: 'theme', slug: 'bad-theme-version', - path: './test/fixtures', + path: './test/fixtures/bad-theme-version', }, context, ); @@ -73,7 +73,7 @@ describe('Theme verification', () => { { type: 'theme', slug: 'theme-bad-header', - path: './test/fixtures', + path: './test/fixtures/theme-bad-header', }, context, ); @@ -91,7 +91,7 @@ describe('Theme verification', () => { { type: 'theme', slug: 'complete-theme', - path: './test/fixtures', + path: './test/fixtures/complete-theme', }, context, ), From be73d45188dbe021955b460a5cf2b1c0b8da8eea Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Mon, 25 Dec 2023 22:04:42 +0100 Subject: [PATCH 4/5] docs: added path config info inside README Refs: #159 --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b56dbd1a..336e3a40 100644 --- a/README.md +++ b/README.md @@ -52,17 +52,18 @@ Plugin uses no environment variables, but has a lot of configuration options ### Options -| Options | Description | Default | -|-------------------|------------------------------------------------------------|-----------------------------------------------------------------------| -| `type` | Type of the package to create. Can be `plugin` or `theme` | None. **You must set this explicitly** | -| `slug` | Package slug. | None. **You must set this explicitly** | -| `withAssets` | Does the package have assets (screenshots, banners, logo) | `false` | -| `withReadme` | Does the package have a readme.txt file | `false` | -| `withVersionFile` | Do we need to create a file with the next release version | `true` | -| `releasePath` | Base path for all of the release files | `/tmp/wp-release` | -| `versionFiles` | Array of additional files containing the package version. | `[]` | -| `include` | Files to include in the package zip file. | `**/*` | -| `exclude` | Files to exclude from the package zip file | List of files and folders defined in [constants.ts](lib/constants.ts) | +| Options | Description | Default | +|-------------------|-----------------------------------------------------------|-----------------------------------------------------------------------| +| `type` | Type of the package to create. Can be `plugin` or `theme` | None. **You must set this explicitly** | +| `slug` | Package slug. | None. **You must set this explicitly** | +| `path` | The path of root folder that contains plugin or theme | `./` | +| `withAssets` | Does the package have assets (screenshots, banners, logo) | `false` | +| `withReadme` | Does the package have a readme.txt file | `false` | +| `withVersionFile` | Do we need to create a file with the next release version | `true` | +| `releasePath` | Base path for all of the release files | `/tmp/wp-release` | +| `versionFiles` | Array of additional files containing the package version. | `[]` | +| `include` | Files to include in the package zip file. | `**/*` | +| `exclude` | Files to exclude from the package zip file | List of files and folders defined in [constants.ts](lib/constants.ts) | ### Versioning From 380fe634cd900c84075c85af423dc27e09212819 Mon Sep 17 00:00:00 2001 From: Antonino Bonanno Date: Tue, 16 Jan 2024 19:50:36 +0100 Subject: [PATCH 5/5] revert: update dependencies This reverts commit e4f0e0c5c0306ee16cae6e762539c86b1f981229. --- package-lock.json | 164 ++++++++++++++++++++++++++++++++++++++-------- package.json | 10 +-- 2 files changed, 143 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7edd0698..6074cb32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,11 +14,11 @@ "class-transformer-validator": "^0.9.1", "class-validator": "^0.14.0", "execa": "^8.0.1", - "fs-extra": "^11.2.0", - "glob": "^10.3.10", - "read-pkg": "^9.0.1", - "reflect-metadata": "^0.2.1", - "replace-in-file": "^7.0.2" + "fs-extra": "^11.1.1", + "glob": "^10.3.3", + "read-pkg": "^8.0.0", + "reflect-metadata": "^0.1.13", + "replace-in-file": "^7.0.1" }, "devDependencies": { "@babel/core": "7.23.6", @@ -3121,6 +3121,42 @@ "node": ">=10" } }, + "node_modules/@semantic-release/npm/node_modules/parse-json": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", + "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "index-to-position": "^0.1.2", + "type-fest": "^4.7.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@semantic-release/npm/node_modules/read-pkg": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", + "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.3", + "normalize-package-data": "^6.0.0", + "parse-json": "^8.0.0", + "type-fest": "^4.6.0", + "unicorn-magic": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@semantic-release/npm/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -3136,6 +3172,18 @@ "node": ">=10" } }, + "node_modules/@semantic-release/npm/node_modules/type-fest": { + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.8.3.tgz", + "integrity": "sha512-//BaTm14Q/gHBn09xlnKNqfI8t6bmdzx2DXYfPBNofN0WUybCEUDcbCWcTa0oF09lzLjZgPphXAsvRiMK0V6Bw==", + "dev": true, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@semantic-release/npm/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -5097,7 +5145,6 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, "dependencies": { "is-arrayish": "^0.2.1" } @@ -6171,6 +6218,7 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-0.1.2.tgz", "integrity": "sha512-MWDKS3AS1bGCHLBA2VLImJz42f7bJh8wQsTGCzI3j519/CASStoDONUBVz2I/VID0MpiX3SGSnbOD2xUalbE5g==", + "dev": true, "engines": { "node": ">=18" }, @@ -6217,8 +6265,7 @@ "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" }, "node_modules/is-core-module": { "version": "2.13.1", @@ -12470,18 +12517,17 @@ "dev": true }, "node_modules/read-pkg": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", - "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-8.1.0.tgz", + "integrity": "sha512-PORM8AgzXeskHO/WEv312k9U03B8K9JSiWF/8N9sUuFjBa+9SF2u6K7VClzXwDXab51jCd8Nd36CNM+zR97ScQ==", "dependencies": { - "@types/normalize-package-data": "^2.4.3", + "@types/normalize-package-data": "^2.4.1", "normalize-package-data": "^6.0.0", - "parse-json": "^8.0.0", - "type-fest": "^4.6.0", - "unicorn-magic": "^0.1.0" + "parse-json": "^7.0.0", + "type-fest": "^4.2.0" }, "engines": { - "node": ">=18" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12505,6 +12551,42 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/read-pkg-up/node_modules/parse-json": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", + "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "index-to-position": "^0.1.2", + "type-fest": "^4.7.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/read-pkg": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.1.tgz", + "integrity": "sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.3", + "normalize-package-data": "^6.0.0", + "parse-json": "^8.0.0", + "type-fest": "^4.6.0", + "unicorn-magic": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/read-pkg-up/node_modules/type-fest": { "version": "4.8.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.8.3.tgz", @@ -12517,17 +12599,46 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/read-pkg/node_modules/json-parse-even-better-errors": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.1.tgz", + "integrity": "sha512-aatBvbL26wVUCLmbWdCpeu9iF5wOyWpagiKkInA+kfws3sWdBrTnsvN2CKcyCYyUrc7rebNBlK6+kteg7ksecg==", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/read-pkg/node_modules/lines-and-columns": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.4.tgz", + "integrity": "sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/read-pkg/node_modules/parse-json": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.1.0.tgz", - "integrity": "sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-7.1.1.tgz", + "integrity": "sha512-SgOTCX/EZXtZxBE5eJ97P4yGM5n37BwRU+YMsH4vNzFqJV/oWFXXCmwFlgWUM4PrakybVOueJJ6pwHqSVhTFDw==", "dependencies": { - "@babel/code-frame": "^7.22.13", - "index-to-position": "^0.1.2", - "type-fest": "^4.7.1" + "@babel/code-frame": "^7.21.4", + "error-ex": "^1.3.2", + "json-parse-even-better-errors": "^3.0.0", + "lines-and-columns": "^2.0.3", + "type-fest": "^3.8.0" }, "engines": { - "node": ">=18" + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg/node_modules/parse-json/node_modules/type-fest": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.13.1.tgz", + "integrity": "sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==", + "engines": { + "node": ">=14.16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -12569,9 +12680,9 @@ } }, "node_modules/reflect-metadata": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.1.tgz", - "integrity": "sha512-i5lLI6iw9AU3Uu4szRNPPEkomnkjRTaVt9hy/bn5g/oSzekBSMeLZblcjP74AW0vBabqERLLIrz+gR8QYR54Tw==" + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.14.tgz", + "integrity": "sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A==" }, "node_modules/regenerate": { "version": "1.4.2", @@ -13974,6 +14085,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", + "dev": true, "engines": { "node": ">=18" }, diff --git a/package.json b/package.json index 9d1de635..e7fbb6f9 100644 --- a/package.json +++ b/package.json @@ -37,11 +37,11 @@ "class-transformer-validator": "^0.9.1", "class-validator": "^0.14.0", "execa": "^8.0.1", - "fs-extra": "^11.2.0", - "glob": "^10.3.10", - "read-pkg": "^9.0.1", - "reflect-metadata": "^0.2.1", - "replace-in-file": "^7.0.2" + "fs-extra": "^11.1.1", + "glob": "^10.3.3", + "read-pkg": "^8.0.0", + "reflect-metadata": "^0.1.13", + "replace-in-file": "^7.0.1" }, "devDependencies": { "@babel/core": "7.23.6",