Skip to content

Commit 2768b9c

Browse files
authored
Set entrypoints to use ./lib rather than ./src (#12906)
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.
1 parent a7e907e commit 2768b9c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
"engines": {
2727
"node": ">=20.0.0"
2828
},
29-
"main": "./src/index.ts",
30-
"matrix_src_main": "./src/index.ts",
31-
"matrix_lib_main": "./lib/index.ts",
32-
"matrix_lib_typings": "./lib/index.d.ts",
29+
"main": "./lib/index.ts",
30+
"typings": "./lib/index.d.ts",
3331
"matrix_i18n_extra_translation_funcs": [
3432
"UserFriendlyError"
3533
],

0 commit comments

Comments
 (0)