You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-23 17:02:25 +03:00
15 lines
600 B
Bash
Executable File
15 lines
600 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# For the published and dist versions of the package,
|
|
# we copy the `matrix_lib_main` and `matrix_lib_typings` fields to `main` and `typings` (if they exist).
|
|
# This small bit of gymnastics allows us to use the TypeScript source directly for development without
|
|
# needing to build before linting or testing.
|
|
|
|
for i in main typings browser
|
|
do
|
|
lib_value=$(jq -r ".matrix_lib_$i" package.json)
|
|
if [ "$lib_value" != "null" ]; then
|
|
jq ".$i = .matrix_lib_$i" package.json > package.json.new && mv package.json.new package.json && yarn prettier --write package.json
|
|
fi
|
|
done
|