Skip to content

Commit e45a7fb

Browse files
committed
always use POSIX path sep / even under Windows
reason: consistency; passing test
1 parent 7816af0 commit e45a7fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/command.ls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ switch
202202
filename = output-filename source, json
203203
dir = path.dirname source
204204
if o.output
205-
dir = path.join that, dir.slice if base is '.' then 0 else base.length
206-
js-path = path.join dir, filename
205+
dir = path.posix.join that, dir.slice if base is '.' then 0 else base.length
206+
js-path = path.posix.join dir, filename
207207
!function compile
208208
e <-! fs.write-file js-path, js.to-string! || '\n'
209209
return warn e if e

0 commit comments

Comments
 (0)