Skip to content

Commit

Permalink
Use forward slash in globs on all platforms (#129)
Browse files Browse the repository at this point in the history
Using `path.join` returns paths with backward slashes on Windows causing `hashOfOutput` to return zero results.
  • Loading branch information
bweggersen committed Nov 6, 2019
1 parent 4056942 commit ee6481a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/hasher/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as path from "path";

import { logger } from "backfill-logger";
import { outputFolderAsArray } from "backfill-config";

Expand Down Expand Up @@ -105,8 +103,8 @@ export class Hasher implements IHasher {
}

public async hashOfOutput(): Promise<string> {
const outputFolderGlob = outputFolderAsArray(this.outputFolder).map(p =>
path.join(p, "**")
const outputFolderGlob = outputFolderAsArray(this.outputFolder).map(
p => `${p}/**`
);

return generateHashOfFiles(this.packageRoot, outputFolderGlob);
Expand Down

0 comments on commit ee6481a

Please sign in to comment.