mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-24 11:44:51 +03:00
Fixed redundant ./ in page imports.
This commit is contained in:
parent
fa05eed363
commit
c2ac122272
@ -10,18 +10,14 @@ import {= what =} from "{= from =}"
|
||||
import * as {= entityLowerName =}State from '{= entityStatePath =}'
|
||||
import * as {= entityLowerName =}Actions from '{= entityActionsPath =}'
|
||||
import {= entity.name =} from '{= entityClassPath =}'
|
||||
|
||||
{=! Imports of entity create forms =}
|
||||
{=# entityCreateForms =}
|
||||
import {= entityForm.name =} from '{= path =}'
|
||||
{=/ entityCreateForms =}
|
||||
|
||||
{=! Imports of entity lists =}
|
||||
{=# entityLists =}
|
||||
import {= entityList.name =} from '{= path =}'
|
||||
{=/ entityLists =}
|
||||
|
||||
{=/ entities =}
|
||||
|
||||
{=# pageStylePath =}
|
||||
import '{= pageStylePath =}'
|
||||
{=/ pageStylePath =}
|
||||
|
@ -109,7 +109,7 @@ relPathFromPageToSrc = Path.reversePath pageDirPathInSrc
|
||||
-- NOTE: Here we return FilePath instead of Path because we need stuff like "./" or "../" in the path,
|
||||
-- which Path would normalize away.
|
||||
buildImportPathFromPathInSrc :: Path.Path Path.Rel a -> FilePath
|
||||
buildImportPathFromPathInSrc pathInSrc = "." FP.</> relPathFromPageToSrc FP.</> (Path.toFilePath pathInSrc)
|
||||
buildImportPathFromPathInSrc pathInSrc = relPathFromPageToSrc FP.</> (Path.toFilePath pathInSrc)
|
||||
|
||||
-- Returns file draft(s) that need to be created (if any) +
|
||||
-- file path via which to import the style (relative to generated src dir).
|
||||
|
Loading…
Reference in New Issue
Block a user