Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Type check desktop scripts

Manav Rathi3e44afbcf854
diff --git a/desktop/package.json b/desktop/package.json
index 6a4b5125ea..81839145fa 100644
--- a/desktop/package.json
+++ b/desktop/package.json
@@ -20,8 +20,8 @@
"dev-main": "tsc && electron .",
"dev-renderer": "npm run check-web-deps && cross-env-shell _ENTE_IS_DESKTOP=1 \"cd ../web && npm exec --workspace photos -- next dev --webpack -p 3008\"",
"postinstall": "node scripts/postinstall.mjs",
- "lint": "prettier --check --log-level warn . && eslint && tsc",
- "lint:fix": "prettier --write --log-level warn . && eslint && tsc"
+ "lint": "prettier --check --log-level warn . && eslint && tsc && tsc -p scripts",
+ "lint:fix": "prettier --write --log-level warn . && eslint && tsc && tsc -p scripts"
},
"dependencies": {
"any-shell-escape": "0.1.1",
diff --git a/desktop/scripts/tsconfig.json b/desktop/scripts/tsconfig.json
new file mode 100644
index 0000000000..d7a0a4d3d8
--- /dev/null
+++ b/desktop/scripts/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "compilerOptions": {
+ "allowJs": true,
+ "checkJs": true,
+ "noEmit": true,
+ "module": "nodenext",
+ "target": "ES2024",
+ "types": ["node"],
+ "strict": false
+ }
+}