Skip to content

Commit

Permalink
fix: resolve to absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Jan 15, 2017
1 parent b48244d commit c497465
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cmd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export default async function build(
showReadyMessage = true,
}: BuildCmdOptions = {}
): Promise<ExtensionBuildResult> {
fileFilter.addToIgnoreList([...ignoreFiles, artifactsDir]);

fileFilter.addToIgnoreList([
...ignoreFiles,
artifactsDir,
].map((file) => path.resolve(sourceDir, file)));

const rebuildAsNeeded = asNeeded; // alias for `build --as-needed`
log.info(`Building web extension from ${sourceDir}`);
Expand Down

0 comments on commit c497465

Please sign in to comment.