-
-
Notifications
You must be signed in to change notification settings - Fork 0
build(*): add cp.mjs
script for file copying and update build scripts
#400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Labels have been automatically applied based on the Conventional Commits specification.🏷️ |
cp.mjs
script for file copying and update build scripts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a reusable Node-based file copy utility and standardizes copy commands across package build scripts, updates CI/docker workflows for apt-get
, and ensures the new script is synced via GitHub configurations.
- Introduces
scripts/cp.mjs
for recursive, forced file copying. - Updates package
build
scripts to usenode ../../scripts/cp.mjs
instead ofshx cp
. - Replaces
apt
withapt-get
in CI workflows and documentation; syncs the new script in GitHub sync client.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
website/docs/further-reading/build-process.md | Swapped apt -> apt-get in build instructions |
scripts/cp.mjs | Added new reusable copy script |
packages/clang-format-node/package.json | Updated build script to use cp.mjs |
packages/clang-format-git/package.json | Updated build script to use cp.mjs |
packages/clang-format-git-python/package.json | Updated build script to use cp.mjs |
.github/workflows/test-cross-platform.yml | Swapped apt -> apt-get in Docker setup steps |
.github/sync-client.yml | Added scripts/cp.mjs to sync client configuration |
Comments suppressed due to low confidence (2)
scripts/cp.mjs:1
- There are no tests covering this new copy utility. Adding unit or integration tests will help ensure it behaves as expected under different scenarios.
/**
scripts/cp.mjs:1
- [nitpick] Add a note in the project README or a top-level docs file to explain the purpose and usage of
cp.mjs
, so consumers know when and how to use it.
/**
Bundle ReportChanges will increase total bundle size by 31 bytes (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: website-esmAssets Changed:
Files in
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #400 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 422 422
=========================================
Hits 422 422 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…ch`) (#404) ## Release Information: `v1.3.5` New release of `lumirlumir/npm-clang-format-node` has arrived! 🎉 This PR bumps the package versions from `v1.3.4` to `v1.3.5` (`patch`). See [Actions](https://github.com/lumirlumir/npm-clang-format-node/actions/runs/16264909140) for more details. | Info | Value | | ----------- | -------------------------- | | Repository | `lumirlumir/npm-clang-format-node` | | SEMVER | `patch` | | Pre ID | `canary` | | Short SHA | df49101 | | Old Version | `v1.3.4` | | New Version | `v1.3.5` | <!-- Release notes generated using configuration in .github/release.yml at main --> ## What's Changed ### 🐛 Bug Fixes * fix(*): drop `shx` and replace it with Node.js native script by @lumirlumir in #402 ### 🛠️ Builds * build(*): add `cp.mjs` script for file copying and update build scripts by @lumirlumir in #400 ### ♻️ Code Refactoring * refactor(*): simplify paths to the binary files by @lumirlumir in #401 ### ⬆️ Dependency Updates * chore(deps-dev): bump eslint from 9.30.1 to 9.31.0 by @dependabot[bot] in #403 **Full Changelog**: v1.3.4...v1.3.5
This pull request introduces updates to streamline file copying processes across multiple packages, refactor scripts for consistency, and improve documentation. The most significant changes involve the addition of a reusable file copy script (
cp.mjs
), updates to package build commands to use this script, and the replacement ofapt
commands withapt-get
for better compatibility.File Copying Enhancements:
scripts/cp.mjs
to facilitate file copying with support for recursive and forced operations. This script is now reusable across packages.build
scripts inpackages/clang-format-git-python/package.json
,packages/clang-format-git/package.json
, andpackages/clang-format-node/package.json
to replaceshx cp
commands withnode ../../scripts/cp.mjs
, enhancing consistency and maintainability. [1] [2] [3]Configuration Updates:
cp.mjs
to.github/sync-client.yml
for syncing scripts across repositories.Compatibility Improvements:
apt
commands withapt-get
in.github/workflows/test-cross-platform.yml
andwebsite/docs/further-reading/build-process.md
for improved compatibility and standardization. [1] [2]