-
-
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
TS Config cleanup 3 #2410
base: filip-ts-config-cleanup-2
Are you sure you want to change the base?
TS Config cleanup 3 #2410
Conversation
waspc/src/Wasp/Project/WaspFile.hs
Outdated
-- We're using tsc to compile the *.wasp.ts file into a JS file. | ||
-- | ||
-- The compilation rules mostly come from tsconfig.wasp.json but also | ||
-- include several overrides: | ||
-- - We don't keep all the rules in tsconfig.wasp.json because it | ||
-- would give users a way to break things. | ||
-- - We don't keep all the rules here (inline) because users would | ||
-- suffer bad DX (no IDE support in *.wasp.ts file). | ||
[ "tsc", | ||
"-p", | ||
fromAbsFile (waspProjectDir </> tsconfigNodeFileInWaspProjectDir), | ||
-- The tsconfig.wasp.json file has the noEmit flag on. | ||
-- The file only exists IDE support, and we don't want users to | ||
-- accidentally chage the outDir. | ||
-- | ||
-- Here, to actually generate the JS file in the desired location, | ||
-- we must turn off the noEmit flag and specify the outDir. |
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.
Original discussion: #2276 (comment)
getModelNames :: Schema -> [String] | ||
getModelNames schema = map Model.getName $ getModels schema |
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.
Discussed here: #2276 (comment)
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.
LGTM
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.
Approved! But left one comment, check it out please.
Fixing stuff from #2276 and personal notes.