Skip to content

Commit

Permalink
Clean up some more
Browse files Browse the repository at this point in the history
  • Loading branch information
sodic committed Nov 15, 2024
1 parent feb183a commit 7eebc4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waspc/cli/src/Wasp/Cli/Command/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ build = do
removeAllMentionsOfWaspConfig :: Value -> Value
removeAllMentionsOfWaspConfig packageLockJsonObject =
packageLockJsonObject
& key "packages" . _Object %~ HM.filterWithKey packageNameDoesntMentionWaspConfig
& key "packages" . key "" %~ removeWaspConfigDevDependency
where
packageNameDoesntMentionWaspConfig package _ = not ("wasp-config" `isInfixOf` package)
& key "packages" . _Object
%~ HM.filterWithKey
(\packageKey _ -> not ("wasp-config" `isInfixOf` packageKey))

removeWaspConfigDevDependency :: Value -> Value
removeWaspConfigDevDependency original =
Expand Down

0 comments on commit 7eebc4c

Please sign in to comment.