Skip to content
Permalink
Browse files

Minor path fix

  • Loading branch information...
ncave authored and alfonsogarciacaro committed Feb 14, 2019
1 parent d1c14e2 commit f788de2a5546601ff536c0ee54a978f60bc4b2c8
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/fable-compiler-js/src/app.fs
  2. +1 −1 src/fable-standalone/test/bench-compiler/app.fs
@@ -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)
@@ -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)

0 comments on commit f788de2

Please sign in to comment.
You can’t perform that action at this time.