Skip to content

Commit deae6f0

Browse files
committed
Ignore workspace dependencies (#1272).
1 parent 507b21d commit deae6f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/logging.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ const logLevels = {
3232

3333
/** Returns true if the dependency spec is not fetchable from the registry and is ignored. */
3434
const isFetchable = (spec: VersionSpec) =>
35-
// local file protocol
3635
!spec.startsWith('file:') &&
37-
// link protocol
3836
!spec.startsWith('link:') &&
37+
!spec.startsWith('workspace:') &&
3938
// short github urls that are ignored, e.g. raineorshine/foo
4039
!/^[^/:@]+\/\w+/.test(spec)
4140

@@ -306,7 +305,7 @@ export async function printUpgrades(
306305
) {
307306
print(
308307
options,
309-
`No package versions were returned. This is likely a problem with your installed ${
308+
`No package versions were returned. This may be a problem with your installed ${
310309
options.packageManager
311310
}, the npm registry, or your Internet connection. Make sure ${chalk.cyan(
312311
'npx pacote packument ncu-test-v2',

0 commit comments

Comments
 (0)