Skip to content
New issue

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

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

Already on GitHub? Sign in 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/lib/index.js
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)
jihunleekr marked this conversation as resolved.
Show resolved Hide resolved
.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
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