[gnome-builder] build-aux: ensure offline for yarn install



commit aead55f8acc96a12c68b5173b18a16328ae3ac07
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 4 18:07:32 2022 -0700

    build-aux: ensure offline for yarn install

 build-aux/flatpak/typescript-language-server.json |  4 ++++
 build-aux/flatpak/typescript-package.json.patch   | 26 +++++++++++++++++++++++
 2 files changed, 30 insertions(+)
---
diff --git a/build-aux/flatpak/typescript-language-server.json 
b/build-aux/flatpak/typescript-language-server.json
index 0ee49bdac..40d3386bf 100644
--- a/build-aux/flatpak/typescript-language-server.json
+++ b/build-aux/flatpak/typescript-language-server.json
@@ -27,6 +27,10 @@
             "sha256": "4aa7890ef7acb044f99b9ca4293e540a90fd67f7b5ef16b542f92cecbfb4ebc6",
             "dest": "typescript-language-server"
         },
+        {
+            "type" : "patch",
+            "path" : "typescript-package.json.patch"
+        },
         "typescript-language-server-deps.json"
     ]
 }
diff --git a/build-aux/flatpak/typescript-package.json.patch b/build-aux/flatpak/typescript-package.json.patch
new file mode 100644
index 000000000..8c1825b52
--- /dev/null
+++ b/build-aux/flatpak/typescript-package.json.patch
@@ -0,0 +1,26 @@
+--- a/typescript-language-server/package.json  2022-09-28 11:41:02.000000000 -0700
++++ b/typescript-language-server/package.json  2022-10-04 18:02:56.163937154 -0700
+@@ -25,19 +25,19 @@
+     "test:compiled": "cross-env CONSOLE_LOG_LEVEL=warning mocha \"./lib/**/*.spec.js\"",
+     "lint": "eslint --ext \".js,.ts\" src",
+     "fix": "eslint --ext \".js,.ts\" --fix src",
+-    "build": "concurrently -n compile,lint -c blue,green \"yarn compile\" \"yarn lint\"",
++    "build": "concurrently -n compile,lint -c blue,green \"yarn --offline compile\" \"yarn --offline 
lint\"",
+     "compile": "tsc -b",
+     "watch": "tsc -b --watch --verbose",
+     "postversion": "git push --follow-tags",
+-    "prepare": "cd test-data/jsx && yarn"
++    "prepare": "cd test-data/jsx && yarn --offline"
+   },
+   "eslintIgnore": [
+     "!.eslintrc.cjs"
+   ],
+   "husky": {
+     "hooks": {
+-      "pre-commit": "yarn lint && yarn build && yarn test:compiled",
+-      "post-merge": "yarn"
++      "pre-commit": "yarn --offline lint && yarn --offline build && yarn --offline test:compiled",
++      "post-merge": "yarn --offline "
+     }
+   },
+   "dependencies": {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]