Skip to content
Permalink
Browse files

Fixes path joining

  • Loading branch information...
baflo committed May 7, 2019
1 parent 067d204 commit 27b1921214eb6ebc1613ed3238efe97ca3bd65ad
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/components/root/app-deployment.ts
@@ -1,5 +1,6 @@
import * as fs from "fs";
import { Container } from "inversify-components";
import * as path from "path";
import { componentInterfaces } from "./private-interfaces";
import { CLIDeploymentExtension } from "./public-interfaces";

@@ -14,6 +15,6 @@ export class DeploymentApplication {
public async execute(container: Container): Promise<void> {
// Get all bound deployments and execute them
const deployments = container.inversifyInstance.getAll<CLIDeploymentExtension>(componentInterfaces.deployments);
await Promise.all(deployments.map(deployment => deployment.execute(`${this.buildDir}/${this.buildTimeStamp}`)));
await Promise.all(deployments.map(deployment => deployment.execute(path.join(this.buildDir, this.buildTimeStamp.toString()))));
}
}

0 comments on commit 27b1921

Please sign in to comment.
You can’t perform that action at this time.