Skip to content

Commit

Permalink
fix(wb): make optimizeForDockerBuild support judge
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 3, 2023
1 parent 7192381 commit 3a6808e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/wb/src/commands/optimizeForDockerBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ export const optimizeForDockerBuildCommand: CommandModule<unknown, InferredOptio
if (deps['@discord-bot/llm'] && deps['@discord-bot/llm'] !== 'workspace:*') {
deps['@discord-bot/llm'] = './@discord-bot/llm';
}
if (deps['@moti-components/go-e-mon']) {
deps['@moti-components/go-e-mon'] = './@moti-components/go-e-mon';
}
if (deps['@online-judge/shared']) {
deps['@online-judge/shared'] = './@online-judge/shared';
}
if (deps['program-executor']) {
deps['program-executor'] = './program-executor';
const depNames = ['@moti-components/go-e-mon', '@online-judge/shared', 'program-executor', 'judge'];
for (const depName of depNames) {
if (deps[depName]) {
deps[depName] = `./${depName}`;
}
}
// TODO: remove after migrating from online-judge-shared to @online-judge/shared
if (deps['online-judge-shared']) {
Expand Down

0 comments on commit 3a6808e

Please sign in to comment.