Skip to content

Commit

Permalink
Windows paths should use forward slash (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Memering authored and mbleigh committed Aug 15, 2018
1 parent e0a4bb6 commit bff66a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fixed - Windows path separator should use a forward slash.
7 changes: 3 additions & 4 deletions lib/deploy/hosting/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,10 @@ class Uploader {
}

addHash(filePath, hash) {
const npath = path.relative(this.public, path.resolve(this.public, filePath));
this.hashMap[hash] = npath;
this.pathMap[npath] = hash;
this.hashMap[hash] = filePath;
this.pathMap[filePath] = hash;

this.populateBatch["/" + npath] = hash;
this.populateBatch["/" + filePath] = hash;
this.populateCount++;

const curBatchSize = size(this.populateBatch);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase-tools",
"version": "4.1.0",
"version": "4.1.1",
"description": "Command-Line Interface for Firebase",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit bff66a3

Please sign in to comment.