(packageVersion = null)
| 24 | } |
| 25 | |
| 26 | function getVersionString(packageVersion = null) { |
| 27 | if (packageVersion == null) { |
| 28 | packageVersion = JSON.parse( |
| 29 | readFileSync( |
| 30 | resolve(__dirname, '..', 'react-devtools-core', './package.json'), |
| 31 | ), |
| 32 | ).version; |
| 33 | } |
| 34 | |
| 35 | const commit = getGitCommit(); |
| 36 | |
| 37 | return `${packageVersion}-${commit}`; |
| 38 | } |
| 39 | |
| 40 | module.exports = { |
| 41 | GITHUB_URL, |
no test coverage detected