feat: use language config files

resolves #165
This commit is contained in:
Jan De Dobbeleer 2020-11-17 18:59:08 +01:00 committed by Jan De Dobbeleer
parent 8ed1c90c28
commit 1a5f4819e1
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ func (g *golang) init(props *properties, env environmentInfo) {
props: props,
commands: []string{"go"},
versionParam: "version",
extensions: []string{"*.go"},
extensions: []string{"*.go", "go.mod"},
versionRegex: `go(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
}
}

View file

@ -14,7 +14,7 @@ func (n *node) init(props *properties, env environmentInfo) {
props: props,
commands: []string{"node"},
versionParam: "--version",
extensions: []string{"*.js", "*.ts"},
extensions: []string{"*.js", "*.ts", "package.json"},
versionRegex: `(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
}
}