Set entrypoints to use ./lib rather than ./src ()

Currently, we replace the entrypoints in package.json during the release
cycle. I think, historically, this was done to make element-web development
easier, but that doesn't actually use these entrypoints (instead it imports
from `src`).

Accordingly, I think the switcheroo is unnecessary; furthermore it causes a
whole bunch of confusion by making the development environment different from
the release environment, and it complicates our CI and release process.

In short, the switcheroo has to die.
This commit is contained in:
Richard van der Hoff 2024-08-21 10:09:49 +01:00 committed by GitHub
parent a7e907e0e6
commit 2768b9cbb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,10 +26,8 @@
"engines": { "engines": {
"node": ">=20.0.0" "node": ">=20.0.0"
}, },
"main": "./src/index.ts", "main": "./lib/index.ts",
"matrix_src_main": "./src/index.ts", "typings": "./lib/index.d.ts",
"matrix_lib_main": "./lib/index.ts",
"matrix_lib_typings": "./lib/index.d.ts",
"matrix_i18n_extra_translation_funcs": [ "matrix_i18n_extra_translation_funcs": [
"UserFriendlyError" "UserFriendlyError"
], ],