From 163dae647b0531c01ed6396cb7ac19a6fb72595d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 21 Dec 2021 12:24:33 +0100 Subject: [PATCH] move output of both lib and asset build around for coherent package --- scripts/sdk/base-manifest.json | 1 - scripts/sdk/build.sh | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) mode change 100755 => 100644 scripts/sdk/build.sh diff --git a/scripts/sdk/base-manifest.json b/scripts/sdk/base-manifest.json index 829cd3a6..d8e30dd2 100644 --- a/scripts/sdk/base-manifest.json +++ b/scripts/sdk/base-manifest.json @@ -6,6 +6,5 @@ "import": "./hydrogen.es.js", "require": "./hydrogen.cjs.js" }, - "files": [], "types": "types/lib.d.ts" } diff --git a/scripts/sdk/build.sh b/scripts/sdk/build.sh old mode 100755 new mode 100644 index 90b43534..c9f7a79d --- a/scripts/sdk/build.sh +++ b/scripts/sdk/build.sh @@ -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