Skip to content

armgit / ente

Public Imported from GitHub
0

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

Misc tweaks

Manav Rathi4c820b7bf8c1
diff --git a/web/docs/dependencies.md b/web/docs/dependencies.md
index 2e45cd9b90..92cf8acd2d 100644
--- a/web/docs/dependencies.md
+++ b/web/docs/dependencies.md
@@ -46,6 +46,18 @@ The root `package.json` also has a convenience dev dependency:
- [concurrently](https://github.com/open-cli-tools/concurrently) for spawning
parallel tasks when we invoke various yarn scripts.
+> [!NOTE]
+>
+> We need to repeat some of the dependencies in multiple `package.json`s to
+> avoid spurious missing peer dependency warnings.
+>
+> For example, ideally we'd just have specified the react dependencies in
+> _ente-base_, but that leads to missing peer dependency warnings in our other
+> packages, so we need to need to repeat them. For now, we manually ensure that
+> all of them use the same version. Additionally, we pin the versions of the
+> react types using the resolutions field in the top level `package.json`, to
+> avoid type errors because of multiple versions of react types being in scope.
+
## Cryptography
We use [libsodium](https://libsodium.gitbook.io/doc/) for our cryptography
@@ -87,16 +99,6 @@ is our core framework. We also import its a sibling
[react-dom](https://github.com/facebook/react) package that renders JSX to the
DOM.
-> [!NOTE]
->
-> We need to repeat the dependency on react and its siblings in multiple
-> package.jsons to avoid the unmet peer dependency warnings printed by yarn.
-> Ideally, the react dependencies can be specified just in the _ente-base_
-> package. For now, we manually ensure that all of them use the same version.
-> Additionally, we pin the versions of the react types using the resolutions
-> field in the top level `package.json`, otherwise we end up with type errors
-> because of multiple versions of react types being in scope.
-
### MUI and Material Icons
We use [MUI](https://mui.com)'s
diff --git a/web/packages/accounts/package.json b/web/packages/accounts/package.json
index 1491dc2356..be089b01ec 100644
--- a/web/packages/accounts/package.json
+++ b/web/packages/accounts/package.json
@@ -8,11 +8,15 @@
"ente-base": "*",
"ente-shared": "*",
"fast-srp-hap": "^2.0.4",
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
"react-otp-input": "^3.1.1",
"uuid": "^11.1.0",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
+ "@types/react": "^19.1.0",
+ "@types/react-dom": "^19.1.1",
"ente-build-config": "*"
}
}
diff --git a/web/packages/build-config/package.json b/web/packages/build-config/package.json
index 33367ed980..b1d023e93d 100644
--- a/web/packages/build-config/package.json
+++ b/web/packages/build-config/package.json
@@ -5,11 +5,14 @@
"type": "module",
"devDependencies": {
"@eslint/js": "^9.24.0",
+ "eslint": "^9.21.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
+ "prettier": "^3.5.3",
"prettier-plugin-organize-imports": "^4.1.0",
"prettier-plugin-packagejson": "^2.5.10",
+ "typescript": "^5.8.2",
"typescript-eslint": "^8.29.1"
}
}
diff --git a/web/packages/new/package.json b/web/packages/new/package.json
index acf9c48c71..de0c515a74 100644
--- a/web/packages/new/package.json
+++ b/web/packages/new/package.json
@@ -15,6 +15,8 @@
"react-dom": "^19.1.0"
},
"devDependencies": {
+ "@types/react": "^19.1.0",
+ "@types/react-dom": "^19.1.1",
"ente-build-config": "*"
}
}
diff --git a/web/packages/utils/package.json b/web/packages/utils/package.json
index bf36336fe1..333f2ea2cb 100644
--- a/web/packages/utils/package.json
+++ b/web/packages/utils/package.json
@@ -2,7 +2,6 @@
"name": "ente-utils",
"version": "0.0.0",
"private": true,
- "dependencies": {},
"devDependencies": {
"ente-build-config": "*"
}