fix: don't compile build dir and fix patch
This commit is contained in:
parent
57507e0abf
commit
ceaf9ce37b
2 changed files with 10 additions and 4 deletions
3
build.sh
3
build.sh
|
@ -18,9 +18,6 @@ if [[ "${SHOULD_BUILD}" == "yes" ]]; then
|
||||||
|
|
||||||
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
||||||
|
|
||||||
# compile the `build` directory
|
|
||||||
yarn --cwd build compile
|
|
||||||
|
|
||||||
yarn monaco-compile-check
|
yarn monaco-compile-check
|
||||||
yarn valid-layers-check
|
yarn valid-layers-check
|
||||||
|
|
||||||
|
|
|
@ -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
|
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
|
--- a/build/lib/compilation.ts
|
||||||
+++ b/build/lib/compilation.ts
|
+++ b/build/lib/compilation.ts
|
||||||
@@ -128,3 +128,3 @@ export function compileTask(src: string, out: string, build: boolean): () => Nod
|
@@ -128,3 +128,3 @@ export function compileTask(src: string, out: string, build: boolean): () => Nod
|
||||||
|
|
Loading…
Reference in a new issue