Skip to content

Commit b3809f9

Browse files
committed
refactor: remove babel transpilation
This removes the babel transpiler and refactors the code to be compatible with commonjs imports. Test: npm test Test: echo "foo\nfoobar\nbar" | ./src/cli.js grep 'foo' Test: echo "foo\nfoobar\nbar" | ./src/cli.js sed 's/foo/bar/' Test: ./src/cli.js grep 'foo' ~/foobartest.txt Test: ./src/cli.js sed 's/foo/bar/' ~/foobartest.txt
1 parent bd48247 commit b3809f9

File tree

12 files changed

+3336
-13449
lines changed

12 files changed

+3336
-13449
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
node-version: ${{ matrix.node-version }}
2525
- run: npm install
2626
- run: npm run test
27-
- run: npm run build
2827
- run: npm run check-node-support
2928
- name: Upload coverage reports to Codecov
3029
uses: codecov/codecov-action@v4

.mocharc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// https://mochajs.org/#configuring-mocha-nodejs
22
module.exports = {
3-
require: ['babel-register'], // Transpile files using Babel
43
recursive: true,
54
};

0 commit comments

Comments
 (0)