@rslint/core 0.0.1 → 0.0.2
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/README.md +2 -1
- package/bin/rslint +0 -0
- package/bin/rslint-darwin-arm64 +0 -0
- package/bin/rslint-linux-amd64 +0 -0
- package/bin/rslint.cjs +16 -0
- package/package.json +23 -7
- package/index.js +0 -1
package/README.md
CHANGED
package/bin/rslint
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/rslint.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const path = require('node:path');
|
|
3
|
+
const os = require('node:os');
|
|
4
|
+
function getBinPath() {
|
|
5
|
+
let platformKey = `${process.platform}-${os.arch()}`;
|
|
6
|
+
return path.resolve(__dirname, `./rslint-${platformKey}`);
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
function main() {
|
|
10
|
+
const binPath = getBinPath();
|
|
11
|
+
require('child_process').execFileSync(binPath, process.argv.slice(2), {
|
|
12
|
+
stdio: 'inherit',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
main();
|
|
16
|
+
|
package/package.json
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rslint/core",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"exports": {
|
|
5
|
+
".": "./dist/index.js"
|
|
6
|
+
},
|
|
7
|
+
"type": "module",
|
|
5
8
|
"scripts": {
|
|
6
|
-
"build": "go build -o bin/rslint ../../cmd/
|
|
9
|
+
"build:bin": "go build -v -o bin/rslint ../../cmd/rslint",
|
|
10
|
+
"build:all": "pnpm build:linux && pnpm build:macos",
|
|
11
|
+
"build:linux": "GOOS=linux GOARCH=amd64 go build -o bin/rslint-linux-amd64 ../../cmd/rslint",
|
|
12
|
+
"build:macos": "GOOS=darwin GOARCH=arm64 go build -o bin/rslint-darwin-arm64 ../../cmd/rslint",
|
|
13
|
+
"build:js": "tsc -b tsconfig.build.json --force",
|
|
14
|
+
"dev": "tsc -b tsconfig.build.json --force --watch",
|
|
15
|
+
"build": "pnpm build:bin && pnpm build:js",
|
|
16
|
+
"test": "node --test 'tests/**.test.mjs'",
|
|
17
|
+
"test:update": "node --test --test-update-snapshots 'tests/**.test.mjs'"
|
|
7
18
|
},
|
|
8
|
-
"files": [
|
|
19
|
+
"files": [
|
|
20
|
+
"bin/"
|
|
21
|
+
],
|
|
9
22
|
"bin": {
|
|
10
|
-
"rslint": "./bin/rslint"
|
|
23
|
+
"rslint": "./bin/rslint.cjs"
|
|
11
24
|
},
|
|
12
25
|
"publishConfig": {
|
|
13
26
|
"access": "public"
|
|
14
27
|
},
|
|
15
|
-
|
|
16
28
|
"license": "MIT",
|
|
17
29
|
"description": "rslint cli",
|
|
18
30
|
"publisher": "rslint",
|
|
@@ -21,5 +33,9 @@
|
|
|
21
33
|
"linter",
|
|
22
34
|
"typescript",
|
|
23
35
|
"go"
|
|
24
|
-
]
|
|
36
|
+
],
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "24.0.14",
|
|
39
|
+
"typescript": "5.8.3"
|
|
40
|
+
}
|
|
25
41
|
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log('No JavaScript API yet')
|