Snyk for JavaScript
You can use Snyk to scan your JavaScript Projects.
Snyk supports both npm and Yarn. See Snyk for npm and Snyk for Yarn.
The following are the limitations and workarounds for Snyk support for JavaScript.
If your Lerna Project is set up using Yarn Workspaces, you can run snyk test
and snyk monitor
as follows:
For each example-package you can use
snyk monitor --file=packages/example-package/package.json
Alternatively, you can specify a script to automate scanning nested package.json
files:
ls packages | xargs -I PKG_NAME snyk monitor --file=packages/PKG_NAME/package.json
Last updated
Was this helpful?