Skip to content

Commit 7267eea

Browse files
3indblown Leaftjenkinson
andauthored
allow changes to ".pnp.cjs" files
* add `.pnp.cjs` * add `.pnp.cjs` to test --------- Co-authored-by: Tom Jenkinson <[email protected]>
1 parent 35e6f9d commit 7267eea

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/run.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ describe('run', () => {
247247
{ filename: 'package.json', status: 'modified' },
248248
{ filename: 'package-lock.json', status: 'modified' },
249249
{ filename: 'yarn.lock', status: 'modified' },
250+
{ filename: '.pnp.cjs', status: 'modified' },
250251
],
251252
},
252253
};

src/run.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,9 @@ export async function run(): Promise<Result> {
256256
}
257257
const onlyPackageJsonChanged = comparison.data.files.every(
258258
({ filename, status }) =>
259-
['package.json', 'package-lock.json', 'yarn.lock'].includes(filename) &&
260-
status === 'modified'
259+
['package.json', 'package-lock.json', 'yarn.lock', '.pnp.cjs'].includes(
260+
filename
261+
) && status === 'modified'
261262
);
262263
if (!onlyPackageJsonChanged) {
263264
core.error('More changed than the package.json and lockfile');

0 commit comments

Comments
 (0)