aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/index/node-debug2-adapter/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mason-registry/index/node-debug2-adapter/init.lua')
-rw-r--r--lua/mason-registry/index/node-debug2-adapter/init.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/lua/mason-registry/index/node-debug2-adapter/init.lua b/lua/mason-registry/index/node-debug2-adapter/init.lua
deleted file mode 100644
index de4d0aba..00000000
--- a/lua/mason-registry/index/node-debug2-adapter/init.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-local Optional = require "mason-core.optional"
-local Pkg = require "mason-core.package"
-local _ = require "mason-core.functional"
-local git = require "mason-core.managers.git"
-local github = require "mason-core.managers.github"
-local path = require "mason-core.path"
-local platform = require "mason-core.platform"
-
-return Pkg.new {
- name = "node-debug2-adapter",
- desc = [[A debug adapter that supports debugging Node via the Chrome Debugging Protocol. No longer maintained.]],
- homepage = "https://github.com/microsoft/vscode-node-debug2",
- languages = { Pkg.Lang.JavaScript, Pkg.Lang.TypeScript },
- categories = { Pkg.Cat.DAP },
- ---@async
- ---@param ctx InstallContext
- install = function(ctx)
- local source = github.tag { repo = "microsoft/vscode-node-debug2" }
- source.with_receipt()
- git.clone { "https://github.com/microsoft/vscode-node-debug2", version = Optional.of(source.tag) }
- ctx.spawn.npm { "install" }
- local node_env = platform
- .get_node_version()
- :map(_.cond {
- { _.prop_satisfies(_.gte(18), "major"), _.always { NODE_OPTIONS = "--no-experimental-fetch" } },
- { _.T, _.always {} },
- })
- :get_or_else {}
- ctx.spawn.npm { "run", "build", env = node_env }
- ctx.spawn.npm { "install", "--production" }
- ctx:link_bin(
- "node-debug2-adapter",
- ctx:write_node_exec_wrapper("node-debug2-adapter", path.concat { "out", "src", "nodeDebug.js" })
- )
- end,
-}