Merge pull request #26 from JMR-dev/feat-add-mdts
adding mdts
This commit was merged in pull request #26.
This commit is contained in:
+2
-2
@@ -241,9 +241,9 @@ func TestNpmInstalledNotFound(t *testing.T) {
|
|||||||
func TestIsCustomPkgInstalledNpmNames(t *testing.T) {
|
func TestIsCustomPkgInstalledNpmNames(t *testing.T) {
|
||||||
defer resetMocks()
|
defer resetMocks()
|
||||||
hasCmd = func(name string) bool {
|
hasCmd = func(name string) bool {
|
||||||
return name == "claude" || name == "codex" || name == "copilot" || name == "playwright"
|
return name == "claude" || name == "codex" || name == "copilot" || name == "playwright" || name == "mdts"
|
||||||
}
|
}
|
||||||
for _, name := range []string{"claude", "codex", "copilot", "playwright"} {
|
for _, name := range []string{"claude", "codex", "copilot", "playwright", "mdts"} {
|
||||||
ok, _ := isCustomPkgInstalled(&CustomPackage{Name: name})
|
ok, _ := isCustomPkgInstalled(&CustomPackage{Name: name})
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Errorf("expected %s detected as installed", name)
|
t.Errorf("expected %s detected as installed", name)
|
||||||
|
|||||||
@@ -132,6 +132,9 @@ func isCustomPkgInstalled(pkg *CustomPackage) (bool, string) {
|
|||||||
if name == "playwright" {
|
if name == "playwright" {
|
||||||
return npmInstalled("playwright")
|
return npmInstalled("playwright")
|
||||||
}
|
}
|
||||||
|
if name == "mdts" {
|
||||||
|
return npmInstalled("mdts")
|
||||||
|
}
|
||||||
raw := pkg.InstallPath
|
raw := pkg.InstallPath
|
||||||
if raw == "" {
|
if raw == "" {
|
||||||
raw = defaultInstallPath(pkg)
|
raw = defaultInstallPath(pkg)
|
||||||
@@ -574,6 +577,7 @@ func nodeDependentPkgs() map[string]bool {
|
|||||||
"codex": true,
|
"codex": true,
|
||||||
"copilot": true,
|
"copilot": true,
|
||||||
"playwright": true,
|
"playwright": true,
|
||||||
|
"mdts": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -697,6 +701,7 @@ func installNpmToolsBatch(pkgs []*CustomPackage) {
|
|||||||
"codex": "@openai/codex",
|
"codex": "@openai/codex",
|
||||||
"copilot": "@github/copilot",
|
"copilot": "@github/copilot",
|
||||||
"playwright": "playwright",
|
"playwright": "playwright",
|
||||||
|
"mdts": "mdts",
|
||||||
}
|
}
|
||||||
|
|
||||||
var npmPkgs []string
|
var npmPkgs []string
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ func customPackages() []CustomPackage {
|
|||||||
{Name: "codex"},
|
{Name: "codex"},
|
||||||
{Name: "copilot"},
|
{Name: "copilot"},
|
||||||
{Name: "playwright"},
|
{Name: "playwright"},
|
||||||
|
{Name: "mdts"},
|
||||||
{Name: "gh-repo-bootstrap"},
|
{Name: "gh-repo-bootstrap"},
|
||||||
{
|
{
|
||||||
Name: "rustup",
|
Name: "rustup",
|
||||||
|
|||||||
Reference in New Issue
Block a user