Bläddra i källkod

Merge pull request #16661 from overleaf/em-fix-tsconfig

Small backend Typescript config fixes

GitOrigin-RevId: d600c1f3fa9ef88e9a06aaa5743d454a620c122d
Eric Mc Sween 2 år sedan
förälder
incheckning
5c517a56c3

+ 1 - 1
libraries/access-token-encryptor/package.json

@@ -12,7 +12,7 @@
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/fetch-utils/package.json

@@ -12,7 +12,7 @@
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/logger/package.json

@@ -18,7 +18,7 @@
     "lint:fix": "eslint --fix --ext .js --ext .cjs .",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/metrics/package.json

@@ -38,7 +38,7 @@
     "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/o-error/package.json

@@ -27,7 +27,7 @@
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/object-persistor/package.json

@@ -12,7 +12,7 @@
     "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/overleaf-editor-core/package.json

@@ -12,7 +12,7 @@
     "lint:fix": "eslint --fix --ext .js --ext .cjs .",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/promise-utils/package.json

@@ -12,7 +12,7 @@
     "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/ranges-tracker/package.json

@@ -15,7 +15,7 @@
     "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/redis-wrapper/package.json

@@ -21,7 +21,7 @@
     "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/settings/package.json

@@ -13,7 +13,7 @@
     "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
     "test:ci": "npm run test:unit",
     "test:unit": "mocha --exit test/**/*.{js,cjs}",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 1
libraries/stream-utils/package.json

@@ -12,7 +12,7 @@
     "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
     "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
     "test:ci": "npm run test:unit",
-    "types:build": "[ -d types ] || tsc --emitDeclarationOnly",
+    "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
     "types:check": "tsc --noEmit",
     "types:rebuild": "rm -rf types && npm run types:build"
   },

+ 1 - 0
tsconfig.backend.json

@@ -3,6 +3,7 @@
     "allowJs": true,
     "esModuleInterop": true,
     "moduleResolution": "node",
+    "noEmit": true,
     "noImplicitAny": false,
     "skipLibCheck": true,
     "strict": true