Skip to content

Commit

Permalink
Merge pull request #145 from ymtszw/#131_windows_path_workaround
Browse files Browse the repository at this point in the history
[#131] Pass relative paths to elm-test in win32
  • Loading branch information
halohalospecial authored Nov 19, 2018
2 parents 7415d88 + b14175e commit 5f96686
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/elm-make-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ export default class ElmMakeRunner {
}
}
} else {
filePathsToCompile = [editorFilePath];
if (isTestFilePath && process.platform === 'win32') {
// Workaround for https://github.com/halohalospecial/atom-elmjutsu/issues/131#issuecomment-429445645
const relativeEditorFilePath = path.relative(projectDirectory, editorFilePath);
filePathsToCompile = [relativeEditorFilePath];
} else {
filePathsToCompile = [editorFilePath];
}
}

const outputPath = '/dev/null'; // TODO: Make this configurable (elmjutsu-config.json).
Expand Down

0 comments on commit 5f96686

Please sign in to comment.