@rslint/core 0.0.2 → 0.0.4

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
@@ -1,7 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  const path = require('node:path');
3
3
  const os = require('node:os');
4
+ const fs = require('node:fs');
4
5
  function getBinPath() {
6
+ if (fs.existsSync(path.resolve(__dirname, './rslint'))) {
7
+ return path.resolve(__dirname, './rslint');
8
+ }
5
9
  let platformKey = `${process.platform}-${os.arch()}`;
6
10
  return path.resolve(__dirname, `./rslint-${platformKey}`);
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslint/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "exports": {
5
5
  ".": "./dist/index.js"
6
6
  },
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "build:bin": "go build -v -o bin/rslint ../../cmd/rslint",
10
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",
11
+ "build:linux": "GOOS=linux GOARCH=amd64 go build -o bin/rslint-linux-x64 ../../cmd/rslint",
12
12
  "build:macos": "GOOS=darwin GOARCH=arm64 go build -o bin/rslint-darwin-arm64 ../../cmd/rslint",
13
13
  "build:js": "tsc -b tsconfig.build.json --force",
14
14
  "dev": "tsc -b tsconfig.build.json --force --watch",
package/bin/rslint DELETED
Binary file
File without changes