diff options
| -rw-r--r-- | lua/mason-registry/firefox-debug-adapter/init.lua | 1 | ||||
| -rw-r--r-- | lua/mason-registry/firefox-debug-adapter/patches.lua | 32 |
2 files changed, 0 insertions, 33 deletions
diff --git a/lua/mason-registry/firefox-debug-adapter/init.lua b/lua/mason-registry/firefox-debug-adapter/init.lua index 13dcf7f7..8606f1bf 100644 --- a/lua/mason-registry/firefox-debug-adapter/init.lua +++ b/lua/mason-registry/firefox-debug-adapter/init.lua @@ -17,7 +17,6 @@ return Pkg.new { local source = github.tag { repo = "firefox-devtools/vscode-firefox-debug" } source.with_receipt() git.clone { "https://github.com/firefox-devtools/vscode-firefox-debug", version = Optional.of(source.tag) } - ctx:apply_patches(require "mason-registry.firefox-debug-adapter.patches") ctx.spawn.npm { "install" } ctx.spawn.npm { "run", "build" } ctx.spawn.npm { "install", "--production" } diff --git a/lua/mason-registry/firefox-debug-adapter/patches.lua b/lua/mason-registry/firefox-debug-adapter/patches.lua deleted file mode 100644 index 09896fdf..00000000 --- a/lua/mason-registry/firefox-debug-adapter/patches.lua +++ /dev/null @@ -1,32 +0,0 @@ -local fix_macos_build = [=====[ ---- a/webpack.config.js -+++ b/webpack.config.js -@@ -1,6 +1,14 @@ - const path = require('path'); - const CopyPlugin = require('copy-webpack-plugin'); - -+const externals = { -+ vscode: 'commonjs vscode', -+}; -+ -+if (process.platform === "darwin") { -+ externals["fsevents"] = 'commonjs fsevents'; -+} -+ - module.exports = { - context: path.resolve(__dirname, 'src'), - entry: { -@@ -19,9 +27,7 @@ module.exports = { - } - ] - }, -- externals: { -- vscode: 'commonjs vscode' -- }, -+ externals, - output: { - path: path.resolve(__dirname, 'dist'), - filename: '[name].bundle.js', -]=====] - -return { fix_macos_build } |
