-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make Wasp TS Config projects work with TS project references #2461
base: filip-path-aliases
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions, but good to go
@@ -65,25 +66,29 @@ nodeModulesDirInWaspProjectDir :: Path' (Rel WaspProjectDir) (Dir NodeModulesDir | |||
nodeModulesDirInWaspProjectDir = [reldir|node_modules|] | |||
|
|||
-- | NOTE: If you change the depth of this path, also update @waspProjectDirFromProjectRootDir@ below. | |||
-- TODO: Hm this has different name than it has in Generator. | |||
generatedCodeDirInDotWaspDir :: Path' (Rel DotWaspDir) (Dir Wasp.Generator.Common.ProjectRootDir) | |||
-- TODO: Hm this has different name than it has in Generator.Common. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This TODO doesn't seem to provide any value, let's remove it?
buildDirInDotWaspDir = [reldir|build|] | ||
|
||
-- Todo: find a better way to define this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you expand on what do you think could be done better for the folks reading in the future?
@@ -42,7 +42,7 @@ findWaspFile waspDir = do | |||
. (waspDir </>) | |||
<$> find ((suffix `isSuffixOf`) . fromRelFile) files | |||
|
|||
fileNotFoundMessage = "Couldn't find the *.wasp or a *.wasp.ts file in the " ++ fromAbsDir waspDir ++ " directory" | |||
fileNotFoundMessage = "Couldn't find a *.wasp or a *.wasp.ts file in the directory " ++ fromAbsDir waspDir ++ " ." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure about this?
Couldn't find something in the /something/dir directory.
vs.
Couldn't find something in the directory /something/dir.
Extends #2444 support to Wasp TS config projects,