Skip to content

Commit 029728a

Browse files
authored
Merge pull request #846 from bradygaster/squad/fix-insider-esm-rework
fix: rename lib/rework.js to .cjs for ESM compat
2 parents 1b1fb08 + 6fdbf06 commit 029728a

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎index.cjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const fs = require('fs');
44
const path = require('path');
55

6-
const { calculatePrRework, calculateReworkSummary } = require('./lib/rework');
6+
const { calculatePrRework, calculateReworkSummary } = require('./lib/rework.cjs');
77

88
const GREEN = '\x1b[32m';
99
const RED = '\x1b[31m';
File renamed without changes.

‎test/rework-rate.test.cjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { execFileSync } = require('child_process');
66
const CLI = path.join(__dirname, '..', 'index.cjs');
77

88
// Import rework calculation functions from the pure module (no CLI side effects)
9-
const { calculatePrRework, calculateReworkSummary } = require(path.join(__dirname, '..', 'lib', 'rework.js'));
9+
const { calculatePrRework, calculateReworkSummary } = require(path.join(__dirname, '..', 'lib', 'rework.cjs'));
1010

1111
describe('calculatePrRework', () => {
1212
it('should return zero rework for PR with no reviews', () => {

0 commit comments

Comments
 (0)