From ee94e93354b9ed34fc82c2d1f8b4da7114ab6aee Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:31:05 +0100 Subject: [PATCH] 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. --- package.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index d0cfee9d96f..4e340eaaee4 100644 --- a/package.json +++ b/package.json @@ -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": [