diff options
author | Gar <gar+gh@danger.computer> | 2021-08-11 20:35:10 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-08-11 20:35:10 +0300 |
commit | 61782fa858c278455ce144f975c6b0e3ea2d9944 (patch) | |
tree | 23d531ce999c300c98d06627f923973ace391b88 /node_modules | |
parent | a1bdbea974ebfc6694b4c8ad5da86215c2924dde (diff) |
@npmcli/map-workspaces@1.0.4
* fix: better error message for duplicate workspace names
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/@npmcli/map-workspaces/index.js | 7 | ||||
-rw-r--r-- | node_modules/@npmcli/map-workspaces/package.json | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/node_modules/@npmcli/map-workspaces/index.js b/node_modules/@npmcli/map-workspaces/index.js index b06662154..7587db717 100644 --- a/node_modules/@npmcli/map-workspaces/index.js +++ b/node_modules/@npmcli/map-workspaces/index.js @@ -129,7 +129,12 @@ async function mapWorkspaces (opts = {}) { if (seen.has(name) && seen.get(name) !== packagePathname) { throw getError({ Type: Error, - message: 'must not have multiple workspaces with the same name', + message: [ + 'must not have multiple workspaces with the same name', + `package '${name}' has conflicts in the following paths:`, + ' ' + seen.get(name), + ' ' + packagePathname + ].join('\n'), code: 'EDUPLICATEWORKSPACE' }) } diff --git a/node_modules/@npmcli/map-workspaces/package.json b/node_modules/@npmcli/map-workspaces/package.json index 2445c12f9..17cc4197e 100644 --- a/node_modules/@npmcli/map-workspaces/package.json +++ b/node_modules/@npmcli/map-workspaces/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/map-workspaces", - "version": "1.0.3", + "version": "1.0.4", "files": [ "index.js" ], |