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.

(cherry picked from commit 2768b9c)
  • Loading branch information
richvdh authored and github-actions[bot] committed Aug 21, 2024
1 parent 2a11fd5 commit add6f09
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 add6f09

Please sign in to comment.