From 95a4e7bf0b8eb9a4303d8c10b33eeb0b86af8374 Mon Sep 17 00:00:00 2001 From: Ashmithelps Date: Wed, 2 Oct 2024 22:20:09 +0530 Subject: [PATCH] fixed providers --- .../lockfile-parsing/package-lock.json | 17 ++- .../lockfile-parsing/package.json | 5 +- .../npm/__fixtures__/npm7/package-lock.json | 66 +++++++++- .../npm/__fixtures__/npm7/package.json | 3 +- .../npm/__fixtures__/npm9/package-lock.json | 7 +- .../npm/__fixtures__/npm9/package.json | 3 +- .../__fixtures__/plocktest1/package-lock.json | 70 +++++++--- .../npm/__fixtures__/plocktest1/package.json | 3 +- .../npm/__fixtures__/plocktest1/yarn.lock | 28 +++- .../nested-packages/group/a/package-lock.json | 28 ++++ .../nested-packages/group/a/package.json | 1 + .../nested-packages/group/b/package-lock.json | 84 ++++++++++++ .../nested-packages/group/b/package.json | 1 + .../non-nested-packages/a/package-lock.json | 28 ++++ .../non-nested-packages/a/package.json | 1 + .../non-nested-packages/b/package-lock.json | 84 ++++++++++++ .../non-nested-packages/b/package.json | 1 + .../pnpm-monorepo/package-lock.json | 88 +++++++++++++ .../__fixtures__/pnpm-monorepo/package.json | 3 +- .../package-lock.json | 28 ++++ .../package.json | 1 + .../package-lock.json | 28 ++++ .../package.json | 1 + .../package-lock.json | 28 ++++ .../solo-package-trailing-slash/package.json | 1 + .../solo-package/package-lock.json | 28 ++++ .../pnpm-monorepo/solo-package/package.json | 1 + .../test/test-package/package-lock.json | 28 ++++ .../test/test-package/package.json | 1 + .../tests/test-package2/package-lock.json | 28 ++++ .../tests/test-package2/package.json | 1 + .../__fixtures__/yarn2.2/package-lock.json | 102 ++++++++++++++ .../npm/__fixtures__/yarn2.2/package.json | 3 +- .../npm/__fixtures__/yarn2.2/yarn.lock | 124 +++++++----------- .../npm/__fixtures__/yarn2/package-lock.json | 85 ++++++++++++ .../npm/__fixtures__/yarn2/package.json | 3 +- .../manager/npm/__fixtures__/yarn2/yarn.lock | 98 ++++++-------- .../manager-field/package-lock.json | 22 ++++ .../__fixtures__/manager-field/package.json | 5 +- .../__fixtures__/parent/package-lock.json | 22 ++++ .../__fixtures__/parent/package.json | 3 + .../package-lock.json | 45 ++++++- .../update-lockfile-massage-1/package.json | 3 +- lib/modules/manager/ocb/extract.ts | 2 +- lib/modules/manager/ocb/schema.ts | 1 + package.json | 1 + tools/eslint/package-lock.json | 19 +++ tools/eslint/package.json | 5 +- 48 files changed, 1064 insertions(+), 174 deletions(-) create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/yarn2.2/package-lock.json create mode 100644 lib/modules/manager/npm/__fixtures__/yarn2/package-lock.json create mode 100644 lib/modules/manager/npm/post-update/__fixtures__/manager-field/package-lock.json create mode 100644 lib/modules/manager/npm/post-update/__fixtures__/parent/package-lock.json create mode 100644 tools/eslint/package-lock.json diff --git a/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package-lock.json b/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package-lock.json index 334c638be5..54b18f29b2 100644 --- a/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package-lock.json +++ b/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package-lock.json @@ -7,7 +7,22 @@ "": { "name": "lockfile-parsing", "version": "1.0.0", - "license": "ISC" + "license": "ISC", + "dependencies": { + "lockfile-parsing": "file:" + } + }, + "node_modules/lockfile-parsing": { + "resolved": "", + "link": true + } + }, + "dependencies": { + "lockfile-parsing": { + "version": "file:", + "requires": { + "lockfile-parsing": "file:" + } } } } diff --git a/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package.json b/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package.json index 7f025571dc..7b1d50bbef 100644 --- a/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package.json +++ b/lib/modules/manager/npm/__fixtures__/lockfile-parsing/package.json @@ -7,5 +7,8 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", - "license": "ISC" + "license": "ISC", + "dependencies": { + "lockfile-parsing": "file:" + } } diff --git a/lib/modules/manager/npm/__fixtures__/npm7/package-lock.json b/lib/modules/manager/npm/__fixtures__/npm7/package-lock.json index 7047375338..b287a54085 100644 --- a/lib/modules/manager/npm/__fixtures__/npm7/package-lock.json +++ b/lib/modules/manager/npm/__fixtures__/npm7/package-lock.json @@ -5,10 +5,12 @@ "requires": true, "packages": { "": { + "name": "npm7", "version": "1.0.0", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "npm7": "file:" } }, "node_modules/ansi-styles": { @@ -64,6 +66,10 @@ "node": ">=4" } }, + "node_modules/npm7": { + "resolved": "", + "link": true + }, "node_modules/supports-color": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", @@ -118,6 +124,64 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, + "npm7": { + "version": "file:", + "requires": { + "chalk": "^2.4.1", + "npm7": "file:" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" + } + }, + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "requires": { + "has-flag": "3.0.0" + } + } + } + }, "supports-color": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", diff --git a/lib/modules/manager/npm/__fixtures__/npm7/package.json b/lib/modules/manager/npm/__fixtures__/npm7/package.json index 2ad4ac4f02..251b8dbb65 100644 --- a/lib/modules/manager/npm/__fixtures__/npm7/package.json +++ b/lib/modules/manager/npm/__fixtures__/npm7/package.json @@ -10,6 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "npm7": "file:" } } diff --git a/lib/modules/manager/npm/__fixtures__/npm9/package-lock.json b/lib/modules/manager/npm/__fixtures__/npm9/package-lock.json index d637c965ca..3b0c92b10d 100644 --- a/lib/modules/manager/npm/__fixtures__/npm9/package-lock.json +++ b/lib/modules/manager/npm/__fixtures__/npm9/package-lock.json @@ -9,7 +9,8 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "npm9": "file:" } }, "node_modules/ansi-styles": { @@ -65,6 +66,10 @@ "node": ">=4" } }, + "node_modules/npm9": { + "resolved": "", + "link": true + }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", diff --git a/lib/modules/manager/npm/__fixtures__/npm9/package.json b/lib/modules/manager/npm/__fixtures__/npm9/package.json index 54614b8a26..50dabf23bd 100644 --- a/lib/modules/manager/npm/__fixtures__/npm9/package.json +++ b/lib/modules/manager/npm/__fixtures__/npm9/package.json @@ -10,6 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "npm9": "file:" } } diff --git a/lib/modules/manager/npm/__fixtures__/plocktest1/package-lock.json b/lib/modules/manager/npm/__fixtures__/plocktest1/package-lock.json index a92861fada..19c145cbce 100644 --- a/lib/modules/manager/npm/__fixtures__/plocktest1/package-lock.json +++ b/lib/modules/manager/npm/__fixtures__/plocktest1/package-lock.json @@ -1,56 +1,84 @@ { "name": "plocktest1", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "ansi-styles": { + "packages": { + "": { + "name": "plocktest1", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "chalk": "^2.4.1", + "plocktest1": "file:" + } + }, + "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "1.9.1" + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "chalk": { + "node_modules/chalk": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "color-convert": { + "node_modules/color-convert": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", - "requires": { - "color-name": "1.1.3" + "dependencies": { + "color-name": "^1.1.1" } }, - "color-name": { + "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, - "escape-string-regexp": { + "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "engines": { + "node": ">=0.8.0" + } }, - "has-flag": { + "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } }, - "supports-color": { + "node_modules/plocktest1": { + "resolved": "", + "link": true + }, + "node_modules/supports-color": { "version": "5.4.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "requires": { - "has-flag": "3.0.0" + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } } } diff --git a/lib/modules/manager/npm/__fixtures__/plocktest1/package.json b/lib/modules/manager/npm/__fixtures__/plocktest1/package.json index 0598aa4e1c..84e81c5621 100644 --- a/lib/modules/manager/npm/__fixtures__/plocktest1/package.json +++ b/lib/modules/manager/npm/__fixtures__/plocktest1/package.json @@ -10,6 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "plocktest1": "file:" } } diff --git a/lib/modules/manager/npm/__fixtures__/plocktest1/yarn.lock b/lib/modules/manager/npm/__fixtures__/plocktest1/yarn.lock index f345998e02..75fa72d37f 100644 --- a/lib/modules/manager/npm/__fixtures__/plocktest1/yarn.lock +++ b/lib/modules/manager/npm/__fixtures__/plocktest1/yarn.lock @@ -4,13 +4,15 @@ ansi-styles@^3.2.1: version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: color-convert "^1.9.0" chalk@^2.4.1: version "2.4.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz" + integrity sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ== dependencies: ansi-styles "^3.2.1" escape-string-regexp "^1.0.5" @@ -18,24 +20,36 @@ chalk@^2.4.1: color-convert@^1.9.0: version "1.9.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz" + integrity sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ== dependencies: color-name "^1.1.1" color-name@^1.1.1: version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= escape-string-regexp@^1.0.5: version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= has-flag@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +"plocktest1@file:": + version "1.0.0" + resolved "file:" + dependencies: + chalk "^2.4.1" + plocktest1 "file:" supports-color@^5.3.0: version "5.4.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz" + integrity sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w== dependencies: has-flag "^3.0.0" diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package-lock.json new file mode 100644 index 0000000000..982167fe50 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/nested-group-a", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/nested-group-a", + "version": "1.0.0", + "dependencies": { + "@demo/nested-group-a": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/nested-group-a": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package.json index 279df4bbc3..e478ec7cdd 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/a/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/nested-group-a": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package-lock.json new file mode 100644 index 0000000000..a566171ff9 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package-lock.json @@ -0,0 +1,84 @@ +{ + "name": "@demo/nested-group-b", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/nested-group-b", + "version": "1.0.0", + "dependencies": { + "@demo/nested-group-b": "file:", + "chalk": "^2.4.1" + } + }, + "node_modules/@demo/nested-group-b": { + "resolved": "", + "link": true + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package.json index 1081c3c013..f2fe9b7277 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/nested-packages/group/b/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/nested-group-b": "file:", "chalk": "^2.4.1" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package-lock.json new file mode 100644 index 0000000000..5d2c4b535d --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/non-nested-a", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/non-nested-a", + "version": "1.0.0", + "dependencies": { + "@demo/non-nested-a": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/non-nested-a": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package.json index 101face8cb..01b1ba294e 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/a/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/non-nested-a": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package-lock.json new file mode 100644 index 0000000000..667dcc1455 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package-lock.json @@ -0,0 +1,84 @@ +{ + "name": "@demo/non-nested-b", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/non-nested-b", + "version": "1.0.0", + "dependencies": { + "@demo/non-nested-b": "file:", + "chalk": "^2.4.1" + } + }, + "node_modules/@demo/non-nested-b": { + "resolved": "", + "link": true + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package.json index cf42bf384b..62d2ab70de 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/non-nested-packages/b/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/non-nested-b": "file:", "chalk": "^2.4.1" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package-lock.json new file mode 100644 index 0000000000..f9209105e6 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package-lock.json @@ -0,0 +1,88 @@ +{ + "name": "demo", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "demo", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "chalk": "^2.4.1", + "demo": "file:" + }, + "engines": { + "pnpm": "6" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/demo": { + "resolved": "", + "link": true + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package.json index 9222d16cd1..d3e0a38d9d 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/package.json @@ -13,6 +13,7 @@ "author": "", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "demo": "file:" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package-lock.json new file mode 100644 index 0000000000..f9a4f986fa --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/solo-leading-dot-slash", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/solo-leading-dot-slash", + "version": "1.0.0", + "dependencies": { + "@demo/solo-leading-dot-slash": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/solo-leading-dot-slash": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package.json index 441d1efa65..670c28204a 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-dot-slash/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/solo-leading-dot-slash": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package-lock.json new file mode 100644 index 0000000000..dd315683bd --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/solo-leading-double-dot-slash", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/solo-leading-double-dot-slash", + "version": "1.0.0", + "dependencies": { + "@demo/solo-leading-double-dot-slash": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/solo-leading-double-dot-slash": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package.json index bb99c829ff..8f5dff3f88 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-leading-double-dot-slash/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/solo-leading-double-dot-slash": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package-lock.json new file mode 100644 index 0000000000..ef9cfe0846 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/solo-trailing-slash", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/solo-trailing-slash", + "version": "1.0.0", + "dependencies": { + "@demo/solo-trailing-slash": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/solo-trailing-slash": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package.json index 46cce36062..dcc9c371de 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package-trailing-slash/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/solo-trailing-slash": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package-lock.json new file mode 100644 index 0000000000..2599f7745e --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/solo", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/solo", + "version": "1.0.0", + "dependencies": { + "@demo/solo": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/solo": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package.json index 09326319de..b989c8c029 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/solo-package/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/solo": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package-lock.json new file mode 100644 index 0000000000..385f106122 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/test-package", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/test-package", + "version": "1.0.0", + "dependencies": { + "@demo/test-package": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/test-package": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package.json index 9e85715cf5..1715800971 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/test/test-package/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/test-package": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package-lock.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package-lock.json new file mode 100644 index 0000000000..77182b052e --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package-lock.json @@ -0,0 +1,28 @@ +{ + "name": "@demo/test-package2", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@demo/test-package2", + "version": "1.0.0", + "dependencies": { + "@demo/test-package2": "file:", + "dotenv": "^9.0.2" + } + }, + "node_modules/@demo/test-package2": { + "resolved": "", + "link": true + }, + "node_modules/dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package.json b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package.json index 9d394f90a4..db45fb7a82 100644 --- a/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package.json +++ b/lib/modules/manager/npm/__fixtures__/pnpm-monorepo/tests/test-package2/package.json @@ -7,6 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { + "@demo/test-package2": "file:", "dotenv": "^9.0.2" } } diff --git a/lib/modules/manager/npm/__fixtures__/yarn2.2/package-lock.json b/lib/modules/manager/npm/__fixtures__/yarn2.2/package-lock.json new file mode 100644 index 0000000000..8e9383c047 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/yarn2.2/package-lock.json @@ -0,0 +1,102 @@ +{ + "name": "yarn2.2", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "yarn2.2", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@babel/runtime": "^7.11.2", + "chalk": "^2.4.1", + "yarn2.2": "file:" + } + }, + "node_modules/@babel/runtime": { + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz", + "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/yarn2.2": { + "resolved": "", + "link": true + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/yarn2.2/package.json b/lib/modules/manager/npm/__fixtures__/yarn2.2/package.json index 989d15be3d..7c4791af96 100644 --- a/lib/modules/manager/npm/__fixtures__/yarn2.2/package.json +++ b/lib/modules/manager/npm/__fixtures__/yarn2.2/package.json @@ -11,6 +11,7 @@ "license": "ISC", "dependencies": { "@babel/runtime": "^7.11.2", - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "yarn2.2": "file:" } } diff --git a/lib/modules/manager/npm/__fixtures__/yarn2.2/yarn.lock b/lib/modules/manager/npm/__fixtures__/yarn2.2/yarn.lock index d3b8b4bc71..79edff6cd7 100644 --- a/lib/modules/manager/npm/__fixtures__/yarn2.2/yarn.lock +++ b/lib/modules/manager/npm/__fixtures__/yarn2.2/yarn.lock @@ -1,90 +1,68 @@ -# This file is generated by running "yarn install" inside your project. -# Manual changes might be lost - proceed with caution! +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 -__metadata: - version: 4 - cacheKey: 6 -"@babel/runtime@npm:^7.11.2": - version: 7.11.2 - resolution: "@babel/runtime@npm:7.11.2" +"@babel/runtime@^7.11.2": + version "7.25.7" + resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz" + integrity sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w== dependencies: - regenerator-runtime: ^0.13.4 - checksum: 2f127ad60a0f0568faa0044e5b48329d8166c7fd3a0a3ce774070010a1c441ebf5570f526dd6bb26e214fb1a01bb987ab6a4c3f60a00f04d02448939f4c61e1e - languageName: node - linkType: hard + regenerator-runtime "^0.14.0" -"ansi-styles@npm:^3.2.1": - version: 3.2.1 - resolution: "ansi-styles@npm:3.2.1" +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: - color-convert: ^1.9.0 - checksum: 456e1c23d9277512a47718da75e7fbb0a5ee215ef893c2f76d6b3efe8fceabc861121b80b0362146f5f995d21a1633f05a19bbf6283ae66ac11dc3b9c0bed779 - languageName: node - linkType: hard + color-convert "^1.9.0" -"chalk@npm:^2.4.1": - version: 2.4.2 - resolution: "chalk@npm:2.4.2" +chalk@^2.4.1: + version "2.4.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: - ansi-styles: ^3.2.1 - escape-string-regexp: ^1.0.5 - supports-color: ^5.3.0 - checksum: 22c7b7b5bc761c882bb6516454a1a671923f1c53ff972860065aa0b28a195f230163c1d46ee88bcc7a03e5539177d896457d8bc727de7f244c6e87032743038e - languageName: node - linkType: hard + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" -"color-convert@npm:^1.9.0": - version: 1.9.3 - resolution: "color-convert@npm:1.9.3" +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== dependencies: - color-name: 1.1.3 - checksum: 5f244daa3d1fe1f216d48878c550465067d15268688308554e613b7640a068f96588096d51f0b98b68f15d6ff6bb8ad24e172582ac8c0ad43fa4d3da60fd1b79 - languageName: node - linkType: hard + color-name "1.1.3" -"color-name@npm:1.1.3": - version: 1.1.3 - resolution: "color-name@npm:1.1.3" - checksum: d8b91bb90aefc05b6ff568cf8889566dcc6269824df6f3c9b8ca842b18d7f4d089c07dc166808d33f22092d4a79167aa56a96a5ff0d21efab548bf44614db43b - languageName: node - linkType: hard +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== -"escape-string-regexp@npm:^1.0.5": - version: 1.0.5 - resolution: "escape-string-regexp@npm:1.0.5" - checksum: f9484b8b4c8827d816e0fd905c25ed4b561376a9c220e1430403ea84619bf680c76a883a48cff8b8e091daf55d6a497e37479f9787b9f15f3c421b6054289744 - languageName: node - linkType: hard +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== -"has-flag@npm:^3.0.0": - version: 3.0.0 - resolution: "has-flag@npm:3.0.0" - checksum: 63aade480d27aeedb3b5b63a2e069d47d0006bf182338d662e7941cdc024e68a28418e0efa8dc5df30db9c4ee2407f39e6ea3f16cfbc6b83848b450826a28aa0 - languageName: node - linkType: hard +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== -"regenerator-runtime@npm:^0.13.4": - version: 0.13.7 - resolution: "regenerator-runtime@npm:0.13.7" - checksum: 6ef567c662088b1b292214920cbd72443059298d477f72e1a37e0a113bafbfac9057cbfe35ae617284effc4b423493326a78561bbff7b04162c7949bdb9624e8 - languageName: node - linkType: hard +regenerator-runtime@^0.14.0: + version "0.14.1" + resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz" + integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== -"supports-color@npm:^5.3.0": - version: 5.5.0 - resolution: "supports-color@npm:5.5.0" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: - has-flag: ^3.0.0 - checksum: edacee6425498440744c418be94b0660181aad2a1828bcf2be85c42bd385da2fd8b2b358d9b62b0c5b03ff5cd3e992458d7b8f879d9fb42f2201fe05a4848a29 - languageName: node - linkType: hard + has-flag "^3.0.0" -"yarn2@workspace:.": - version: 0.0.0-use.local - resolution: "yarn2@workspace:." +"yarn2.2@file:": + version "1.0.0" + resolved "file:" dependencies: - "@babel/runtime": ^7.11.2 - chalk: ^2.4.1 - languageName: unknown - linkType: soft + "@babel/runtime" "^7.11.2" + chalk "^2.4.1" + yarn2.2 "file:" diff --git a/lib/modules/manager/npm/__fixtures__/yarn2/package-lock.json b/lib/modules/manager/npm/__fixtures__/yarn2/package-lock.json new file mode 100644 index 0000000000..3c7c9b34c0 --- /dev/null +++ b/lib/modules/manager/npm/__fixtures__/yarn2/package-lock.json @@ -0,0 +1,85 @@ +{ + "name": "yarn2", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "yarn2", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "chalk": "^2.4.1", + "yarn2": "file:" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/yarn2": { + "resolved": "", + "link": true + } + } +} diff --git a/lib/modules/manager/npm/__fixtures__/yarn2/package.json b/lib/modules/manager/npm/__fixtures__/yarn2/package.json index fe06a5d1e8..0bca88cedb 100644 --- a/lib/modules/manager/npm/__fixtures__/yarn2/package.json +++ b/lib/modules/manager/npm/__fixtures__/yarn2/package.json @@ -10,6 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "chalk": "^2.4.1" + "chalk": "^2.4.1", + "yarn2": "file:" } } diff --git a/lib/modules/manager/npm/__fixtures__/yarn2/yarn.lock b/lib/modules/manager/npm/__fixtures__/yarn2/yarn.lock index 0ca88dba29..755a937ee4 100644 --- a/lib/modules/manager/npm/__fixtures__/yarn2/yarn.lock +++ b/lib/modules/manager/npm/__fixtures__/yarn2/yarn.lock @@ -1,69 +1,55 @@ -__metadata: - version: 4 +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 -"ansi-styles@npm:^3.2.1": - version: 3.2.1 - resolution: "ansi-styles@npm:3.2.1" + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: - color-convert: ^1.9.0 - checksum: 2/456e1c23d9277512a47718da75e7fbb0a5ee215ef893c2f76d6b3efe8fceabc861121b80b0362146f5f995d21a1633f05a19bbf6283ae66ac11dc3b9c0bed779 - languageName: node - linkType: hard + color-convert "^1.9.0" -"chalk@npm:^2.4.1": - version: 2.4.2 - resolution: "chalk@npm:2.4.2" +chalk@^2.4.1: + version "2.4.2" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: - ansi-styles: ^3.2.1 - escape-string-regexp: ^1.0.5 - supports-color: ^5.3.0 - checksum: 2/22c7b7b5bc761c882bb6516454a1a671923f1c53ff972860065aa0b28a195f230163c1d46ee88bcc7a03e5539177d896457d8bc727de7f244c6e87032743038e - languageName: node - linkType: hard + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" -"color-convert@npm:^1.9.0": - version: 1.9.3 - resolution: "color-convert@npm:1.9.3" +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== dependencies: - color-name: 1.1.3 - checksum: 2/5f244daa3d1fe1f216d48878c550465067d15268688308554e613b7640a068f96588096d51f0b98b68f15d6ff6bb8ad24e172582ac8c0ad43fa4d3da60fd1b79 - languageName: node - linkType: hard + color-name "1.1.3" -"color-name@npm:1.1.3": - version: 1.1.3 - resolution: "color-name@npm:1.1.3" - checksum: 2/d8b91bb90aefc05b6ff568cf8889566dcc6269824df6f3c9b8ca842b18d7f4d089c07dc166808d33f22092d4a79167aa56a96a5ff0d21efab548bf44614db43b - languageName: node - linkType: hard +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== -"escape-string-regexp@npm:^1.0.5": - version: 1.0.5 - resolution: "escape-string-regexp@npm:1.0.5" - checksum: 2/f9484b8b4c8827d816e0fd905c25ed4b561376a9c220e1430403ea84619bf680c76a883a48cff8b8e091daf55d6a497e37479f9787b9f15f3c421b6054289744 - languageName: node - linkType: hard +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== -"has-flag@npm:^3.0.0": - version: 3.0.0 - resolution: "has-flag@npm:3.0.0" - checksum: 2/63aade480d27aeedb3b5b63a2e069d47d0006bf182338d662e7941cdc024e68a28418e0efa8dc5df30db9c4ee2407f39e6ea3f16cfbc6b83848b450826a28aa0 - languageName: node - linkType: hard +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== -"supports-color@npm:^5.3.0": - version: 5.5.0 - resolution: "supports-color@npm:5.5.0" +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: - has-flag: ^3.0.0 - checksum: 2/edacee6425498440744c418be94b0660181aad2a1828bcf2be85c42bd385da2fd8b2b358d9b62b0c5b03ff5cd3e992458d7b8f879d9fb42f2201fe05a4848a29 - languageName: node - linkType: hard + has-flag "^3.0.0" -"yarn2@workspace:.": - version: 0.0.0-use.local - resolution: "yarn2@workspace:." +"yarn2@file:": + version "1.0.0" + resolved "file:" dependencies: - chalk: ^2.4.1 - languageName: unknown - linkType: soft + chalk "^2.4.1" + yarn2 "file:" diff --git a/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package-lock.json b/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package-lock.json new file mode 100644 index 0000000000..f21be60a3a --- /dev/null +++ b/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package-lock.json @@ -0,0 +1,22 @@ +{ + "name": "parent", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "parent", + "version": "1.0.0", + "dependencies": { + "parent": "file:" + }, + "engines": { + "pnpm": "=6.15.0" + } + }, + "node_modules/parent": { + "resolved": "", + "link": true + } + } +} diff --git a/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package.json b/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package.json index c4623f972e..beec5001db 100644 --- a/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package.json +++ b/lib/modules/manager/npm/post-update/__fixtures__/manager-field/package.json @@ -5,5 +5,8 @@ "pnpm": "=6.15.0" }, "engine-strict": true, - "packageManager": "pnpm@6.15.0" + "packageManager": "pnpm@6.15.0", + "dependencies": { + "parent": "file:" + } } diff --git a/lib/modules/manager/npm/post-update/__fixtures__/parent/package-lock.json b/lib/modules/manager/npm/post-update/__fixtures__/parent/package-lock.json new file mode 100644 index 0000000000..9d54b37415 --- /dev/null +++ b/lib/modules/manager/npm/post-update/__fixtures__/parent/package-lock.json @@ -0,0 +1,22 @@ +{ + "name": "parent", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "parent", + "version": "1.0.0", + "dependencies": { + "parent": "file:" + }, + "engines": { + "pnpm": "=6.16.0" + } + }, + "node_modules/parent": { + "resolved": "", + "link": true + } + } +} diff --git a/lib/modules/manager/npm/post-update/__fixtures__/parent/package.json b/lib/modules/manager/npm/post-update/__fixtures__/parent/package.json index f990d3e58f..f9d3cf18cf 100644 --- a/lib/modules/manager/npm/post-update/__fixtures__/parent/package.json +++ b/lib/modules/manager/npm/post-update/__fixtures__/parent/package.json @@ -3,5 +3,8 @@ "version": "1.0.0", "engines": { "pnpm": "=6.16.0" + }, + "dependencies": { + "parent": "file:" } } diff --git a/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package-lock.json b/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package-lock.json index 4ea04f54e6..cb1ed81492 100644 --- a/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package-lock.json +++ b/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package-lock.json @@ -8,7 +8,8 @@ "name": "update-lockfile-massage-1", "version": "1.0.0", "dependencies": { - "postcss": "^8.4.8" + "postcss": "^8.0.0", + "update-lockfile-massage-1": "file:" } }, "node_modules/nanoid": { @@ -51,6 +52,10 @@ "engines": { "node": ">=0.10.0" } + }, + "node_modules/update-lockfile-massage-1": { + "resolved": "", + "link": true } }, "dependencies": { @@ -65,8 +70,8 @@ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" }, "postcss": { - "version": "8.4.8", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.8.tgz", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", "integrity": "sha512-2tXEqGxrjvAO6U+CJzDL2Fk2kPHTv1jQsYkSoMeOis2SsYaXRO2COxTdQp99cYvif9JTXaAk9lYGc3VhJt7JPQ==", "requires": { "nanoid": "^3.3.1", @@ -78,6 +83,40 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + }, + "update-lockfile-massage-1": { + "version": "file:", + "requires": { + "postcss": "^8.0.0", + "update-lockfile-massage-1": "file:" + }, + "dependencies": { + "nanoid": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", + "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==" + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + }, + "postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-2tXEqGxrjvAO6U+CJzDL2Fk2kPHTv1jQsYkSoMeOis2SsYaXRO2COxTdQp99cYvif9JTXaAk9lYGc3VhJt7JPQ==", + "requires": { + "nanoid": "^3.3.1", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" + } + } } } } diff --git a/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package.json b/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package.json index c4982dc8b8..0ab1d08472 100644 --- a/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package.json +++ b/lib/modules/manager/npm/post-update/__fixtures__/update-lockfile-massage-1/package.json @@ -2,6 +2,7 @@ "name": "update-lockfile-massage-1", "version": "1.0.0", "dependencies": { - "postcss": "^8.0.0" + "postcss": "^8.0.0", + "update-lockfile-massage-1": "file:" } } diff --git a/lib/modules/manager/ocb/extract.ts b/lib/modules/manager/ocb/extract.ts index 0914bb70b7..49c36da2e3 100644 --- a/lib/modules/manager/ocb/extract.ts +++ b/lib/modules/manager/ocb/extract.ts @@ -52,7 +52,7 @@ export function extractPackageFile( deps.push(...processModule(definition.extensions, 'extensions')); deps.push(...processModule(definition.processors, 'processors')); deps.push(...processModule(definition.receivers, 'receivers')); - + deps.push(...processModule(definition.providers,'providers')); return { packageFileVersion: definition.dist.version, deps, diff --git a/lib/modules/manager/ocb/schema.ts b/lib/modules/manager/ocb/schema.ts index 548c0cf406..f7db8d5660 100644 --- a/lib/modules/manager/ocb/schema.ts +++ b/lib/modules/manager/ocb/schema.ts @@ -18,5 +18,6 @@ export const OCBConfigSchema = z.object({ receivers: ModuleSchema, processors: ModuleSchema, connectors: ModuleSchema, + providers: ModuleSchema, }); export type OCBConfig = z.infer; diff --git a/package.json b/package.json index 7ebdbaaac7..e466dd9c96 100644 --- a/package.json +++ b/package.json @@ -229,6 +229,7 @@ "redis": "4.7.0", "remark": "13.0.0", "remark-github": "10.1.0", + "renovate": "file:", "safe-stable-stringify": "2.5.0", "semver": "7.6.3", "semver-stable": "3.0.0", diff --git a/tools/eslint/package-lock.json b/tools/eslint/package-lock.json new file mode 100644 index 0000000000..ec95f23dff --- /dev/null +++ b/tools/eslint/package-lock.json @@ -0,0 +1,19 @@ +{ + "name": "@renovatebot/eslint-plugin", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@renovatebot/eslint-plugin", + "version": "0.0.0", + "dependencies": { + "@renovatebot/eslint-plugin": "file:" + } + }, + "node_modules/@renovatebot/eslint-plugin": { + "resolved": "", + "link": true + } + } +} diff --git a/tools/eslint/package.json b/tools/eslint/package.json index 901f171b7b..938da25d8d 100644 --- a/tools/eslint/package.json +++ b/tools/eslint/package.json @@ -1,5 +1,8 @@ { "name": "@renovatebot/eslint-plugin", "version": "0.0.0", - "main": "index.js" + "main": "index.js", + "dependencies": { + "@renovatebot/eslint-plugin": "file:" + } }