firefly-compiler 0.5.28 → 0.5.29

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.
@@ -73,7 +73,9 @@ processNodeModules(system: NodeSystem, jsPathFile: Path, packagePath: Path, info
73
73
  let packageJson = includePath.slash("package.json")
74
74
  if(!nodeModules.exists() && packageJson.exists()) {
75
75
  system.writeErrorLine("Running npm install --no-package-lock --no-bin-links in " + includePath.absolute())
76
- system.execute("npm", ["install", "--no-package-lock", "--no-bin-links"], directory = Some(includePath))
76
+ system.execute("npm", [
77
+ "install", "--no-package-lock", "--no-bin-links"
78
+ ], directory = Some(includePath), shell = True)
77
79
  }
78
80
  }
79
81
  }
@@ -107,6 +107,7 @@ extend self: NodeSystem {
107
107
  maxBuffer: Int = 16777216
108
108
  killSignal: Int = 9
109
109
  windowsWhere: Bool = True
110
+ shell: Bool = False
110
111
  ): ProcessResult
111
112
  target node async """
112
113
  import * as childProcess from 'node:child_process';
@@ -130,6 +131,7 @@ extend self: NodeSystem {
130
131
  signal: $task.controller.signal,
131
132
  killSignal: killSignal_,
132
133
  env: environment,
134
+ shell: shell_
133
135
  });
134
136
 
135
137
  let size = 0;
@@ -172,7 +172,7 @@ const nodeModules_ = ff_core_Path.Path_slash(includePath_, "node_modules");
172
172
  const packageJson_ = ff_core_Path.Path_slash(includePath_, "package.json");
173
173
  if(((!ff_core_Path.Path_exists(nodeModules_, false, false, false)) && ff_core_Path.Path_exists(packageJson_, false, false, false))) {
174
174
  ff_core_NodeSystem.NodeSystem_writeErrorLine(system_, ("Running npm install --no-package-lock --no-bin-links in " + ff_core_Path.Path_absolute(includePath_)));
175
- ff_core_NodeSystem.NodeSystem_execute(system_, "npm", ["install", "--no-package-lock", "--no-bin-links"], ff_core_Buffer.new_(0, false), ff_core_Option.Some(includePath_), ff_core_Option.None(), 16777216, 9, true)
175
+ ff_core_NodeSystem.NodeSystem_execute(system_, "npm", ["install", "--no-package-lock", "--no-bin-links"], ff_core_Buffer.new_(0, false), ff_core_Option.Some(includePath_), ff_core_Option.None(), 16777216, 9, true, true)
176
176
  }
177
177
  }
178
178
  }
@@ -386,7 +386,7 @@ const nodeModules_ = (await ff_core_Path.Path_slash$(includePath_, "node_modules
386
386
  const packageJson_ = (await ff_core_Path.Path_slash$(includePath_, "package.json", $task));
387
387
  if(((!(await ff_core_Path.Path_exists$(nodeModules_, false, false, false, $task))) && (await ff_core_Path.Path_exists$(packageJson_, false, false, false, $task)))) {
388
388
  (await ff_core_NodeSystem.NodeSystem_writeErrorLine$(system_, ("Running npm install --no-package-lock --no-bin-links in " + (await ff_core_Path.Path_absolute$(includePath_, $task))), $task));
389
- (await ff_core_NodeSystem.NodeSystem_execute$(system_, "npm", ["install", "--no-package-lock", "--no-bin-links"], ff_core_Buffer.new_(0, false), ff_core_Option.Some(includePath_), ff_core_Option.None(), 16777216, 9, true, $task))
389
+ (await ff_core_NodeSystem.NodeSystem_execute$(system_, "npm", ["install", "--no-package-lock", "--no-bin-links"], ff_core_Buffer.new_(0, false), ff_core_Option.Some(includePath_), ff_core_Option.None(), 16777216, 9, true, true, $task))
390
390
  }
391
391
  }
392
392
  }
@@ -135,7 +135,7 @@ return ((ff_core_Char.Char_isAsciiLetterOrDigit(c_) || (c_ === 95)) || (c_ === 4
135
135
  })))) {
136
136
  return ff_core_Option.None()
137
137
  } else {
138
- const out_ = ff_core_NodeSystem.NodeSystem_execute(system_, cmd_, ["/c", "where", command_], ff_core_Buffer.new_(0, false), directory_, environment_, 16777216, 9, false);
138
+ const out_ = ff_core_NodeSystem.NodeSystem_execute(system_, cmd_, ["/c", "where", command_], ff_core_Buffer.new_(0, false), directory_, environment_, 16777216, 9, false, false);
139
139
  return ff_core_List.List_first(ff_core_List.List_filter(ff_core_String.String_lines(ff_core_Buffer.Buffer_toString(out_.standardOut_, "utf8")), ((line_) => {
140
140
  return ((out_.exitCode_ === 0) && ff_core_Option.Option_any(ff_core_List.List_last(ff_core_String.String_split(line_, 92)), ((_w1) => {
141
141
  return ff_core_String.String_contains(_w1, ".")
@@ -171,7 +171,7 @@ return ((ff_core_Char.Char_isAsciiLetterOrDigit(c_) || (c_ === 95)) || (c_ === 4
171
171
  })))) {
172
172
  return ff_core_Option.None()
173
173
  } else {
174
- const out_ = (await ff_core_NodeSystem.NodeSystem_execute$(system_, cmd_, ["/c", "where", command_], ff_core_Buffer.new_(0, false), directory_, environment_, 16777216, 9, false, $task));
174
+ const out_ = (await ff_core_NodeSystem.NodeSystem_execute$(system_, cmd_, ["/c", "where", command_], ff_core_Buffer.new_(0, false), directory_, environment_, 16777216, 9, false, false, $task));
175
175
  return ff_core_List.List_first(ff_core_List.List_filter(ff_core_String.String_lines(ff_core_Buffer.Buffer_toString(out_.standardOut_, "utf8")), ((line_) => {
176
176
  return ((out_.exitCode_ === 0) && ff_core_Option.Option_any(ff_core_List.List_last(ff_core_String.String_split(line_, 92)), ((_w1) => {
177
177
  return ff_core_String.String_contains(_w1, ".")
@@ -276,7 +276,7 @@ export function NodeSystem_environment(self_) {
276
276
  throw new Error('Function NodeSystem_environment is missing on this target in sync context.');
277
277
  }
278
278
 
279
- export function NodeSystem_execute(self_, command_, arguments_, standardIn_ = ff_core_Buffer.new_(0), directory_ = ff_core_Option.None(), environment_ = ff_core_Option.None(), maxBuffer_ = 16777216, killSignal_ = 9, windowsWhere_ = true) {
279
+ export function NodeSystem_execute(self_, command_, arguments_, standardIn_ = ff_core_Buffer.new_(0), directory_ = ff_core_Option.None(), environment_ = ff_core_Option.None(), maxBuffer_ = 16777216, killSignal_ = 9, windowsWhere_ = true, shell_ = false) {
280
280
  throw new Error('Function NodeSystem_execute is missing on this target in sync context.');
281
281
  }
282
282
 
@@ -390,7 +390,7 @@ export async function NodeSystem_environment$(self_, $task) {
390
390
 
391
391
  }
392
392
 
393
- export async function NodeSystem_execute$(self_, command_, arguments_, standardIn_ = ff_core_Buffer.new_(0), directory_ = ff_core_Option.None(), environment_ = ff_core_Option.None(), maxBuffer_ = 16777216, killSignal_ = 9, windowsWhere_ = true, $task) {
393
+ export async function NodeSystem_execute$(self_, command_, arguments_, standardIn_ = ff_core_Buffer.new_(0), directory_ = ff_core_Option.None(), environment_ = ff_core_Option.None(), maxBuffer_ = 16777216, killSignal_ = 9, windowsWhere_ = true, shell_ = false, $task) {
394
394
 
395
395
  const childProcess = import$3;
396
396
  const environment = environment_.value_ !== void 0 ? {} : process.env;
@@ -413,6 +413,7 @@ export async function NodeSystem_execute$(self_, command_, arguments_, standardI
413
413
  signal: $task.controller.signal,
414
414
  killSignal: killSignal_,
415
415
  env: environment,
416
+ shell: shell_
416
417
  });
417
418
 
418
419
  let size = 0;
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.28",
7
+ "version": "0.5.29",
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.28",
7
+ "version": "0.5.29",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"