fix(design-system): include notices only during production builds

Signed-off-by: Arjun Mahanti <arjun@squareup.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Arjun Mahanti
2026-09-09 08:53:07 -07:00
parent 0cbb4d6f34
commit 6a672bd0fa
2 changed files with 2 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ export default defineConfig({
react(),
{
name: "license-notices",
apply: "build",
closeBundle() {
copyFileSync(
"../packages/ui/THIRD_PARTY_NOTICES.md",

View File

@@ -4,6 +4,7 @@ export default defineConfig({
plugins: [
{
name: "license-notices",
apply: "build",
closeBundle() {
copyFileSync("THIRD_PARTY_NOTICES.md", "dist/THIRD_PARTY_NOTICES.md");
copyFileSync("../../LICENSE", "dist/LICENSE");