@rslint/core 0.6.0 → 0.6.1

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.
package/bin/rslint.cjs CHANGED
@@ -42,10 +42,14 @@ async function main() {
42
42
  pathToFileURL(path.resolve(__dirname, '../dist/cli.js')).href
43
43
  );
44
44
  const exitCode = await run(binPath, process.argv.slice(2), startTime);
45
- process.exit(exitCode);
45
+ // process.exit() would tear down before async-buffered stdout writes (pipes,
46
+ // Windows TTYs) flush, truncating the lint tail. Setting exitCode lets the
47
+ // event loop drain naturally; run()'s cleanup guarantees nothing keeps it
48
+ // alive.
49
+ process.exitCode = exitCode;
46
50
  }
47
51
 
48
52
  main().catch((err) => {
49
53
  process.stderr.write(`rslint: ${err}\n`);
50
- process.exit(1);
54
+ process.exitCode = 1;
51
55
  });
package/dist/0~engine.js CHANGED
@@ -261,6 +261,7 @@ const SIGNAL_EXIT_CODES = {
261
261
  async function runEngine(opts) {
262
262
  const stdout = opts.stdout ?? process.stdout;
263
263
  const stderr = opts.stderr ?? process.stderr;
264
+ const stdoutIsTTY = true === stdout.isTTY;
264
265
  const child = spawn(opts.binPath, opts.goArgs, {
265
266
  stdio: [
266
267
  'pipe',
@@ -356,7 +357,7 @@ async function runEngine(opts) {
356
357
  configs: opts.configs,
357
358
  eslintPlugins: opts.eslintPluginEntries,
358
359
  runtime: {
359
- forceColor: opts.runtime?.forceColor,
360
+ stdoutIsTTY,
360
361
  singleThreaded: opts.runtime?.singleThreaded
361
362
  }
362
363
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslint/core",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "@typescript/source": "./src/index.ts",
@@ -66,7 +66,7 @@
66
66
  "globals": "17.6.0",
67
67
  "tinyglobby": "0.2.15",
68
68
  "typescript": "5.9.3",
69
- "@rslint/api": "0.6.0"
69
+ "@rslint/api": "0.6.1"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "jiti": "^2.0.0"
@@ -77,18 +77,18 @@
77
77
  }
78
78
  },
79
79
  "optionalDependencies": {
80
- "@rslint/native-darwin-arm64": "0.6.0",
81
- "@rslint/native-darwin-x64": "0.6.0",
82
- "@rslint/native-linux-x64-gnu": "0.6.0",
83
- "@rslint/native-linux-arm64-gnu": "0.6.0",
84
- "@rslint/native-linux-arm64-musl": "0.6.0",
85
- "@rslint/native-win32-arm64-msvc": "0.6.0",
86
- "@rslint/native-linux-x64-musl": "0.6.0",
87
- "@rslint/native-win32-x64-msvc": "0.6.0"
80
+ "@rslint/native-darwin-arm64": "0.6.1",
81
+ "@rslint/native-darwin-x64": "0.6.1",
82
+ "@rslint/native-linux-arm64-gnu": "0.6.1",
83
+ "@rslint/native-linux-x64-gnu": "0.6.1",
84
+ "@rslint/native-linux-x64-musl": "0.6.1",
85
+ "@rslint/native-linux-arm64-musl": "0.6.1",
86
+ "@rslint/native-win32-arm64-msvc": "0.6.1",
87
+ "@rslint/native-win32-x64-msvc": "0.6.1"
88
88
  },
89
89
  "dependencies": {
90
90
  "picomatch": "4.0.4",
91
- "@rslint/native": "0.6.0"
91
+ "@rslint/native": "0.6.1"
92
92
  },
93
93
  "scripts": {
94
94
  "build:bin": "go build -v -o bin/ ../../cmd/rslint",