firefly-compiler 0.5.89 → 0.5.91

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,17 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  const path = require('path');
3
- const { execSync } = require('child_process');
3
+ const { spawnSync } = require('child_process');
4
4
 
5
5
  const fireflyLink = path.resolve(__dirname, '../');
6
- process.env.NODE_PATH = `${fireflyLink}/node_modules${path.delimiter}${process.env.NODE_PATH || ''}`;
6
+ const env = {
7
+ ...process.env,
8
+ NODE_PATH: path.join(fireflyLink, 'node_modules'),
9
+ }
7
10
 
8
11
  const args = process.argv.slice(2);
9
12
  const compilerPath = path.join(fireflyLink, 'output/js/ff/compiler/Main.run.mjs');
10
13
 
11
14
  try {
12
- execSync(`node --enable-source-maps --harmony-temporal "${compilerPath}" ${args.join(' ')}`, {
15
+ spawnSync('node', [
16
+ '--enable-source-maps',
17
+ '--harmony-temporal',
18
+ compilerPath,
19
+ ...args
20
+ ], {
13
21
  stdio: 'inherit',
14
- env: process.env,
22
+ env: env,
15
23
  });
16
24
  } catch (error) {
17
25
  process.exit(error.status || 1);
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.89",
7
+ "version": "0.5.91",
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.89",
7
+ "version": "0.5.91",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
Binary file