firefly-compiler 0.5.91 → 0.5.92

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/firefly.js CHANGED
@@ -1,11 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  const path = require('path');
3
+ const fs = require('fs');
3
4
  const { spawnSync } = require('child_process');
4
5
 
5
6
  const fireflyLink = path.resolve(__dirname, '../');
7
+ const globalNodeModules = path.join(fireflyLink, 'node_modules');
8
+ const localNodeModules = path.join(fireflyLink, '../../node_modules');
6
9
  const env = {
7
10
  ...process.env,
8
- NODE_PATH: path.join(fireflyLink, 'node_modules'),
11
+ NODE_PATH: fs.existsSync(globalNodeModules) ? globalNodeModules : localNodeModules,
9
12
  }
10
13
 
11
14
  const args = process.argv.slice(2);
@@ -23,4 +26,4 @@ try {
23
26
  });
24
27
  } catch (error) {
25
28
  process.exit(error.status || 1);
26
- }
29
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.5.91",
7
+ "version": "0.5.92",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.5.91",
7
+ "version": "0.5.92",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"