Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
windows path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 20, 2016
1 parent b134275 commit 22a8836
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/node-conversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ exports.convertPackage = function(packageConfig, packageName, packageDir, ui) {
entryType: 'both',
directoryFilter: ['!node_modules', '!test', '!.git']
}, function(entry) {
var listingName = entry.path;
var listingName = entry.path.replace(/\\/g, '/');
if (entry.stat.isDirectory())
listingName += '/';
fileTree[listingName] = true;
Expand Down Expand Up @@ -150,7 +150,7 @@ exports.convertPackage = function(packageConfig, packageName, packageDir, ui) {
return Promise.all(Object.keys(fileTree).filter(function(file) {
return file[file.length - 1] != '/';
}).map(function(fileName) {
var filePath = path.resolve(packageDir, fileName);
var filePath = path.resolve(packageDir, fileName).replace(/\\/g, '/');

// when generating meta, set up the empty object now
var fileFormat = systemConfig.format;
Expand Down

0 comments on commit 22a8836

Please sign in to comment.