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

Make Wasp TS Config projects work with TS project references #2461

Open
wants to merge 3 commits into
base: filip-path-aliases
Choose a base branch
from

Conversation

sodic
Copy link
Contributor

@sodic sodic commented Jan 22, 2025

Extends #2444 support to Wasp TS config projects,

@sodic sodic changed the base branch from main to filip-path-aliases January 22, 2025 10:50
Copy link
Contributor

@infomiho infomiho left a 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.
Copy link
Contributor

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
Copy link
Contributor

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 ++ " ."
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants