Skip to content

Commit

Permalink
Minor path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ncave authored and alfonsogarciacaro committed Feb 14, 2019
1 parent d1c14e2 commit f788de2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fable-compiler-js/src/app.fs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let rec parseProject (projectPath: string) =
let isAbsolutePath (path: string) = path.StartsWith("/") || path.IndexOf(":") = 1
let trimPath (path: string) = path.Replace("../", "").Replace("./", "").Replace(":", "")
let makePath path = if isAbsolutePath path then path else Path.Combine(projectFileDir, path)
let makeName path = Path.Combine(trimPath projectFileDir, trimPath path)
let makeName path = Path.Combine(projectFileDir, path) |> trimPath

let fileNames = sourceFiles |> Array.map (fun path -> path |> makeName)
let sources = sourceFiles |> Array.map (fun path -> path |> makePath |> readAllText)
Expand Down
2 changes: 1 addition & 1 deletion src/fable-standalone/test/bench-compiler/app.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let rec parseProject projectPath =
let isAbsolutePath (path: string) = path.StartsWith("/") || path.IndexOf(":") = 1
let trimPath (path: string) = path.Replace("../", "").Replace("./", "").Replace(":", "")
let makePath path = if isAbsolutePath path then path else Fable.Path.Combine(projectFileDir, path)
let makeName path = Fable.Path.Combine(trimPath projectFileDir, trimPath path)
let makeName path = Fable.Path.Combine(projectFileDir, path) |> trimPath

let fileNames = sourceFiles |> Array.map (fun path -> path |> makeName)
let sources = sourceFiles |> Array.map (fun path -> path |> makePath |> readAllText)
Expand Down

0 comments on commit f788de2

Please sign in to comment.