Skip to content

Commit 41d9c96

Browse files
Add '--' after node eval and before node args (#856)
1 parent d79eeab commit 41d9c96

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.20.7] - 2022-02-12
11+
12+
Bugfixes
13+
- Make `spago run` work when `node-args` includes flag-like value (#856)
14+
1015
## [0.20.6] - 2022-02-09
1116

1217
Bugfixes:

spago.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 2.4
22

33
name: spago
4-
version: 0.20.6
4+
version: 0.20.7
55
description: Please see the README on GitHub at <https://github.com/purescript/spago#readme>
66
homepage: https://github.com/purescript/spago#readme
77
bug-reports: https://github.com/purescript/spago/issues

src/Spago/Build.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ runBackend maybeBackend RunDirectories{ sourceDir, executeDir } moduleName maybe
337337
, unModuleName moduleName
338338
, "').main()"
339339
]
340-
nodeCmd outputPath'= "node -e \"" <> nodeContents outputPath' <> "\" " <> nodeArgs
340+
nodeCmd outputPath'= "node -e \"" <> nodeContents outputPath' <> "\" -- " <> nodeArgs
341341
nodeAction outputPath' = do
342342
-- cd to executeDir in case it isn't the same as sourceDir
343343
logDebug $ "Executing from: " <> displayShow @FilePath executeDir

test/SpagoSpec.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ spec = around_ setup $ do
715715
spago ["install", "node-process", "arrays"] >>= shouldBeSuccess
716716
spago ["build"] >>= shouldBeSuccess
717717
spago ["run", "--node-args", "hello world"] >>= shouldBeSuccessOutput "run-args-output.txt"
718+
spago ["run", "--node-args", "--flagName"] >>= shouldBeSuccess
718719

719720
it "Spago should prefer exec-args" $ do
720721

0 commit comments

Comments
 (0)