Skip to content

Commit b9bca45

Browse files
committed
fix(ng-dev/release): improve lockfile exclusion logic in snapshot publishing
Update the snapshot publishing logic to more robustly exclude lockfiles from determining if a snapshot is affected by changes. Specifically: - Added pnpm-lock.yaml to the list of excluded paths. - Added both root-level and glob variants for MODULE.bazel.lock, pnpm-lock.yaml, and pubspec.lock.
1 parent 33d7187 commit b9bca45

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ng-dev/release/snapshot-publish/snapshots.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ interface SnapshotRepo {
3434
/**
3535
* Paths to exclude from the snapshot commit.
3636
*/
37-
const PATHS_TO_EXCLUDE = ['**/MODULE.bazel.lock', '**/package-lock.json', '**/pubspec.lock'];
37+
const PATHS_TO_EXCLUDE = [
38+
'MODULE.bazel.lock',
39+
'**/MODULE.bazel.lock',
40+
41+
'pnpm-lock.yaml',
42+
'**/pnpm-lock.yaml',
43+
44+
'pubspec.lock',
45+
'**/pubspec.lock',
46+
];
3847

3948
export class SnapshotPublisher {
4049
/** The current branch name. */

0 commit comments

Comments
 (0)