npm audit 只针对生产依赖?

npm audit only for production dependencies?

目前,当项目中 运行 npm audit 时,它会同时检查 dependenciesdevDependencies。我正在寻找一种只检查 dependencies 的方法。目前有办法吗?

在 npm 6.10.0 中发布了对 --production 标志的支持

https://github.com/npm/cli/pull/202

npm audit --production