Skip to content

Commit 1c50c37

Browse files
committed
replacing std-in package with native node
1 parent 2699690 commit 1c50c37

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

babel.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// babel.config.js
22
module.exports = {
33
presets: [
4-
['@babel/preset-env', {targets: {node: 'current'}}],
4+
['@babel/preset-env', {
5+
modules: false,
6+
targets: {node: 'current'},
7+
}],
58
'@babel/preset-typescript',
69
],
7-
};
10+
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"commander": "^8.2.0",
4242
"typescript": "^4.4.3",
4343
"@aivenio/tsc-output-parser": "^2.1.1",
44-
"codeclimate-types": "^0.3.1",
45-
"get-stdin": "^9.0.0"
44+
"codeclimate-types": "^0.3.1"
4645
}
4746
}

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
import { Command } from "commander";
4-
import getStdin from "get-stdin";
4+
import { text } from "node:stream/consumers";
55
import format from "./format";
66
import filter from "./filter";
77

@@ -14,7 +14,7 @@ program
1414
program.parse(process.argv);
1515
const options = program.opts();
1616

17-
getStdin().then((stdIn) => {
17+
text(process.stdin).then((stdIn) => {
1818
let output = format(stdIn);
1919

2020
if (options.exclude) {

0 commit comments

Comments
 (0)