Skip to content

Commit

Permalink
set entrypoints to use ./lib rather than ./src (matrix-org#4357)
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 matrix-react-sdk and
element-web development easier, but neither of those projects actually use
these entrypoints (instead they import 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 authored Aug 21, 2024
1 parent 31c4786 commit ee94e93
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@
"matrix-org"
],
"type": "module",
"main": "./src/index.ts",
"browser": "./src/browser-index.ts",
"matrix_src_main": "./src/index.ts",
"matrix_src_browser": "./src/browser-index.ts",
"matrix_lib_main": "./lib/index.js",
"matrix_lib_browser": "./lib/browser-index.js",
"matrix_lib_typings": "./lib/index.d.ts",
"main": "./lib/index.js",
"browser": "./lib/browser-index.js",
"typings": "./lib/index.d.ts",
"author": "matrix.org",
"license": "Apache-2.0",
"files": [
Expand Down

0 comments on commit ee94e93

Please sign in to comment.