firefly-compiler 0.5.30 → 0.5.31

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.
@@ -206,11 +206,12 @@ internalWindowsWhere(
206
206
  ): Option[String] {
207
207
  if(!command.all {c => c.isAsciiLetterOrDigit() || c == '_' || c == '-'}) {None} else:
208
208
  let out = system.execute(
209
- cmd,
210
- ["/c", "where", command],
209
+ "where",
210
+ [command],
211
211
  directory = directory
212
212
  environment = environment
213
213
  windowsWhere = False
214
+ shell = True
214
215
  )
215
216
  out.standardOut.toString().lines().filter {line =>
216
217
  out.exitCode == 0 && line.split('\\').last().any {_.contains(".")}
@@ -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, false);
138
+ const out_ = ff_core_NodeSystem.NodeSystem_execute(system_, "where", [command_], ff_core_Buffer.new_(0, false), directory_, environment_, 16777216, 9, false, true);
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, false, $task));
174
+ const out_ = (await ff_core_NodeSystem.NodeSystem_execute$(system_, "where", [command_], ff_core_Buffer.new_(0, false), directory_, environment_, 16777216, 9, false, true, $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, ".")
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.30",
7
+ "version": "0.5.31",
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.30",
7
+ "version": "0.5.31",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"