mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Use TypeScript source for development, swap to build during release
This changes the JS SDK to point `main` to TypeScript source and remove any indication of `typings`. For local development and CI workflows, it means many steps can run without building first, which saves lots of time. During release, we still build for Node and browsers as before. The release script adjusts the `main` and `typings` fields before publishing and distribution to point to the built output for those that use them.
This commit is contained in:
parent
19cfe44b16
commit
b22c28eac9
1 changed files with 3 additions and 2 deletions
|
@ -27,9 +27,10 @@
|
||||||
"matrix-gen-i18n": "scripts/gen-i18n.js",
|
"matrix-gen-i18n": "scripts/gen-i18n.js",
|
||||||
"matrix-prune-i18n": "scripts/prune-i18n.js"
|
"matrix-prune-i18n": "scripts/prune-i18n.js"
|
||||||
},
|
},
|
||||||
"main": "./lib/index.js",
|
"main": "./src/index.js",
|
||||||
"typings": "./lib/index.d.ts",
|
|
||||||
"matrix_src_main": "./src/index.js",
|
"matrix_src_main": "./src/index.js",
|
||||||
|
"matrix_lib_main": "./lib/index.js",
|
||||||
|
"matrix_lib_typings": "./lib/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"i18n": "matrix-gen-i18n",
|
"i18n": "matrix-gen-i18n",
|
||||||
|
|
Loading…
Reference in a new issue