Skip to content

Commit

Permalink
Merge 407c30d into 69ccf8c
Browse files Browse the repository at this point in the history
  • Loading branch information
kishaningithub committed Oct 25, 2023
2 parents 69ccf8c + 407c30d commit bca7f57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/devenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default async function(dir: Path) {
case ".python-version":
await python_version(path)
break
case ".terraform-version":
await terraform_version(path)
break
case "package.json":
await package_json(path)
break
Expand Down Expand Up @@ -158,6 +161,11 @@ export default async function(dir: Path) {
}
}

async function terraform_version(path: Path) {
const terraform_version = (await path.read()).trim()
pkgs.push(utils.pkg.parse(terraform_version))
}

async function package_json(path: Path) {
const json = JSON.parse(await path.read());
let node = json?.pkgx;
Expand Down

0 comments on commit bca7f57

Please sign in to comment.