Commit 7c8c72b5 authored by John Slaughter's avatar John Slaughter Committed by Tristan Read
Browse files

fix(dev): support windows build when copying language server assets

parent 3f7c8dec
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -18,10 +18,15 @@ const prepareDistDirs = async env => {
const copyLanguageServerAssets = env => {
  const platformDirectory = env === 'desktop' ? 'node' : 'browser';
  const basePath = path.join(root, 'node_modules/@gitlab-org/gitlab-lsp/out');
  const platformAssets = glob.sync([
  const platformAssets = glob.sync(
    [
      path.join(basePath, platformDirectory, '**', 'main-bundle.*'),
      path.join(basePath, '**', '*.wasm'),
  ]);
    ],
    {
      windowsPathsNoEscape: true,
    },
  );

  return Promise.all(
    platformAssets.map(asset =>