Skip to content

Commit

Permalink
chore(gatsby-core-utils): get-gatsby-version to TS (#22052)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkov authored Mar 9, 2020
1 parent 3ae6129 commit 35a4e50
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "path"

module.exports = () => {
const getGatsbyVersion = (): string => {
try {
return require(path.join(
process.cwd(),
Expand All @@ -12,3 +12,5 @@ module.exports = () => {
return ``
}
}

export default getGatsbyVersion

0 comments on commit 35a4e50

Please sign in to comment.