Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b7d54 commit 7ad36e7Copy full SHA for 7ad36e7
packages/gatsby-plugin-benchmark-reporting/src/gatsby-node.js
@@ -81,7 +81,7 @@ class BenchMeta {
81
82
// This assumes the benchmark is started explicitly from `node_modules/.bin/gatsby`, and not a global install
83
// (This is what `gatsby --version` does too, ultimately)
84
- const gatsbyCliVersion = require(`gatsby-cli/package.json`).version
+ const gatsbyCliVersion = execToStr(`node_modules/.bin/gatsby --version`)
85
86
const gatsbyVersion = require(`gatsby/package.json`).version
87
0 commit comments