Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6824 from ceylon/6823
Browse files Browse the repository at this point in the history
Fix #6823: backslash in require() on Windows
  • Loading branch information
chochos committed Dec 12, 2016
2 parents 886cb63 + ea2f91b commit 0603c37
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -168,7 +168,7 @@ public void resolveModule(final ArtifactResult artifact, final Module module,
if ("npm".equals(artifact.namespace())) {
try {
final File root = ((AbstractRepository)artifact.repository()).getRoot().getContent(File.class);
final String npmPath = artifact.artifact().getAbsolutePath();
final String npmPath = artifact.artifact().getAbsolutePath().replace(File.separator, "/");
((JsonModule)module).setNpmPath(npmPath.substring(root.getAbsolutePath().length()+1));
module.setJsMajor(Versions.JS_BINARY_MAJOR_VERSION);
module.setJsMinor(Versions.JS_BINARY_MINOR_VERSION);
Expand Down

0 comments on commit 0603c37

Please sign in to comment.