mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
fix(build): handle file exists error in build_package
This commit is contained in:
parent
bfbdae8e3a
commit
bb8565ee9d
1 changed files with 3 additions and 0 deletions
|
|
@ -48,6 +48,9 @@ if (packageName === 'core') {
|
|||
const docsSource = join(process.cwd(), '..', '..', 'docs');
|
||||
const docsTarget = join(process.cwd(), 'dist', 'docs');
|
||||
if (existsSync(docsSource)) {
|
||||
if (existsSync(docsTarget)) {
|
||||
execSync(`rm -rf "${docsTarget}"`);
|
||||
}
|
||||
cpSync(docsSource, docsTarget, { recursive: true, dereference: true });
|
||||
console.log('Copied documentation to dist/docs');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue