Skip to content

Commit

Permalink
Ignore workspace dependencies (#1272).
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Feb 22, 2023
1 parent 507b21d commit deae6f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ const logLevels = {

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

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

0 comments on commit deae6f0

Please sign in to comment.