mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
move output of both lib and asset build around for coherent package
This commit is contained in:
parent
c921091957
commit
163dae647b
@ -6,6 +6,5 @@
|
||||
"import": "./hydrogen.es.js",
|
||||
"require": "./hydrogen.cjs.js"
|
||||
},
|
||||
"files": [],
|
||||
"types": "types/lib.d.ts"
|
||||
}
|
||||
|
13
scripts/sdk/build.sh
Executable file → Normal file
13
scripts/sdk/build.sh
Executable file → Normal file
@ -1,4 +1,17 @@
|
||||
rm -rf target
|
||||
yarn run vite build -c vite.sdk-assets-config.js
|
||||
yarn run vite build -c vite.sdk-lib-config.js
|
||||
yarn tsc -p tsconfig-declaration.json
|
||||
./scripts/sdk/create-manifest.js ./target/package.json
|
||||
pushd target
|
||||
pushd asset-build/assets
|
||||
mv main.*.js ../../main.js
|
||||
mv index.*.css ../../style.css
|
||||
mv download-sandbox.*.html ../../download-sandbox.html
|
||||
rm *.js *.wasm
|
||||
mv ./* ../../
|
||||
popd
|
||||
rm -rf asset-build
|
||||
mv lib-build/* .
|
||||
rm -rf lib-build
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user