@zairakai/js-dev-tools 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zairakai/js-dev-tools",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "The unified and centralized development toolkit for JavaScript/TypeScript projects - ESLint, Prettier, Stylelint, Knip, Vitest, Git Hooks, and GitLab CI pipeline templates",
5
5
  "keywords": [
6
6
  "dev-tools",
@@ -254,6 +254,12 @@ setup_file() {
254
254
  local target="$2"
255
255
  local name="$3"
256
256
 
257
+ # In js-dev-tools itself the source and the target are the same file: removing the target would delete the source
258
+ if [[ "$source" -ef "$target" ]]; then
259
+ track_skipped "$name"
260
+ return 0
261
+ fi
262
+
257
263
  if [[ "$CI_MODE" == "true" ]] || [[ "$FORCE_OVERWRITE" == "true" ]]; then
258
264
  if [[ -f "$target" ]] && [[ ! -L "$target" ]] && [[ "$CI_MODE" != "true" ]]; then
259
265
  if backup_file "$target" 2>/dev/null; then