Hey, its been a while since the build script was written. and everytime there is a update in vscode js debug there are lot of issues updating with neovim.
I am using Lazy, this is what i have been using
{
"mxsdev/nvim-dap-vscode-js",
dependencies = {
"mfussenegger/nvim-dap",
{
"microsoft/vscode-js-debug",
lazy = true,
build = "npm install --legacy-peer-deps --ignore-scripts --omit=dev --no-save && npm install gulp --no-save && npx gulp vsDebugServerBundle && rm -r out/dist && mv dist out",
},
},
},
old build was
npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist out
there are certain problems with this
- Since the team in microsoft added playwright as dev dep and as a postinstall it tries to install playwright,
and from this issue and from npm suggestion
i added --ignore-scripts --omit=dev.
- After the npm install there is a change in the lock file idk if that's only me, and if you keep it like that rest of the
build script will work, but next time when lazy tries to update it throws an git error not being able pull the latest.
so i added --no-save at the end.
- since i ommited dev deps with
--omit=dev and you need gulp in the next command, installing only gulp next.
- deleting out/dist before moving because this error
mv: cannot overwrite 'out/dist': Directory not empty
which it throws updating it next time.
Hey, its been a while since the build script was written. and everytime there is a update in vscode js debug there are lot of issues updating with neovim.
I am using Lazy, this is what i have been using
{ "mxsdev/nvim-dap-vscode-js", dependencies = { "mfussenegger/nvim-dap", { "microsoft/vscode-js-debug", lazy = true, build = "npm install --legacy-peer-deps --ignore-scripts --omit=dev --no-save && npm install gulp --no-save && npx gulp vsDebugServerBundle && rm -r out/dist && mv dist out", }, }, },old build was
npm install --legacy-peer-deps && npx gulp vsDebugServerBundle && mv dist outthere are certain problems with this
and from this issue and from npm suggestion
i added
--ignore-scripts --omit=dev.build script will work, but next time when lazy tries to update it throws an git error not being able pull the latest.
so i added
--no-saveat the end.--omit=devand you need gulp in the next command, installing only gulp next.mv: cannot overwrite 'out/dist': Directory not emptywhich it throws updating it next time.