Skip to content

Commit

Permalink
replacing std-in package with native node
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-c committed Aug 16, 2024
1 parent 2699690 commit 1c50c37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 5 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// babel.config.js
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
['@babel/preset-env', {
modules: false,
targets: {node: 'current'},
}],
'@babel/preset-typescript',
],
};
};
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"commander": "^8.2.0",
"typescript": "^4.4.3",
"@aivenio/tsc-output-parser": "^2.1.1",
"codeclimate-types": "^0.3.1",
"get-stdin": "^9.0.0"
"codeclimate-types": "^0.3.1"
}
}
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { Command } from "commander";
import getStdin from "get-stdin";
import { text } from "node:stream/consumers";
import format from "./format";
import filter from "./filter";

Expand All @@ -14,7 +14,7 @@ program
program.parse(process.argv);
const options = program.opts();

getStdin().then((stdIn) => {
text(process.stdin).then((stdIn) => {
let output = format(stdIn);

if (options.exclude) {
Expand Down

0 comments on commit 1c50c37

Please sign in to comment.