Przeglądaj źródła

Re-enable type checking in CI (#8114)

* Re-enable type checking in CI
* Update use-codemirror-scope.ts
* Run patch-package in postinstall script
* Update Dockerfile
* Update .dockerignore

GitOrigin-RevId: 512c7c71a109d2cf34895193078a98c66eb91f29
Alf Eaton 4 lat temu
rodzic
commit
506010cb14

+ 2 - 1
package.json

@@ -19,7 +19,8 @@
     "format": "prettier --list-different $PWD/'**/*.js'",
     "format": "prettier --list-different $PWD/'**/*.js'",
     "format:fix": "prettier --write $PWD/'**/*.js'",
     "format:fix": "prettier --write $PWD/'**/*.js'",
     "lint": "eslint --max-warnings 0 --format unix .",
     "lint": "eslint --max-warnings 0 --format unix .",
-    "lint:fix": "eslint --fix ."
+    "lint:fix": "eslint --fix .",
+    "postinstall": "patch-package"
   },
   },
   "workspaces": [
   "workspaces": [
     "libraries/*",
     "libraries/*",

+ 1 - 0
services/web/Dockerfile

@@ -17,6 +17,7 @@ FROM base as deps
 COPY package.json package-lock.json /overleaf/
 COPY package.json package-lock.json /overleaf/
 COPY services/web/package.json /overleaf/services/web/
 COPY services/web/package.json /overleaf/services/web/
 COPY libraries/ /overleaf/libraries/
 COPY libraries/ /overleaf/libraries/
+COPY patches/ /overleaf/patches/
 
 
 ENV CYPRESS_INSTALL_BINARY=0
 ENV CYPRESS_INSTALL_BINARY=0
 
 

+ 1 - 2
services/web/Makefile

@@ -436,9 +436,8 @@ lint: lint_flag_res_send_usage
 lint_flag_res_send_usage:
 lint_flag_res_send_usage:
 	bin/lint_flag_res_send_usage
 	bin/lint_flag_res_send_usage
 
 
-#lint: typecheck_frontend
+lint: typecheck_frontend
 typecheck_frontend:
 typecheck_frontend:
-	cd ../.. && npx patch-package
 	npx tsc --noEmit
 	npx tsc --noEmit
 
 
 lint_in_docker:
 lint_in_docker:

+ 1 - 1
services/web/frontend/stories/decorators/scope.tsx

@@ -152,7 +152,7 @@ const initialize = () => {
       'gv',
       'gv',
       'mf',
       'mf',
     ],
     ],
-  }
+  } as typeof window.ExposedSettings
 
 
   window.project_id = project._id
   window.project_id = project._id