@rslint/core 0.0.6 → 0.0.7

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.
Binary file
Binary file
package/bin/rslint.cjs CHANGED
@@ -8,13 +8,21 @@ function getBinPath() {
8
8
  }
9
9
  let platformKey = `${process.platform}-${os.arch()}`;
10
10
  return path.resolve(__dirname, `./rslint-${platformKey}`);
11
-
12
11
  }
13
12
  function main() {
14
13
  const binPath = getBinPath();
15
- require('child_process').execFileSync(binPath, process.argv.slice(2), {
16
- stdio: 'inherit',
17
- });
14
+ try {
15
+ require('child_process').execFileSync(binPath, process.argv.slice(2), {
16
+ stdio: 'inherit',
17
+ });
18
+ } catch (error) {
19
+ // Preserve the exit code from the child process
20
+ if (error.status !== undefined) {
21
+ process.exit(error.status);
22
+ } else {
23
+ console.error(`Failed to execute ${binPath}: ${error.message}`);
24
+ process.exit(1);
25
+ }
26
+ }
18
27
  }
19
28
  main();
20
-
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@rslint/core",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "exports": {
5
- ".": "./dist/index.js"
5
+ ".": "./dist/index.js",
6
+ "./package.json": "./package.json"
6
7
  },
7
8
  "type": "module",
8
9
  "scripts": {