@rslint/core 0.1.5 → 0.1.6
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 +3 -0
- package/package.json +11 -7
package/bin/rslint.cjs
CHANGED
|
@@ -6,6 +6,9 @@ function getBinPath() {
|
|
|
6
6
|
if (fs.existsSync(path.resolve(__dirname, './rslint'))) {
|
|
7
7
|
return path.resolve(__dirname, './rslint');
|
|
8
8
|
}
|
|
9
|
+
if (fs.existsSync(path.resolve(__dirname, './rslint.exe'))) {
|
|
10
|
+
return path.resolve(__dirname, './rslint.exe');
|
|
11
|
+
}
|
|
9
12
|
let platformKey = `${process.platform}-${os.arch()}`;
|
|
10
13
|
|
|
11
14
|
return require.resolve(`@rslint/${platformKey}/rslint`);
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rslint/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": "./dist/index.js",
|
|
6
6
|
"./bin": "./bin/rslint.cjs",
|
|
7
7
|
"./package.json": "./package.json"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/web-infra-dev/rslint"
|
|
13
|
+
},
|
|
10
14
|
"files": [
|
|
11
15
|
"bin/rslint.cjs"
|
|
12
16
|
],
|
|
@@ -30,12 +34,12 @@
|
|
|
30
34
|
"typescript": "5.8.3"
|
|
31
35
|
},
|
|
32
36
|
"optionalDependencies": {
|
|
33
|
-
"@rslint/darwin-arm64": "0.1.
|
|
34
|
-
"@rslint/linux-
|
|
35
|
-
"@rslint/
|
|
36
|
-
"@rslint/
|
|
37
|
-
"@rslint/win32-x64": "0.1.
|
|
38
|
-
"@rslint/
|
|
37
|
+
"@rslint/darwin-arm64": "0.1.6",
|
|
38
|
+
"@rslint/linux-x64": "0.1.6",
|
|
39
|
+
"@rslint/win32-arm64": "0.1.6",
|
|
40
|
+
"@rslint/linux-arm64": "0.1.6",
|
|
41
|
+
"@rslint/win32-x64": "0.1.6",
|
|
42
|
+
"@rslint/darwin-x64": "0.1.6"
|
|
39
43
|
},
|
|
40
44
|
"scripts": {
|
|
41
45
|
"build:bin": "go build -v -o bin/rslint ../../cmd/rslint",
|