Pārlūkot izejas kodu

fix: don't compile build dir and fix patch

Baptiste Augrain 2 gadi atpakaļ
vecāks
revīzija
ceaf9ce37b
2 mainītis faili ar 10 papildinājumiem un 4 dzēšanām
  1. 0 3
      build.sh
  2. 10 1
      patches/fix-mangle-windows.patch

+ 0 - 3
build.sh

@@ -18,9 +18,6 @@ if [[ "${SHOULD_BUILD}" == "yes" ]]; then
 
   cd vscode || { echo "'vscode' dir not found"; exit 1; }
 
-  # compile the `build` directory
-  yarn --cwd build compile
-
   yarn monaco-compile-check
   yarn valid-layers-check
 

+ 10 - 1
patches/fix-mangle-windows.patch

@@ -1,5 +1,14 @@
+diff --git a/build/lib/compilation.js b/build/lib/compilation.js
+index f26b7ac..15d930c 100644
+--- a/build/lib/compilation.js
++++ b/build/lib/compilation.js
+@@ -109,3 +109,3 @@ function compileTask(src, out, build) {
+             mangleStream = es.through(function write(data) {
+-                const newContents = newContentsByFileName.get(data.path);
++                const newContents = newContentsByFileName.get(data.path.replace(/\\/g, '/'));
+                 if (newContents !== undefined) {
 diff --git a/build/lib/compilation.ts b/build/lib/compilation.ts
-index 2cc04d2c977..9029c6231ed 100644
+index 2cc04d2..9029c62 100644
 --- a/build/lib/compilation.ts
 +++ b/build/lib/compilation.ts
 @@ -128,3 +128,3 @@ export function compileTask(src: string, out: string, build: boolean): () => Nod