Skip to content

Commit 08d8aba

Browse files
committed
fix: Remove third-party lib 'yn'
1 parent fbcebd7 commit 08d8aba

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

modules/runners/lambdas/runners/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@types/node": "^16.6.1",
4444
"aws-sdk": "^2.965.0",
4545
"cron-parser": "^3.3.0",
46-
"typescript": "^4.2.3",
47-
"yn": "^5.0.0"
46+
"typescript": "^4.2.3"
4847
}
49-
}
48+
}

modules/runners/lambdas/runners/src/scale-runners/scale-down.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function removeRunner(
130130

131131
export async function scaleDown(): Promise<void> {
132132
const scaleDownConfigs = JSON.parse(process.env.SCALE_DOWN_CONFIG) as [ScalingDownConfig];
133-
const enableOrgLevel = yn(process.env.ENABLE_ORGANIZATION_RUNNERS, { default: true });
133+
const enableOrgLevel = JSON.parse(process.env.ENABLE_ORGANIZATION_RUNNERS || 'true') as boolean;
134134
const environment = process.env.ENVIRONMENT;
135135
const minimumRunningTimeInMinutes = process.env.MINIMUM_RUNNING_TIME_IN_MINUTES;
136136
let idleCounter = getIdleRunnerCount(scaleDownConfigs);

modules/runners/lambdas/runners/yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4613,8 +4613,3 @@ [email protected]:
46134613
version "3.1.1"
46144614
resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
46154615
integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
4616-
4617-
yn@^5.0.0:
4618-
version "5.0.0"
4619-
resolved "https://registry.yarnpkg.com/yn/-/yn-5.0.0.tgz#63fc2e2e0056cf294397eed6ad4a3fbdf707f26f"
4620-
integrity sha512-+l37+9TyGEsyxGLaTg6QgYy5KnOp74ZZl4dPFLQpBWSkO99uBC5jnS0pOGwXFViPbiaEtWbParH2KrgWWF2duQ==

0 commit comments

Comments
 (0)