oxlint-tui 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tui.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-tui",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A Node TUI Oxlint rules and configuration browser",
5
5
  "type": "module",
6
6
  "bin": {
package/tui.js CHANGED
@@ -6,6 +6,7 @@ import readline from "readline";
6
6
  import fs from "node:fs";
7
7
 
8
8
  const OXLINT_VERSION = "1.41.0";
9
+ const TSGOLINT_VERSION = "0.11.1";
9
10
 
10
11
  const COLORS = {
11
12
  reset: "\x1b[0m",
@@ -90,7 +91,9 @@ function runLint(type_aware) {
90
91
  state.messageType = "info";
91
92
  render();
92
93
 
93
- const cmd = `npx -p oxlint@${OXLINT_VERSION} ${type_aware ? "-p oxlint-tsgolint@latest oxlint --type-aware" : "oxlint"}`;
94
+ const cmd = type_aware
95
+ ? `npx --yes -p oxlint@${OXLINT_VERSION} -p oxlint-tsgolint@${TSGOLINT_VERSION} oxlint --type-aware`
96
+ : `npx --yes oxlint@${OXLINT_VERSION}`;
94
97
 
95
98
  exec(cmd, (error, stdout, stderr) => {
96
99
  const fullOutput = stdout + stderr;