Skip to content

Commit

Permalink
fix metadata.path on windows
Browse files Browse the repository at this point in the history
thanks to @backflip for pointing out the issue in #1380
  • Loading branch information
patrickkettner committed Nov 27, 2014
1 parent 1d4d5f3 commit 8a13354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generate-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ file.walkSync(viewRoot, function (start, dirs, files) {
metadata.deps = deps;

var baseDir = __dirname.replace(/lib$/, '');
metadata.path = './' + (start + '/' + file).replace(baseDir, '');
metadata.path = './' + (start + '/' + file).replace(baseDir, '').replace(/\\/g, '/');
metadata.amdPath = metadata.path.replace(/^\.\/feature\-detects/, 'test').replace(/\.js$/i, '');

if (!metadata.name) {
Expand Down

0 comments on commit 8a13354

Please sign in to comment.