@isograph/compiler 0.0.0-main-4e0a5130 → 0.0.0-main-86e63615

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/cli.js +7 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -7,6 +7,13 @@ var spawn = require('child_process').spawn;
7
7
  var input = process.argv.slice(2);
8
8
 
9
9
  if (bin != null) {
10
+ try {
11
+ // Force 755 (rwxr-xr-x)
12
+ //
13
+ // If Isograph is installed with Bun, the binary isn't always executable.
14
+ chmodSync(bin, 0o755);
15
+ } catch {}
16
+
10
17
  spawn(bin, input, { stdio: 'inherit' }).on('exit', process.exit);
11
18
  } else {
12
19
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/compiler",
3
- "version": "0.0.0-main-4e0a5130",
3
+ "version": "0.0.0-main-86e63615",
4
4
  "description": "Installs the `yarn iso` command, which runs the Isograph compiler.",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "index.js",