From fe0f1ba2d9f6053212e1d8bd9918622e47ca2273 Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Sat, 3 Feb 2024 11:46:38 +0100 Subject: [PATCH] fix: make dependencies with tolerant flags --- packages/monorepo/bin/monorepo-build.js | 2 +- packages/monorepo/bin/monorepo-ci.js | 2 +- packages/monorepo/bin/monorepo-clean.js | 2 +- packages/monorepo/bin/monorepo-publish.js | 2 +- packages/monorepo/bin/monorepo-sync.js | 2 +- packages/monorepo/bin/monorepo-version.js | 2 +- packages/monorepo/bin/monorepo.js | 2 +- packages/monorepo/package.json | 47 +++--- yarn.lock | 167 +++++++++------------- 9 files changed, 97 insertions(+), 131 deletions(-) diff --git a/packages/monorepo/bin/monorepo-build.js b/packages/monorepo/bin/monorepo-build.js index 96cdfd3..f092f13 100644 --- a/packages/monorepo/bin/monorepo-build.js +++ b/packages/monorepo/bin/monorepo-build.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); commander .usage("monorepo build [options]") diff --git a/packages/monorepo/bin/monorepo-ci.js b/packages/monorepo/bin/monorepo-ci.js index 7414373..04efcf1 100644 --- a/packages/monorepo/bin/monorepo-ci.js +++ b/packages/monorepo/bin/monorepo-ci.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); commander .usage("monorepo ci [options]") diff --git a/packages/monorepo/bin/monorepo-clean.js b/packages/monorepo/bin/monorepo-clean.js index 97e0cc3..891d870 100644 --- a/packages/monorepo/bin/monorepo-clean.js +++ b/packages/monorepo/bin/monorepo-clean.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); commander .usage("monorepo clean [options]") diff --git a/packages/monorepo/bin/monorepo-publish.js b/packages/monorepo/bin/monorepo-publish.js index 4b2a585..b0f66c2 100644 --- a/packages/monorepo/bin/monorepo-publish.js +++ b/packages/monorepo/bin/monorepo-publish.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); commander .usage("monorepo publish [options]") diff --git a/packages/monorepo/bin/monorepo-sync.js b/packages/monorepo/bin/monorepo-sync.js index 644196a..901b8db 100644 --- a/packages/monorepo/bin/monorepo-sync.js +++ b/packages/monorepo/bin/monorepo-sync.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); commander .usage("monorepo sync [options]") diff --git a/packages/monorepo/bin/monorepo-version.js b/packages/monorepo/bin/monorepo-version.js index 4f9936e..5e1d911 100644 --- a/packages/monorepo/bin/monorepo-version.js +++ b/packages/monorepo/bin/monorepo-version.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); commander .usage("monorepo version ") diff --git a/packages/monorepo/bin/monorepo.js b/packages/monorepo/bin/monorepo.js index c69242c..e68d679 100755 --- a/packages/monorepo/bin/monorepo.js +++ b/packages/monorepo/bin/monorepo.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const commander = require("commander"); +const {commander} = require("commander"); const cliPkg = require("../package.json"); commander diff --git a/packages/monorepo/package.json b/packages/monorepo/package.json index bea0801..c875653 100644 --- a/packages/monorepo/package.json +++ b/packages/monorepo/package.json @@ -27,30 +27,29 @@ "bin": "./bin" }, "dependencies": { - "@samverschueren/stream-to-observable": "0.3.1", - "@typescript-eslint/typescript-estree": "6.20.0", - "any-observable": "0.5.1", - "axios": "1.6.7", - "chalk": "5.3.0", - "commander": "11.1.0", - "execa": "8.0.1", - "fancy-log": "1.3.3", - "figures": "3.2.0", - "fs-extra": "11.2.0", - "globby": "14.0.0", - "has-yarn": "3.0.0", - "inquirer": "9.2.13", - "jsonfile": "^6.1.0", - "listr2": "8.0.2", - "lodash": "4.17.21", - "normalize-path": "3.0.0", - "rxjs": "7.8.1", - "semver": "7.5.4", - "split": "1.0.1", - "typescript": "5.3.3" + "@samverschueren/stream-to-observable": ">=0.3.1", + "@typescript-eslint/typescript-estree": ">=6.20.0", + "any-observable": ">=0.5.1", + "axios": ">=1.6.7", + "chalk": ">=5.3.0", + "commander": ">=12.0.0", + "execa": ">=8.0.1", + "fancy-log": ">=1.3.3", + "figures": ">=3.2.0", + "fs-extra": ">=11.2.0", + "globby": ">=14.0.0", + "has-yarn": ">=3.0.0", + "inquirer": ">=9.2.13", + "jsonfile": ">=6.1.0", + "listr2": ">=8.0.2", + "lodash": ">=4.17.21", + "normalize-path": ">=3.0.0", + "rxjs": ">=7.8.1", + "semver": ">=7.5.4", + "split": ">=1.0.1", + "typescript": ">=5.3.3" }, "peerDependencies": { "semantic-release": ">=19" - }, - "devDependencies": {} -} \ No newline at end of file + } +} diff --git a/yarn.lock b/yarn.lock index f103763..072bc06 100644 --- a/yarn.lock +++ b/yarn.lock @@ -586,7 +586,7 @@ __metadata: languageName: node linkType: hard -"@samverschueren/stream-to-observable@npm:0.3.1": +"@samverschueren/stream-to-observable@npm:>=0.3.1": version: 0.3.1 resolution: "@samverschueren/stream-to-observable@npm:0.3.1" dependencies: @@ -767,27 +767,27 @@ __metadata: version: 0.0.0-use.local resolution: "@tsed/monorepo-utils@workspace:packages/monorepo" dependencies: - "@samverschueren/stream-to-observable": "npm:0.3.1" - "@typescript-eslint/typescript-estree": "npm:6.20.0" - any-observable: "npm:0.5.1" - axios: "npm:1.6.7" - chalk: "npm:5.3.0" - commander: "npm:11.1.0" - execa: "npm:8.0.1" - fancy-log: "npm:1.3.3" - figures: "npm:3.2.0" - fs-extra: "npm:11.2.0" - globby: "npm:14.0.0" - has-yarn: "npm:3.0.0" - inquirer: "npm:9.2.13" - jsonfile: "npm:^6.1.0" - listr2: "npm:8.0.2" - lodash: "npm:4.17.21" - normalize-path: "npm:3.0.0" - rxjs: "npm:7.8.1" - semver: "npm:7.5.4" - split: "npm:1.0.1" - typescript: "npm:5.3.3" + "@samverschueren/stream-to-observable": "npm:>=0.3.1" + "@typescript-eslint/typescript-estree": "npm:>=6.20.0" + any-observable: "npm:>=0.5.1" + axios: "npm:>=1.6.7" + chalk: "npm:>=5.3.0" + commander: "npm:>=12.0.0" + execa: "npm:>=8.0.1" + fancy-log: "npm:>=1.3.3" + figures: "npm:>=3.2.0" + fs-extra: "npm:>=11.2.0" + globby: "npm:>=14.0.0" + has-yarn: "npm:>=3.0.0" + inquirer: "npm:>=9.2.13" + jsonfile: "npm:>=6.1.0" + listr2: "npm:>=8.0.2" + lodash: "npm:>=4.17.21" + normalize-path: "npm:>=3.0.0" + rxjs: "npm:>=7.8.1" + semver: "npm:>=7.5.4" + split: "npm:>=1.0.1" + typescript: "npm:>=5.3.3" peerDependencies: semantic-release: ">=19" bin: @@ -854,7 +854,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:6.20.0": +"@typescript-eslint/typescript-estree@npm:>=6.20.0": version: 6.20.0 resolution: "@typescript-eslint/typescript-estree@npm:6.20.0" dependencies: @@ -993,15 +993,6 @@ __metadata: languageName: node linkType: hard -"ansi-gray@npm:^0.1.1": - version: 0.1.1 - resolution: "ansi-gray@npm:0.1.1" - dependencies: - ansi-wrap: "npm:0.1.0" - checksum: 10/b1f0cfefe43fb2f2f2f324daa578f528b7079514261e9ed060de05e21d99797e5fabf69d500c466c263f9c6302751a2c0709ab52324912cdee71be249deffbf7 - languageName: node - linkType: hard - "ansi-regex@npm:^5.0.0": version: 5.0.0 resolution: "ansi-regex@npm:5.0.0" @@ -1058,13 +1049,6 @@ __metadata: languageName: node linkType: hard -"ansi-wrap@npm:0.1.0": - version: 0.1.0 - resolution: "ansi-wrap@npm:0.1.0" - checksum: 10/f24f652a5e450c0561cbc7d298ffa62dcd33c72f9da34fd3c24538dbf82de8fc21b7f924dc30cd9d01360bd2893d1954f0a60eee0550ca629bb148dcbeef5c5b - languageName: node - linkType: hard - "ansicolors@npm:~0.3.2": version: 0.3.2 resolution: "ansicolors@npm:0.3.2" @@ -1072,7 +1056,7 @@ __metadata: languageName: node linkType: hard -"any-observable@npm:0.5.1": +"any-observable@npm:>=0.5.1": version: 0.5.1 resolution: "any-observable@npm:0.5.1" peerDependenciesMeta: @@ -1154,7 +1138,7 @@ __metadata: languageName: node linkType: hard -"axios@npm:1.6.7": +"axios@npm:>=1.6.7": version: 1.6.7 resolution: "axios@npm:1.6.7" dependencies: @@ -1320,7 +1304,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:5.3.0, chalk@npm:^5.3.0": +"chalk@npm:>=5.3.0, chalk@npm:^5.3.0": version: 5.3.0 resolution: "chalk@npm:5.3.0" checksum: 10/6373caaab21bd64c405bfc4bd9672b145647fc9482657b5ea1d549b3b2765054e9d3d928870cdf764fb4aad67555f5061538ff247b8310f110c5c888d92397ea @@ -1578,10 +1562,10 @@ __metadata: languageName: node linkType: hard -"commander@npm:11.1.0": - version: 11.1.0 - resolution: "commander@npm:11.1.0" - checksum: 10/66bd2d8a0547f6cb1d34022efb25f348e433b0e04ad76a65279b1b09da108f59a4d3001ca539c60a7a46ea38bcf399fc17d91adad76a8cf43845d8dcbaf5cda1 +"commander@npm:>=12.0.0": + version: 12.0.0 + resolution: "commander@npm:12.0.0" + checksum: 10/62062e2ffe6abd5aa42a551e62fd5eb9b2620f6ac4299382b2aa9fb02f95cda0242d7e84acb890479bd6491edb805f7f91aecb5b4f5c70dc57df49ed7f02ef14 languageName: node linkType: hard @@ -2192,7 +2176,7 @@ __metadata: languageName: node linkType: hard -"execa@npm:8.0.1, execa@npm:^8.0.0": +"execa@npm:>=8.0.1, execa@npm:^8.0.0": version: 8.0.1 resolution: "execa@npm:8.0.1" dependencies: @@ -2244,15 +2228,12 @@ __metadata: languageName: node linkType: hard -"fancy-log@npm:1.3.3": - version: 1.3.3 - resolution: "fancy-log@npm:1.3.3" +"fancy-log@npm:>=1.3.3": + version: 2.0.0 + resolution: "fancy-log@npm:2.0.0" dependencies: - ansi-gray: "npm:^0.1.1" color-support: "npm:^1.1.3" - parse-node-version: "npm:^1.0.0" - time-stamp: "npm:^1.0.0" - checksum: 10/855b229436d9fd13dcaffbce1cda0a1f76c3d239f588bfe2c8050b5530894c15f8042f31c749861236576e2125b4f1349b4082c3f88134142f2e776429dc48c0 + checksum: 10/3259c84a7b2e73abde0264f2ecd1db322450256dc9402638543af12c54762d2a407a4563582bfa3e22a546d7a199c1b4f7c4667fe2dfc453c1ce7a5ce54d7b79 languageName: node linkType: hard @@ -2313,12 +2294,12 @@ __metadata: languageName: node linkType: hard -"figures@npm:3.2.0, figures@npm:^3.2.0": - version: 3.2.0 - resolution: "figures@npm:3.2.0" +"figures@npm:>=3.2.0, figures@npm:^6.0.0": + version: 6.0.1 + resolution: "figures@npm:6.0.1" dependencies: - escape-string-regexp: "npm:^1.0.5" - checksum: 10/a3bf94e001be51d3770500789157f067218d4bc681a65e1f69d482de15120bcac822dceb1a7b3803f32e4e3a61a46df44f7f2c8ba95d6375e7491502e0dd3d97 + is-unicode-supported: "npm:^2.0.0" + checksum: 10/2fb988f01bed5ae6915a0593342f083bd1b09d0a6bf9aa58d0882c446cf13b59059f8a967acd676763278107b87b762231430d610d8f3be87c90ce87984a32a1 languageName: node linkType: hard @@ -2331,12 +2312,12 @@ __metadata: languageName: node linkType: hard -"figures@npm:^6.0.0": - version: 6.0.1 - resolution: "figures@npm:6.0.1" +"figures@npm:^3.2.0": + version: 3.2.0 + resolution: "figures@npm:3.2.0" dependencies: - is-unicode-supported: "npm:^2.0.0" - checksum: 10/2fb988f01bed5ae6915a0593342f083bd1b09d0a6bf9aa58d0882c446cf13b59059f8a967acd676763278107b87b762231430d610d8f3be87c90ce87984a32a1 + escape-string-regexp: "npm:^1.0.5" + checksum: 10/a3bf94e001be51d3770500789157f067218d4bc681a65e1f69d482de15120bcac822dceb1a7b3803f32e4e3a61a46df44f7f2c8ba95d6375e7491502e0dd3d97 languageName: node linkType: hard @@ -2451,7 +2432,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:11.2.0, fs-extra@npm:^11.0.0": +"fs-extra@npm:>=11.2.0, fs-extra@npm:^11.0.0": version: 11.2.0 resolution: "fs-extra@npm:11.2.0" dependencies: @@ -2650,7 +2631,7 @@ __metadata: languageName: node linkType: hard -"globby@npm:14.0.0, globby@npm:^14.0.0": +"globby@npm:>=14.0.0, globby@npm:^14.0.0": version: 14.0.0 resolution: "globby@npm:14.0.0" dependencies: @@ -2777,7 +2758,7 @@ __metadata: languageName: node linkType: hard -"has-yarn@npm:3.0.0": +"has-yarn@npm:>=3.0.0": version: 3.0.0 resolution: "has-yarn@npm:3.0.0" checksum: 10/b9e14e78e0a37bc070550c862b201534287bc10e62a86ec9c1f455ffb082db42817ce9aed914bd73f1d589bbf268520e194629ff2f62ff6b98a482c4bd2dcbfb @@ -3017,7 +2998,7 @@ __metadata: languageName: node linkType: hard -"inquirer@npm:9.2.13": +"inquirer@npm:>=9.2.13": version: 9.2.13 resolution: "inquirer@npm:9.2.13" dependencies: @@ -3344,29 +3325,29 @@ __metadata: languageName: node linkType: hard -"jsonfile@npm:^6.0.1": - version: 6.0.1 - resolution: "jsonfile@npm:6.0.1" +"jsonfile@npm:>=6.1.0": + version: 6.1.0 + resolution: "jsonfile@npm:6.1.0" dependencies: graceful-fs: "npm:^4.1.6" - universalify: "npm:^1.0.0" + universalify: "npm:^2.0.0" dependenciesMeta: graceful-fs: optional: true - checksum: 10/7abeaf3a7e03bedd4e7f6264a2bd1dd78723b8ff554539acbc30fd1e5ca780c343c89f439ebeb8710a97b22bb60fb1b383e5627c52f9efd51e1a77d68741056b + checksum: 10/03014769e7dc77d4cf05fa0b534907270b60890085dd5e4d60a382ff09328580651da0b8b4cdf44d91e4c8ae64d91791d965f05707beff000ed494a38b6fec85 languageName: node linkType: hard -"jsonfile@npm:^6.1.0": - version: 6.1.0 - resolution: "jsonfile@npm:6.1.0" +"jsonfile@npm:^6.0.1": + version: 6.0.1 + resolution: "jsonfile@npm:6.0.1" dependencies: graceful-fs: "npm:^4.1.6" - universalify: "npm:^2.0.0" + universalify: "npm:^1.0.0" dependenciesMeta: graceful-fs: optional: true - checksum: 10/03014769e7dc77d4cf05fa0b534907270b60890085dd5e4d60a382ff09328580651da0b8b4cdf44d91e4c8ae64d91791d965f05707beff000ed494a38b6fec85 + checksum: 10/7abeaf3a7e03bedd4e7f6264a2bd1dd78723b8ff554539acbc30fd1e5ca780c343c89f439ebeb8710a97b22bb60fb1b383e5627c52f9efd51e1a77d68741056b languageName: node linkType: hard @@ -3568,7 +3549,7 @@ __metadata: languageName: node linkType: hard -"listr2@npm:8.0.2": +"listr2@npm:>=8.0.2": version: 8.0.2 resolution: "listr2@npm:8.0.2" dependencies: @@ -3681,7 +3662,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:4.17.21, lodash@npm:^4.17.21": +"lodash@npm:>=4.17.21, lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: 10/c08619c038846ea6ac754abd6dd29d2568aa705feb69339e836dfa8d8b09abbb2f859371e86863eda41848221f9af43714491467b5b0299122431e202bb0c532 @@ -4111,7 +4092,7 @@ __metadata: languageName: node linkType: hard -"normalize-path@npm:3.0.0, normalize-path@npm:^3.0.0": +"normalize-path@npm:>=3.0.0, normalize-path@npm:^3.0.0": version: 3.0.0 resolution: "normalize-path@npm:3.0.0" checksum: 10/88eeb4da891e10b1318c4b2476b6e2ecbeb5ff97d946815ffea7794c31a89017c70d7f34b3c2ebf23ef4e9fc9fb99f7dffe36da22011b5b5c6ffa34f4873ec20 @@ -4580,13 +4561,6 @@ __metadata: languageName: node linkType: hard -"parse-node-version@npm:^1.0.0": - version: 1.0.1 - resolution: "parse-node-version@npm:1.0.1" - checksum: 10/ac9b40c6473035ec2dd0afe793b226743055f8119b50853be2022c817053c3377d02b4bb42e0735d9dcb6c32d16478086934b0a8de570a5f5eebacbfc1514ccd - languageName: node - linkType: hard - "path-exists@npm:^3.0.0": version: 3.0.0 resolution: "path-exists@npm:3.0.0" @@ -5022,7 +4996,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:7.8.1, rxjs@npm:^7.8.1": +"rxjs@npm:>=7.8.1, rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -5123,7 +5097,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:7.5.4, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4": +"semver@npm:>=7.5.4, semver@npm:^7.5.2, semver@npm:^7.5.3, semver@npm:^7.5.4": version: 7.5.4 resolution: "semver@npm:7.5.4" dependencies: @@ -5397,7 +5371,7 @@ __metadata: languageName: node linkType: hard -"split@npm:1.0.1": +"split@npm:>=1.0.1": version: 1.0.1 resolution: "split@npm:1.0.1" dependencies: @@ -5690,13 +5664,6 @@ __metadata: languageName: node linkType: hard -"time-stamp@npm:^1.0.0": - version: 1.1.0 - resolution: "time-stamp@npm:1.1.0" - checksum: 10/4c46e9739dab997fa8ba787c644cb2b9ea9867eb281acbbb8ba23c4f5edcbe8cc16f0aa5b7981a4c96df76b99dd1f54b0895865c15f3c0e49d1edd8c208717fd - languageName: node - linkType: hard - "tiny-relative-date@npm:^1.3.0": version: 1.3.0 resolution: "tiny-relative-date@npm:1.3.0" @@ -5821,7 +5788,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.3.3": +"typescript@npm:>=5.3.3": version: 5.3.3 resolution: "typescript@npm:5.3.3" bin: @@ -5831,7 +5798,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.3.3#optional!builtin": +"typescript@patch:typescript@npm%3A>=5.3.3#optional!builtin": version: 5.3.3 resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin::version=5.3.3&hash=e012d7" bin: