synopkg
Version:
Consistent dependency versions in large JavaScript Monorepos
24 lines (20 loc) • 841 B
text/mdx
import { Code } from "astro:components";
Include dependencies whose name matches the given glob pattern.
To exclude, put a `!` at the start of your query.
<Code
code={`
# Exact match for "react"
synopkg ${props.command} --dependencies 'react'
# Substring match for "react"
synopkg ${props.command} --dependencies '**react**'
# All dependencies under the AWS SDK scope
synopkg ${props.command} --dependencies '@aws-sdk/**'
# Exact match for "react" or "webpack" (2 approaches)
synopkg ${props.command} --dependencies 'react' --dependencies 'webpack'
synopkg ${props.command} --dependencies '{react,webpack}'
# Substring match for "react" or "webpack" (2 approaches)
synopkg ${props.command} --dependencies '**react**' --dependencies '**webpack**'
synopkg ${props.command} --dependencies '**{react,webpack}**'
`.trim()}
lang="bash"
/>