Rework cookie-banner exports: themed banner as default, headless as subpath

Make the themed banner the default "." export and move the headless
components to "./headless". Remove unused VERSION export.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-22 10:49:22 +04:00
parent 0cb48a4f33
commit 4a88cc5902
5 changed files with 24 additions and 11 deletions

View File

@@ -28,8 +28,8 @@ await Promise.all([
}),
esbuild.build({
...shared,
entryPoints: ["src/themed-banner/index.ts"],
outfile: "dist/cookie-banner-themed.mjs",
entryPoints: ["src/headless/index.ts"],
outfile: "dist/cookie-banner-headless.mjs",
format: "esm",
}),
esbuild.build({