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