Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update node deps to next breaking release #1129

Merged
merged 26 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
026bf4f
Update node deps as much as possible
JordanMartinez Dec 3, 2023
9dbed59
Merge branch 'master' into jam/update-node-deps
JordanMartinez Dec 3, 2023
b71a7d2
Update thought2 fork of optparse
JordanMartinez Dec 4, 2023
c980b6f
Merge remote-tracking branch 'origin/master' into jam/update-node-deps
JordanMartinez Dec 4, 2023
7a103d0
Update latest test to use newer execa handling
JordanMartinez Dec 4, 2023
2e213e7
Fix import warning
JordanMartinez Dec 4, 2023
46c45bd
Try using powershell in windows ci
f-f Dec 4, 2023
44172b3
Add verbose flag
JordanMartinez Dec 4, 2023
78dd62a
Merge remote-tracking branch 'origin/master' into jam/update-node-deps
JordanMartinez Dec 4, 2023
a6cdd89
Check chars
JordanMartinez Dec 4, 2023
2c64305
Sanity check parameters
JordanMartinez Dec 4, 2023
38b6cde
Merge remote-tracking branch 'origin/master' into jam/update-node-deps
JordanMartinez Dec 27, 2023
79f7b5e
Merge remote-tracking branch 'origin/master' into jam/update-node-deps
JordanMartinez Dec 27, 2023
595e45f
Update package set; drop unneeded mods
JordanMartinez Dec 27, 2023
fa97e89
Update `packages` dir to `p`
JordanMartinez Jan 10, 2024
ce2531c
Fix import
JordanMartinez Jan 10, 2024
e2bafaa
Increase docs tests' timeout to 5s
JordanMartinez Jan 10, 2024
4672727
Update windows' sources golden output
JordanMartinez Jan 10, 2024
e5121e8
Use spago version's stdout, not stderr
JordanMartinez Jan 10, 2024
0822d3a
Fix formatting
JordanMartinez Jan 11, 2024
583c90b
Cleanup ci files
JordanMartinez Jan 11, 2024
7b4b45d
Wrap ExecaResult in Either
JordanMartinez Jan 12, 2024
3f11ced
Swap code paths
JordanMartinez Jan 12, 2024
3869897
Drop dead code
JordanMartinez Jan 12, 2024
4da3b27
Format
JordanMartinez Jan 12, 2024
0e1aebb
Merge branch 'master' into jam/update-node-deps
f-f Jan 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion core/spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ package:
- newtype
- node-buffer
- node-fs
- node-fs-aff
- node-path
- node-process
- ordered-collections
Expand Down
4 changes: 2 additions & 2 deletions core/src/Log.purs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ logError l = log { level: LogError, content: Ansi.foreground Ansi.Red (toDoc l)
die :: forall a b m u. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => a -> m u
die msg = do
logFailure msg
Effect.liftEffect $ Process.exit 1
Effect.liftEffect $ Process.exit' 1

-- | Same as `die`, but with multiple failures
die' :: forall a b m u. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => Array a -> m u
die' msgs = do
_ <- traverse logFailure msgs
Effect.liftEffect $ Process.exit 1
Effect.liftEffect $ Process.exit' 1

justOrDieWith :: forall a b m x. MonadEffect m => MonadAsk (LogEnv b) m => Loggable a => Maybe x -> a -> m x
justOrDieWith value msg = case value of
Expand Down
1 change: 0 additions & 1 deletion docs-search/index/spago.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package:
- newtype
- node-buffer
- node-fs
- node-fs-aff
- node-process
- ordered-collections
- prelude
Expand Down
2 changes: 1 addition & 1 deletion docs-search/index/src/Docs/Search/IndexBuilder.purs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ withExisting file f = do
logAndExit :: forall a. String -> Effect a
logAndExit message = do
log message
Process.exit 1
Process.exit' 1

showGlobs :: Array String -> String
showGlobs = Array.intercalate ", "
Expand Down
17 changes: 13 additions & 4 deletions docs-search/index/test/Docs/Search/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@ module Test.Docs.Search.Main where

import Prelude

import Data.Identity (Identity(..))
import Data.Maybe (Maybe(..))
import Data.Newtype (un)
import Effect (Effect)
import Effect.Aff (launchAff_)
import Effect.Aff (Milliseconds(..), launchAff_)
import Test.Declarations as Declarations
import Test.IndexBuilder as IndexBuilder
import Test.ModuleIndex as ModuleIndex
import Test.ModuleParser as ModuleParser
import Test.TypeQuery as TypeQuery
import Test.Spec (Spec)
import Test.Spec.Reporter.Console (consoleReporter)
import Test.Spec.Runner (runSpec)
import Test.Spec.Runner (Config, defaultConfig, runSpecT)
import Test.TypeQuery as TypeQuery

testConfig :: Config
testConfig = defaultConfig
{ slow = Milliseconds 2_000.0
, timeout = Just (Milliseconds 5_000.0)
}

main :: Effect Unit
main = launchAff_ $ runSpec [ consoleReporter ] mainTest
main = launchAff_ $ void $ un Identity $ runSpecT testConfig [ consoleReporter ] mainTest

mainTest :: Spec Unit
mainTest = do
Expand Down
Loading
Loading