Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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/get-bin-from-manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const getBinFromManifest = (mani) => {
// if we have a bin matching (unscoped portion of) packagename, use that
// otherwise if there's 1 bin or all bin value is the same (alias), use
// that, otherwise fail
// that; otherwise, fail
const bin = mani.bin || {}
if (new Set(Object.values(bin)).size === 1) {
return Object.keys(bin)[0]
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/test/get-bin-from-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ t.test('extract scope from manifest name with multiple bins', t => {
t.end()
})

t.test('can not figure out what executable to run', t => {
t.test('cannot figure out what executable to run', t => {
t.throws(
() => getBinFromManifest({
name: 'lorem',
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/test/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ t.test('bin in local pkg', async t => {
await chmod('node_modules/pkg-with-conflicting-bin/index.js')

// Note that we have to resetSeenLinks after each exec since otherwise
// our non-existent file will fail when it gets attempted to get chmod'ed
// our nonexistent file will fail when it gets attempted to get chmod'ed
// in a real world situation these would happen during different
// processes where these is no shared cache
const exec = async (...args) => {
Expand Down