Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Set entrypoints to use ./lib rather than ./src (#12906)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
richvdh committed Aug 21, 2024
1 parent a7e907e commit 2768b9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
"engines": {
"node": ">=20.0.0"
},
"main": "./src/index.ts",
"matrix_src_main": "./src/index.ts",
"matrix_lib_main": "./lib/index.ts",
"matrix_lib_typings": "./lib/index.d.ts",
"main": "./lib/index.ts",
"typings": "./lib/index.d.ts",
"matrix_i18n_extra_translation_funcs": [
"UserFriendlyError"
],
Expand Down

0 comments on commit 2768b9c

Please sign in to comment.