Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ad36e7

Browse files
authored
fix(gatsby-plugin-benchmark-reporting): Read gatsby-cli version from n_m (gatsbyjs#21742)
* fix(gatsby-plugin-benchmark-reporting): Read gatsby-cli version from n_m * Str the thing
1 parent 96b7d54 commit 7ad36e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-benchmark-reporting/src/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class BenchMeta {
8181

8282
// This assumes the benchmark is started explicitly from `node_modules/.bin/gatsby`, and not a global install
8383
// (This is what `gatsby --version` does too, ultimately)
84-
const gatsbyCliVersion = require(`gatsby-cli/package.json`).version
84+
const gatsbyCliVersion = execToStr(`node_modules/.bin/gatsby --version`)
8585

8686
const gatsbyVersion = require(`gatsby/package.json`).version
8787

0 commit comments

Comments
 (0)