Skip to content

Commit ee94e93

Browse files
authored
set entrypoints to use ./lib rather than ./src (#4357)
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.
1 parent 31c4786 commit ee94e93

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,9 @@
3232
"matrix-org"
3333
],
3434
"type": "module",
35-
"main": "./src/index.ts",
36-
"browser": "./src/browser-index.ts",
37-
"matrix_src_main": "./src/index.ts",
38-
"matrix_src_browser": "./src/browser-index.ts",
39-
"matrix_lib_main": "./lib/index.js",
40-
"matrix_lib_browser": "./lib/browser-index.js",
41-
"matrix_lib_typings": "./lib/index.d.ts",
35+
"main": "./lib/index.js",
36+
"browser": "./lib/browser-index.js",
37+
"typings": "./lib/index.d.ts",
4238
"author": "matrix.org",
4339
"license": "Apache-2.0",
4440
"files": [

0 commit comments

Comments
 (0)