Skip to content

Commit

Permalink
Reference output one folder up
Browse files Browse the repository at this point in the history
Since we're now compiling this into a `main` folder, we need to
reference files one folder up.
  • Loading branch information
Jurre Stender committed Oct 18, 2021
1 parent d52b45d commit bd668a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Updater {
private readonly apiClient: ApiClient,
private readonly details: JobDetails,
private readonly credentials: Credential[],
private readonly outputPath = '../output/output.json'
private readonly outputPath = '../../output/output.json'
) {
this.docker = new Docker()
}
Expand Down Expand Up @@ -148,8 +148,8 @@ export class Updater {
Memory: 8 * 1024 * 1024 * 1024, // 8GB in bytes
NetworkMode: proxy.networkName,
Binds: [
`${path.join(__dirname, '../output')}:${JOB_OUTPUT_PATH}:rw`,
`${path.join(__dirname, '../repo')}:${REPO_CONTENTS_PATH}:rw`
`${path.join(__dirname, '../../output')}:${JOB_OUTPUT_PATH}:rw`,
`${path.join(__dirname, '../../repo')}:${REPO_CONTENTS_PATH}:rw`
]
}
})
Expand All @@ -161,8 +161,8 @@ export class Updater {
private async cleanup(proxy: Proxy): Promise<void> {
await proxy.shutdown()

const outputDir = path.join(__dirname, '../output')
const repoDir = path.join(__dirname, '../repo')
const outputDir = path.join(__dirname, '../../output')
const repoDir = path.join(__dirname, '../../repo')

if (fs.existsSync(outputDir)) {
fs.rmdirSync(outputDir, {recursive: true})
Expand Down

0 comments on commit bd668a3

Please sign in to comment.