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