@uirouter/publish-scripts 2.6.4 → 2.6.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 2.6.5 (2026-01-01)
2
+ [Compare `@uirouter/publish-scripts` versions 2.6.3 and 2.6.5](https://github.com/ui-router/publish-scripts/compare/2.6.3...2.6.5)
3
+
4
+ ### Bug Fixes
5
+
6
+ * **yalc:** Use rsync to copy downstream tests to the .downstream_cache directory ([6532304](https://github.com/ui-router/publish-scripts/commit/6532304))
7
+
8
+
9
+ ---
10
+
11
+
12
+ ### Updated `check-peer-dependencies` from 4.3.0 to 4.3.2
13
+
14
+
15
+ Changelog for `check-peer-dependencies`:
16
+
17
+
18
+ [Compare `check-peer-dependencies` versions 4.3.0 and 4.3.2](https://github.com/christopherthielen/check-peer-dependencies/compare/4.3.0...4.3.2)
19
+
20
+ ### Bug Fixes
21
+
22
+ * ?.endsWith to avoid NPE ([e605bbc](https://github.com/christopherthielen/check-peer-dependencies/commit/e605bbc))
23
+ * fix yalc detection ([625b279](https://github.com/christopherthielen/check-peer-dependencies/commit/625b279))
24
+
1
25
  ## 2.6.4 (2025-12-30)
2
26
  [Compare `@uirouter/publish-scripts` versions 2.6.3 and 2.6.4](https://github.com/ui-router/publish-scripts/compare/2.6.3...2.6.4)
3
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uirouter/publish-scripts",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "description": "Helper scripts for publishing UI-Router projects",
5
5
  "main": "x",
6
6
  "repository": {
@@ -28,7 +28,7 @@ function publishYalcPackage(installTargetDir, installSource, flags) {
28
28
  const installTargetDirTmp = path.join(installTargetDir, ".tmp");
29
29
  const installSourceDir = isRemoteSource ? null : path.resolve(installSource);
30
30
 
31
- // Create directory and clone git repo
31
+ // Create directory and clone git repo or copy from directory, when no cached repo exists yet
32
32
  if (!fs.existsSync(path.join(installTargetDir, '.git'))) {
33
33
  if (isRemoteSource) {
34
34
  util._exec(`git clone ${installSource} ${installTargetDir}`);
@@ -41,35 +41,26 @@ function publishYalcPackage(installTargetDir, installSource, flags) {
41
41
  }
42
42
  }
43
43
 
44
- // Update git repo from source and make working copy match exactly
44
+ // Update the git repo (previously cached, or just created) with changes from the source repo or directory
45
45
  if (isRemoteSource) {
46
+ // Update git repo from source and make working copy match exactly
46
47
  process.chdir(installTargetDir);
47
48
  util._exec('git fetch origin');
48
49
  util._exec(`git checkout ${branch}`);
49
50
  util._exec(`git reset --hard ${branch}`);
50
51
  util._exec('git clean --force -d');
51
52
  } else {
52
- // Create a tmp dir with a copy of the current package contents
53
- shelljs.rm('-rf', installTargetDirTmp);
54
- shelljs.cp('-r', installSourceDir, installTargetDirTmp);
55
-
56
- // Copy the current .git metadata from the cache dir into the tmp dir
57
- shelljs.cp('-r', path.join(installTargetDir, ".git"), installTargetDirTmp);
58
- process.chdir(installTargetDirTmp);
53
+ // Update the cached git repo with the current package contents
54
+ process.chdir(installTargetDir);
55
+ util._exec(`rsync -a --delete `+
56
+ `--exclude='/.git/' `+
57
+ `--exclude='**/.git/' `+
58
+ `--exclude='/node_modules/' `+
59
+ `--exclude='**/node_modules/' `+
60
+ `"${installSourceDir}"/ "${installTargetDir}"/`);
59
61
 
60
62
  // Commit the changes from the current package (if any)
61
63
  util._exec('git add . && git diff --staged --quiet || git commit -m "update from source directory"');
62
-
63
- process.chdir(installTargetDir);
64
-
65
- // Move the new .git metadata back into the cache dir
66
- shelljs.rm('-rf', '.git');
67
- shelljs.mv(path.join('.tmp', '.git'), ".");
68
- shelljs.rm('-rf', installTargetDirTmp);
69
-
70
- // Update the cache to match the current package contents
71
- util._exec('git reset --hard master');
72
- util._exec('git clean --force -d');
73
64
  }
74
65
 
75
66
  // Update dependencies