Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(libnpmexec): fix bug not install latest pkg #4929

Merged
merged 2 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const exec = async (opts) => {
const add = manis
.filter(mani => !mani[_localManifest])
.filter(filterMissingPackagesFromInstallDir)
.map(mani => mani._from)
.map(mani => mani._id ? mani._id : mani._from)
.sort((a, b) => a.localeCompare(b, 'en'))

// no need to install if already present
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ t.test('no prompt if CI, multiple packages', async t => {
warn (title, msg) {
t.equal(title, 'exec', 'should warn exec title')
const expected = 'The following packages were not found and will be ' +
'installed: @ruyadorno/create-index, @ruyadorno/create-test'
'installed: @ruyadorno/create-index@1.0.0, @ruyadorno/create-test@1.0.0'
t.equal(msg, expected, 'should warn installing pkg')
},
},
Expand Down