diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d47eb0..355a935 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,4 +30,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release + run: npm run release diff --git a/.releaserc.json b/.releaserc.json index 0f7e6b1..225e5bc 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -5,7 +5,18 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/npm", - "@semantic-release/github" + [ + "@semantic-release/npm", + { + "npmPublish": false, + "tarballDir": "./publish" + } + ], + [ + "@semantic-release/github", + { + "assets": "./publish/*.tgz" + } + ] ] } diff --git a/package-lock.json b/package-lock.json index 14c88c1..fa3450a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,15 @@ { "name": "json-glue", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "json-glue", - "version": "1.0.0", + "version": "1.0.2", "license": "ISC", "devDependencies": { + "@semantic-release/git": "^10.0.1", "@types/jest": "^29.5.12", "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", @@ -1458,6 +1459,37 @@ "semantic-release": ">=20.1.0" } }, + "node_modules/@semantic-release/error": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-3.0.0.tgz", + "integrity": "sha512-5hiM4Un+tpl4cKw3lV4UgzJj+SmfNIDCLLw0TepzQxz9ZGV5ixnqkzIVF+3tp0ZHgcMKE+VNGHJjEeyFG2dcSw==", + "dev": true, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@semantic-release/git": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/git/-/git-10.0.1.tgz", + "integrity": "sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==", + "dev": true, + "dependencies": { + "@semantic-release/error": "^3.0.0", + "aggregate-error": "^3.0.0", + "debug": "^4.0.0", + "dir-glob": "^3.0.0", + "execa": "^5.0.0", + "lodash": "^4.17.4", + "micromatch": "^4.0.0", + "p-reduce": "^2.0.0" + }, + "engines": { + "node": ">=14.17" + }, + "peerDependencies": { + "semantic-release": ">=18.0.0" + } + }, "node_modules/@semantic-release/github": { "version": "10.3.3", "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-10.3.3.tgz", @@ -2230,6 +2262,19 @@ "node": ">= 14" } }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "dev": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -2630,6 +2675,15 @@ "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==", "dev": true }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/cli-highlight": { "version": "2.1.11", "resolved": "https://registry.npmjs.org/cli-highlight/-/cli-highlight-2.1.11.tgz", @@ -4164,6 +4218,15 @@ "node": ">=0.8.19" } }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/index-to-position": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-0.1.2.tgz", @@ -5196,6 +5259,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, "node_modules/lodash-es": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", @@ -5698,7 +5767,6 @@ }, "node_modules/npm/node_modules/@isaacs/cliui": { "version": "8.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5715,7 +5783,6 @@ }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { "version": "6.0.1", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -5727,13 +5794,11 @@ }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { "version": "9.2.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -5750,7 +5815,6 @@ }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": { "version": "7.1.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -5765,13 +5829,11 @@ }, "node_modules/npm/node_modules/@isaacs/string-locale-compare": { "version": "1.1.0", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/@npmcli/agent": { "version": "2.2.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5787,7 +5849,6 @@ }, "node_modules/npm/node_modules/@npmcli/arborist": { "version": "7.5.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5836,7 +5897,6 @@ }, "node_modules/npm/node_modules/@npmcli/config": { "version": "8.3.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5855,7 +5915,6 @@ }, "node_modules/npm/node_modules/@npmcli/fs": { "version": "3.1.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5867,7 +5926,6 @@ }, "node_modules/npm/node_modules/@npmcli/git": { "version": "5.0.8", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5887,7 +5945,6 @@ }, "node_modules/npm/node_modules/@npmcli/installed-package-contents": { "version": "2.1.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5903,7 +5960,6 @@ }, "node_modules/npm/node_modules/@npmcli/map-workspaces": { "version": "3.0.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5918,7 +5974,6 @@ }, "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { "version": "7.1.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5934,7 +5989,6 @@ }, "node_modules/npm/node_modules/@npmcli/name-from-folder": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -5943,7 +5997,6 @@ }, "node_modules/npm/node_modules/@npmcli/node-gyp": { "version": "3.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -5952,7 +6005,6 @@ }, "node_modules/npm/node_modules/@npmcli/package-json": { "version": "5.2.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5970,7 +6022,6 @@ }, "node_modules/npm/node_modules/@npmcli/promise-spawn": { "version": "7.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5982,7 +6033,6 @@ }, "node_modules/npm/node_modules/@npmcli/query": { "version": "3.1.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -5994,7 +6044,6 @@ }, "node_modules/npm/node_modules/@npmcli/redact": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -6003,7 +6052,6 @@ }, "node_modules/npm/node_modules/@npmcli/run-script": { "version": "8.1.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6020,7 +6068,6 @@ }, "node_modules/npm/node_modules/@pkgjs/parseargs": { "version": "0.11.0", - "dev": true, "inBundle": true, "license": "MIT", "optional": true, @@ -6030,7 +6077,6 @@ }, "node_modules/npm/node_modules/@sigstore/bundle": { "version": "2.3.2", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -6042,7 +6088,6 @@ }, "node_modules/npm/node_modules/@sigstore/core": { "version": "1.1.0", - "dev": true, "inBundle": true, "license": "Apache-2.0", "engines": { @@ -6051,7 +6096,6 @@ }, "node_modules/npm/node_modules/@sigstore/protobuf-specs": { "version": "0.3.2", - "dev": true, "inBundle": true, "license": "Apache-2.0", "engines": { @@ -6060,7 +6104,6 @@ }, "node_modules/npm/node_modules/@sigstore/sign": { "version": "2.3.2", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -6077,7 +6120,6 @@ }, "node_modules/npm/node_modules/@sigstore/tuf": { "version": "2.3.4", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -6090,7 +6132,6 @@ }, "node_modules/npm/node_modules/@sigstore/verify": { "version": "1.2.1", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -6104,7 +6145,6 @@ }, "node_modules/npm/node_modules/@tufjs/canonical-json": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6113,7 +6153,6 @@ }, "node_modules/npm/node_modules/@tufjs/models": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6126,7 +6165,6 @@ }, "node_modules/npm/node_modules/abbrev": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -6135,7 +6173,6 @@ }, "node_modules/npm/node_modules/agent-base": { "version": "7.1.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6147,7 +6184,6 @@ }, "node_modules/npm/node_modules/aggregate-error": { "version": "3.1.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6160,7 +6196,6 @@ }, "node_modules/npm/node_modules/ansi-regex": { "version": "5.0.1", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6169,7 +6204,6 @@ }, "node_modules/npm/node_modules/ansi-styles": { "version": "6.2.1", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6181,25 +6215,21 @@ }, "node_modules/npm/node_modules/aproba": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/archy": { "version": "1.0.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/balanced-match": { "version": "1.0.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/bin-links": { "version": "4.0.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6214,7 +6244,6 @@ }, "node_modules/npm/node_modules/binary-extensions": { "version": "2.3.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6226,7 +6255,6 @@ }, "node_modules/npm/node_modules/brace-expansion": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6235,7 +6263,6 @@ }, "node_modules/npm/node_modules/cacache": { "version": "18.0.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6258,7 +6285,6 @@ }, "node_modules/npm/node_modules/chalk": { "version": "5.3.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6270,7 +6296,6 @@ }, "node_modules/npm/node_modules/chownr": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -6279,7 +6304,6 @@ }, "node_modules/npm/node_modules/ci-info": { "version": "4.0.0", - "dev": true, "funding": [ { "type": "github", @@ -6294,7 +6318,6 @@ }, "node_modules/npm/node_modules/cidr-regex": { "version": "4.1.1", - "dev": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -6306,7 +6329,6 @@ }, "node_modules/npm/node_modules/clean-stack": { "version": "2.2.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6315,7 +6337,6 @@ }, "node_modules/npm/node_modules/cli-columns": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6328,7 +6349,6 @@ }, "node_modules/npm/node_modules/cmd-shim": { "version": "6.0.3", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -6337,7 +6357,6 @@ }, "node_modules/npm/node_modules/color-convert": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6349,19 +6368,16 @@ }, "node_modules/npm/node_modules/color-name": { "version": "1.1.4", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/common-ancestor-path": { "version": "1.0.1", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/cross-spawn": { "version": "7.0.3", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6375,7 +6391,6 @@ }, "node_modules/npm/node_modules/cross-spawn/node_modules/which": { "version": "2.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6390,7 +6405,6 @@ }, "node_modules/npm/node_modules/cssesc": { "version": "3.0.0", - "dev": true, "inBundle": true, "license": "MIT", "bin": { @@ -6402,7 +6416,6 @@ }, "node_modules/npm/node_modules/debug": { "version": "4.3.6", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6419,13 +6432,11 @@ }, "node_modules/npm/node_modules/debug/node_modules/ms": { "version": "2.1.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/diff": { "version": "5.2.0", - "dev": true, "inBundle": true, "license": "BSD-3-Clause", "engines": { @@ -6434,19 +6445,16 @@ }, "node_modules/npm/node_modules/eastasianwidth": { "version": "0.2.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/emoji-regex": { "version": "8.0.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/encoding": { "version": "0.1.13", - "dev": true, "inBundle": true, "license": "MIT", "optional": true, @@ -6456,7 +6464,6 @@ }, "node_modules/npm/node_modules/env-paths": { "version": "2.2.1", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6465,19 +6472,16 @@ }, "node_modules/npm/node_modules/err-code": { "version": "2.0.3", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/exponential-backoff": { "version": "3.1.1", - "dev": true, "inBundle": true, "license": "Apache-2.0" }, "node_modules/npm/node_modules/fastest-levenshtein": { "version": "1.0.16", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6486,7 +6490,6 @@ }, "node_modules/npm/node_modules/foreground-child": { "version": "3.3.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6502,7 +6505,6 @@ }, "node_modules/npm/node_modules/fs-minipass": { "version": "3.0.3", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6514,7 +6516,6 @@ }, "node_modules/npm/node_modules/glob": { "version": "10.4.5", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6534,13 +6535,11 @@ }, "node_modules/npm/node_modules/graceful-fs": { "version": "4.2.11", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/hosted-git-info": { "version": "7.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6552,13 +6551,11 @@ }, "node_modules/npm/node_modules/http-cache-semantics": { "version": "4.1.1", - "dev": true, "inBundle": true, "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/http-proxy-agent": { "version": "7.0.2", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6571,7 +6568,6 @@ }, "node_modules/npm/node_modules/https-proxy-agent": { "version": "7.0.5", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6584,7 +6580,6 @@ }, "node_modules/npm/node_modules/iconv-lite": { "version": "0.6.3", - "dev": true, "inBundle": true, "license": "MIT", "optional": true, @@ -6597,7 +6592,6 @@ }, "node_modules/npm/node_modules/ignore-walk": { "version": "6.0.5", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6609,7 +6603,6 @@ }, "node_modules/npm/node_modules/imurmurhash": { "version": "0.1.4", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6618,7 +6611,6 @@ }, "node_modules/npm/node_modules/indent-string": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6627,7 +6619,6 @@ }, "node_modules/npm/node_modules/ini": { "version": "4.1.3", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -6636,7 +6627,6 @@ }, "node_modules/npm/node_modules/init-package-json": { "version": "6.0.3", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6654,7 +6644,6 @@ }, "node_modules/npm/node_modules/ip-address": { "version": "9.0.5", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -6667,7 +6656,6 @@ }, "node_modules/npm/node_modules/ip-regex": { "version": "5.0.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6679,7 +6667,6 @@ }, "node_modules/npm/node_modules/is-cidr": { "version": "5.1.0", - "dev": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -6691,7 +6678,6 @@ }, "node_modules/npm/node_modules/is-fullwidth-code-point": { "version": "3.0.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6700,19 +6686,16 @@ }, "node_modules/npm/node_modules/is-lambda": { "version": "1.0.1", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/isexe": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/jackspeak": { "version": "3.4.3", - "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", "dependencies": { @@ -6727,13 +6710,11 @@ }, "node_modules/npm/node_modules/jsbn": { "version": "1.1.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/json-parse-even-better-errors": { "version": "3.0.2", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -6742,7 +6723,6 @@ }, "node_modules/npm/node_modules/json-stringify-nice": { "version": "1.1.4", - "dev": true, "inBundle": true, "license": "ISC", "funding": { @@ -6751,7 +6731,6 @@ }, "node_modules/npm/node_modules/jsonparse": { "version": "1.3.1", - "dev": true, "engines": [ "node >= 0.2.0" ], @@ -6760,19 +6739,16 @@ }, "node_modules/npm/node_modules/just-diff": { "version": "6.0.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/just-diff-apply": { "version": "5.5.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/libnpmaccess": { "version": "8.0.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6785,7 +6761,6 @@ }, "node_modules/npm/node_modules/libnpmdiff": { "version": "6.1.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6804,7 +6779,6 @@ }, "node_modules/npm/node_modules/libnpmexec": { "version": "8.1.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6825,7 +6799,6 @@ }, "node_modules/npm/node_modules/libnpmfund": { "version": "5.0.12", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6837,7 +6810,6 @@ }, "node_modules/npm/node_modules/libnpmhook": { "version": "10.0.5", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6850,7 +6822,6 @@ }, "node_modules/npm/node_modules/libnpmorg": { "version": "6.0.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6863,7 +6834,6 @@ }, "node_modules/npm/node_modules/libnpmpack": { "version": "7.0.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6878,7 +6848,6 @@ }, "node_modules/npm/node_modules/libnpmpublish": { "version": "9.0.9", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6897,7 +6866,6 @@ }, "node_modules/npm/node_modules/libnpmsearch": { "version": "7.0.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6909,7 +6877,6 @@ }, "node_modules/npm/node_modules/libnpmteam": { "version": "6.0.5", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6922,7 +6889,6 @@ }, "node_modules/npm/node_modules/libnpmversion": { "version": "6.0.3", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6938,13 +6904,11 @@ }, "node_modules/npm/node_modules/lru-cache": { "version": "10.4.3", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/make-fetch-happen": { "version": "13.0.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6967,7 +6931,6 @@ }, "node_modules/npm/node_modules/minimatch": { "version": "9.0.5", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -6982,7 +6945,6 @@ }, "node_modules/npm/node_modules/minipass": { "version": "7.1.2", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -6991,7 +6953,6 @@ }, "node_modules/npm/node_modules/minipass-collect": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7003,7 +6964,6 @@ }, "node_modules/npm/node_modules/minipass-fetch": { "version": "3.0.5", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7020,7 +6980,6 @@ }, "node_modules/npm/node_modules/minipass-flush": { "version": "1.0.5", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7032,7 +6991,6 @@ }, "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { "version": "3.3.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7044,7 +7002,6 @@ }, "node_modules/npm/node_modules/minipass-pipeline": { "version": "1.2.4", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7056,7 +7013,6 @@ }, "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { "version": "3.3.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7068,7 +7024,6 @@ }, "node_modules/npm/node_modules/minipass-sized": { "version": "1.0.3", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7080,7 +7035,6 @@ }, "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { "version": "3.3.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7092,7 +7046,6 @@ }, "node_modules/npm/node_modules/minizlib": { "version": "2.1.2", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7105,7 +7058,6 @@ }, "node_modules/npm/node_modules/minizlib/node_modules/minipass": { "version": "3.3.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7117,7 +7069,6 @@ }, "node_modules/npm/node_modules/mkdirp": { "version": "1.0.4", - "dev": true, "inBundle": true, "license": "MIT", "bin": { @@ -7129,13 +7080,11 @@ }, "node_modules/npm/node_modules/ms": { "version": "2.1.3", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/mute-stream": { "version": "1.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7144,7 +7093,6 @@ }, "node_modules/npm/node_modules/negotiator": { "version": "0.6.3", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -7153,7 +7101,6 @@ }, "node_modules/npm/node_modules/node-gyp": { "version": "10.2.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7177,7 +7124,6 @@ }, "node_modules/npm/node_modules/nopt": { "version": "7.2.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7192,7 +7138,6 @@ }, "node_modules/npm/node_modules/normalize-package-data": { "version": "6.0.2", - "dev": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -7206,7 +7151,6 @@ }, "node_modules/npm/node_modules/npm-audit-report": { "version": "5.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7215,7 +7159,6 @@ }, "node_modules/npm/node_modules/npm-bundled": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7227,7 +7170,6 @@ }, "node_modules/npm/node_modules/npm-install-checks": { "version": "6.3.0", - "dev": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { @@ -7239,7 +7181,6 @@ }, "node_modules/npm/node_modules/npm-normalize-package-bin": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7248,7 +7189,6 @@ }, "node_modules/npm/node_modules/npm-package-arg": { "version": "11.0.3", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7263,7 +7203,6 @@ }, "node_modules/npm/node_modules/npm-packlist": { "version": "8.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7275,7 +7214,6 @@ }, "node_modules/npm/node_modules/npm-pick-manifest": { "version": "9.1.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7290,7 +7228,6 @@ }, "node_modules/npm/node_modules/npm-profile": { "version": "10.0.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7303,7 +7240,6 @@ }, "node_modules/npm/node_modules/npm-registry-fetch": { "version": "17.1.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7322,7 +7258,6 @@ }, "node_modules/npm/node_modules/npm-user-validate": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "BSD-2-Clause", "engines": { @@ -7331,7 +7266,6 @@ }, "node_modules/npm/node_modules/p-map": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7346,13 +7280,11 @@ }, "node_modules/npm/node_modules/package-json-from-dist": { "version": "1.0.0", - "dev": true, "inBundle": true, "license": "BlueOak-1.0.0" }, "node_modules/npm/node_modules/pacote": { "version": "18.0.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7383,7 +7315,6 @@ }, "node_modules/npm/node_modules/parse-conflict-json": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7397,7 +7328,6 @@ }, "node_modules/npm/node_modules/path-key": { "version": "3.1.1", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -7406,7 +7336,6 @@ }, "node_modules/npm/node_modules/path-scurry": { "version": "1.11.1", - "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", "dependencies": { @@ -7422,7 +7351,6 @@ }, "node_modules/npm/node_modules/postcss-selector-parser": { "version": "6.1.2", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7435,7 +7363,6 @@ }, "node_modules/npm/node_modules/proc-log": { "version": "4.2.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7444,7 +7371,6 @@ }, "node_modules/npm/node_modules/proggy": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7453,7 +7379,6 @@ }, "node_modules/npm/node_modules/promise-all-reject-late": { "version": "1.0.1", - "dev": true, "inBundle": true, "license": "ISC", "funding": { @@ -7462,7 +7387,6 @@ }, "node_modules/npm/node_modules/promise-call-limit": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "ISC", "funding": { @@ -7471,13 +7395,11 @@ }, "node_modules/npm/node_modules/promise-inflight": { "version": "1.0.1", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/promise-retry": { "version": "2.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7490,7 +7412,6 @@ }, "node_modules/npm/node_modules/promzard": { "version": "1.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7502,7 +7423,6 @@ }, "node_modules/npm/node_modules/qrcode-terminal": { "version": "0.12.0", - "dev": true, "inBundle": true, "bin": { "qrcode-terminal": "bin/qrcode-terminal.js" @@ -7510,7 +7430,6 @@ }, "node_modules/npm/node_modules/read": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7522,7 +7441,6 @@ }, "node_modules/npm/node_modules/read-cmd-shim": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7531,7 +7449,6 @@ }, "node_modules/npm/node_modules/read-package-json-fast": { "version": "3.0.2", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7544,7 +7461,6 @@ }, "node_modules/npm/node_modules/retry": { "version": "0.12.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -7553,14 +7469,12 @@ }, "node_modules/npm/node_modules/safer-buffer": { "version": "2.1.2", - "dev": true, "inBundle": true, "license": "MIT", "optional": true }, "node_modules/npm/node_modules/semver": { "version": "7.6.3", - "dev": true, "inBundle": true, "license": "ISC", "bin": { @@ -7572,7 +7486,6 @@ }, "node_modules/npm/node_modules/shebang-command": { "version": "2.0.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7584,7 +7497,6 @@ }, "node_modules/npm/node_modules/shebang-regex": { "version": "3.0.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -7593,7 +7505,6 @@ }, "node_modules/npm/node_modules/signal-exit": { "version": "4.1.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7605,7 +7516,6 @@ }, "node_modules/npm/node_modules/sigstore": { "version": "2.3.1", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -7622,7 +7532,6 @@ }, "node_modules/npm/node_modules/smart-buffer": { "version": "4.2.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -7632,7 +7541,6 @@ }, "node_modules/npm/node_modules/socks": { "version": "2.8.3", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7646,7 +7554,6 @@ }, "node_modules/npm/node_modules/socks-proxy-agent": { "version": "8.0.4", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7660,7 +7567,6 @@ }, "node_modules/npm/node_modules/spdx-correct": { "version": "3.2.0", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -7670,7 +7576,6 @@ }, "node_modules/npm/node_modules/spdx-correct/node_modules/spdx-expression-parse": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7680,13 +7585,11 @@ }, "node_modules/npm/node_modules/spdx-exceptions": { "version": "2.5.0", - "dev": true, "inBundle": true, "license": "CC-BY-3.0" }, "node_modules/npm/node_modules/spdx-expression-parse": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7696,19 +7599,16 @@ }, "node_modules/npm/node_modules/spdx-license-ids": { "version": "3.0.18", - "dev": true, "inBundle": true, "license": "CC0-1.0" }, "node_modules/npm/node_modules/sprintf-js": { "version": "1.1.3", - "dev": true, "inBundle": true, "license": "BSD-3-Clause" }, "node_modules/npm/node_modules/ssri": { "version": "10.0.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7720,7 +7620,6 @@ }, "node_modules/npm/node_modules/string-width": { "version": "4.2.3", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7735,7 +7634,6 @@ "node_modules/npm/node_modules/string-width-cjs": { "name": "string-width", "version": "4.2.3", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7749,7 +7647,6 @@ }, "node_modules/npm/node_modules/strip-ansi": { "version": "6.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7762,7 +7659,6 @@ "node_modules/npm/node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7774,7 +7670,6 @@ }, "node_modules/npm/node_modules/supports-color": { "version": "9.4.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -7786,7 +7681,6 @@ }, "node_modules/npm/node_modules/tar": { "version": "6.2.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7803,7 +7697,6 @@ }, "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { "version": "2.1.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7815,7 +7708,6 @@ }, "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { "version": "3.3.6", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7827,7 +7719,6 @@ }, "node_modules/npm/node_modules/tar/node_modules/minipass": { "version": "5.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7836,19 +7727,16 @@ }, "node_modules/npm/node_modules/text-table": { "version": "0.2.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/tiny-relative-date": { "version": "1.3.0", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/treeverse": { "version": "3.0.0", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7857,7 +7745,6 @@ }, "node_modules/npm/node_modules/tuf-js": { "version": "2.2.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7871,7 +7758,6 @@ }, "node_modules/npm/node_modules/unique-filename": { "version": "3.0.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7883,7 +7769,6 @@ }, "node_modules/npm/node_modules/unique-slug": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7895,13 +7780,11 @@ }, "node_modules/npm/node_modules/util-deprecate": { "version": "1.0.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/validate-npm-package-license": { "version": "3.0.4", - "dev": true, "inBundle": true, "license": "Apache-2.0", "dependencies": { @@ -7911,7 +7794,6 @@ }, "node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7921,7 +7803,6 @@ }, "node_modules/npm/node_modules/validate-npm-package-name": { "version": "5.0.1", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7930,13 +7811,11 @@ }, "node_modules/npm/node_modules/walk-up-path": { "version": "3.0.1", - "dev": true, "inBundle": true, "license": "ISC" }, "node_modules/npm/node_modules/which": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -7951,7 +7830,6 @@ }, "node_modules/npm/node_modules/which/node_modules/isexe": { "version": "3.1.1", - "dev": true, "inBundle": true, "license": "ISC", "engines": { @@ -7960,7 +7838,6 @@ }, "node_modules/npm/node_modules/wrap-ansi": { "version": "8.1.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7978,7 +7855,6 @@ "node_modules/npm/node_modules/wrap-ansi-cjs": { "name": "wrap-ansi", "version": "7.0.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -7995,7 +7871,6 @@ }, "node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { "version": "4.3.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -8010,7 +7885,6 @@ }, "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { "version": "6.0.1", - "dev": true, "inBundle": true, "license": "MIT", "engines": { @@ -8022,13 +7896,11 @@ }, "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { "version": "9.2.2", - "dev": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { "version": "5.1.2", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -8045,7 +7917,6 @@ }, "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { "version": "7.1.0", - "dev": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -8060,7 +7931,6 @@ }, "node_modules/npm/node_modules/write-file-atomic": { "version": "5.0.1", - "dev": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -8073,7 +7943,6 @@ }, "node_modules/npm/node_modules/yallist": { "version": "4.0.0", - "dev": true, "inBundle": true, "license": "ISC" }, @@ -8205,6 +8074,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-reduce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", + "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", diff --git a/package.json b/package.json index bacc6a6..78ccf60 100644 --- a/package.json +++ b/package.json @@ -5,16 +5,16 @@ "main": "dist/index.js", "module": "dist/index.js", "typings": "dist/index.d.ts", - "files": [ - "dist" - ], "scripts": { + "prebuild": "rm -rf dist", "build": "tsc", + "postbuild": "cp package.json README.md dist", "lint": "eslint 'src/**/*.ts'", "lint:fix": "eslint 'src/**/*.ts' --fix", "test": "jest --config jest.config.json", "test:coverage": "jest --config jest.config.json --coverage", - "release": "semantic-release --branches main" + "release": "semantic-release --branches main", + "prepack": "npm run build" }, "repository": { "type": "git",