@warpgogol/repo-extract 1.4.4 → 1.4.6

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.
@@ -438,17 +438,17 @@ export function generateCiWorkflow(pm, ci, opts) {
438
438
  const testCmd = pm === "pnpm" ? "pnpm test" : pm === "yarn" ? "yarn test" : "npm test";
439
439
  const cacheKey = pm === "pnpm" ? "pnpm" : pm === "yarn" ? "yarn" : "npm";
440
440
  // setup-node's cache needs a committed lockfile — skip it when none ships.
441
- const cacheLines = lockfileShips ? [` cache: ${cacheKey}`] : [];
442
- // pnpm/action-setup@v6 defaults package-manager-cache: true, which resolves
443
- // the lockfile itself — disable it too when no lockfile ships.
441
+ // pnpm/action-setup@v6's `cache` (default true) also injects
442
+ // `package-manager-cache: true` into setup-node's resolved inputs, which
443
+ // hard-fails on a missing lockfile — the override must land on setup-node
444
+ // itself; action-setup's own `cache: false` does not retract the injection.
445
+ const cacheLines = lockfileShips
446
+ ? [` cache: ${cacheKey}`]
447
+ : [" package-manager-cache: false"];
444
448
  const pnpmSetup = pm === "pnpm"
445
449
  ? lockfileShips
446
450
  ? [" - uses: pnpm/action-setup@v6"]
447
- : [
448
- " - uses: pnpm/action-setup@v6",
449
- " with:",
450
- " package-manager-cache: false",
451
- ]
451
+ : [" - uses: pnpm/action-setup@v6", " with:", " cache: false"]
452
452
  : [];
453
453
  const ciSetupSteps = [
454
454
  " - uses: actions/checkout@v5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warpgogol/repo-extract",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "Extract apps and packages from a TurboRepo monorepo into standalone public repositories",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Andrii Syrokomskyi <andrii@syrokomskyi.com> (https://syrokomskyi.com)",