From b8a6632a0f2d263199d5d480ca85477fe0f414ab Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 20 Feb 2023 22:19:39 +0100 Subject: feat: configurable registries (#1016) --- lua/mason-registry/js-debug-adapter/init.lua | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 lua/mason-registry/js-debug-adapter/init.lua (limited to 'lua/mason-registry/js-debug-adapter/init.lua') diff --git a/lua/mason-registry/js-debug-adapter/init.lua b/lua/mason-registry/js-debug-adapter/init.lua deleted file mode 100644 index aec75201..00000000 --- a/lua/mason-registry/js-debug-adapter/init.lua +++ /dev/null @@ -1,28 +0,0 @@ -local Pkg = require "mason-core.package" -local github = require "mason-core.managers.github" -local git = require "mason-core.managers.git" -local _ = require "mason-core.functional" -local path = require "mason-core.path" -local Optional = require "mason-core.optional" - -return Pkg.new { - name = "js-debug-adapter", - desc = [[The VS Code JavaScript debugger]], - homepage = "https://github.com/microsoft/vscode-js-debug", - 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-js-debug" } - source.with_receipt() - git.clone { "https://github.com/microsoft/vscode-js-debug", version = Optional.of(source.tag) } - ctx.spawn.npm { "install", "--ignore-scripts", "--legacy-peer-deps" } - ctx.spawn.npm { "run", "compile" } - ctx.spawn.npm { "install", "--production", "--ignore-scripts", "--legacy-peer-deps" } - ctx:link_bin( - "js-debug-adapter", - ctx:write_node_exec_wrapper("js-debug-adapter", path.concat { "out", "src", "vsDebugServer.js" }) - ) - end, -} -- cgit v1.2.3-70-g09d2