oxlint 0.15.7 → 0.15.8

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/bin/oxlint +6 -7
  2. package/package.json +10 -10
package/bin/oxlint CHANGED
@@ -20,7 +20,7 @@ const isMuslFromFilesystem = () => {
20
20
  const { readFileSync } = require("fs");
21
21
  try {
22
22
  return readFileSync("/usr/bin/ldd", "utf-8").includes("musl");
23
- } catch {
23
+ } catch(_error) {
24
24
  return null;
25
25
  }
26
26
  };
@@ -91,9 +91,9 @@ const PLATFORMS = {
91
91
  };
92
92
 
93
93
  let binPath = (
94
- PLATFORMS &&
95
- PLATFORMS[platform] &&
96
- PLATFORMS[platform][arch] &&
94
+ PLATFORMS &&
95
+ PLATFORMS[platform] &&
96
+ PLATFORMS[platform][arch] &&
97
97
  PLATFORMS[platform][arch][isMusl() ? "musl" : "gnu"]
98
98
  ) || null;
99
99
 
@@ -104,12 +104,11 @@ if (binPath) {
104
104
  {
105
105
  shell: false,
106
106
  stdio: "inherit",
107
- env: {
108
- ...env,
107
+ env: Object.assign({}, env, {
109
108
  JS_RUNTIME_VERSION: version,
110
109
  JS_RUNTIME_NAME: release.name,
111
110
  NODE_PACKAGE_MANAGER: detectPackageManager(),
112
- },
111
+ }),
113
112
  }
114
113
  );
115
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint",
3
- "version": "0.15.7",
3
+ "version": "0.15.8",
4
4
  "description": "Linter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [],
6
6
  "author": "Boshen and oxc contributors",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/sponsors/Boshen"
21
21
  },
22
22
  "engines": {
23
- "node": ">=14.*"
23
+ "node": ">=8.*"
24
24
  },
25
25
  "files": [
26
26
  "bin/oxlint",
@@ -29,13 +29,13 @@
29
29
  "README.md"
30
30
  ],
31
31
  "optionalDependencies": {
32
- "@oxlint/win32-x64": "0.15.7",
33
- "@oxlint/win32-arm64": "0.15.7",
34
- "@oxlint/linux-x64-gnu": "0.15.7",
35
- "@oxlint/linux-arm64-gnu": "0.15.7",
36
- "@oxlint/linux-x64-musl": "0.15.7",
37
- "@oxlint/linux-arm64-musl": "0.15.7",
38
- "@oxlint/darwin-x64": "0.15.7",
39
- "@oxlint/darwin-arm64": "0.15.7"
32
+ "@oxlint/win32-x64": "0.15.8",
33
+ "@oxlint/win32-arm64": "0.15.8",
34
+ "@oxlint/linux-x64-gnu": "0.15.8",
35
+ "@oxlint/linux-arm64-gnu": "0.15.8",
36
+ "@oxlint/linux-x64-musl": "0.15.8",
37
+ "@oxlint/linux-arm64-musl": "0.15.8",
38
+ "@oxlint/darwin-x64": "0.15.8",
39
+ "@oxlint/darwin-arm64": "0.15.8"
40
40
  }
41
41
  }