diff options
| author | Taylor Mullen <[email protected]> | 2025-05-16 13:54:54 -0700 |
|---|---|---|
| committer | N. Taylor Mullen <[email protected]> | 2025-05-16 13:59:07 -0700 |
| commit | 8af970061ecba4dde90425447f3fafc4cf0d59f1 (patch) | |
| tree | 85eccafe2fd74472c60019d05b9b0972110f76d2 /scripts/build_package.sh | |
| parent | 8b959c2060352182889e8e056de8a62a301778df (diff) | |
Fix: Use Node.js script for cross-platform file copying in build
- Replaces the rsync command in the build_package.sh script with a
Node.js script (copy_files.cjs) to handle copying necessary files
(e.g., .md, .json, .sb) during the build process.
- Addresses an issue where the build would fail on systems
that do not have rsync installed (e.g., some Windows environments or
minimal Linux distributions) by using a Node.js script, providing a
cross-platform solution as Node.js is already a project dependency.
- Updates the ESLint configuration to correctly lint .cjs files as
CommonJS modules.
Fixes https://github.com/google-gemini/gemini-cli/issues/387
Diffstat (limited to 'scripts/build_package.sh')
| -rwxr-xr-x | scripts/build_package.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build_package.sh b/scripts/build_package.sh index 28053a89..022cae5a 100755 --- a/scripts/build_package.sh +++ b/scripts/build_package.sh @@ -26,8 +26,8 @@ fi # build typescript files tsc --build -# copy .{md,json} files (replace -q with -i to see itemized changes) -rsync -aq --delete --include='*.md' --include='*.json' --include='*.sb' --include='*/' --exclude='*' ./src/ ./dist/src/ +# copy .{md,json} files +node ../../scripts/copy_files.cjs # touch dist/.last_build touch dist/.last_build |
