Merge pull request #9896 from shadcn-ui/fix/exclude-appledouble-from-template-archives

fix(shadcn): apple metadata files in tar
This commit is contained in:
shadcn
2026-03-08 12:29:09 +04:00
committed by GitHub
12 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn": patch
---
fix apple metadata files in template

View File

@@ -777,11 +777,17 @@ async function buildTemplates() {
".git",
"--exclude",
"pnpm-lock.yaml",
"--exclude",
"._*",
"-C",
templatesDir,
name,
],
{ cwd: process.cwd(), stdio: "pipe" }
{
cwd: process.cwd(),
stdio: "pipe",
env: { ...process.env, COPYFILE_DISABLE: "1" },
}
)
let stderr = ""
proc.stderr?.on("data", (data) => (stderr += data))