Skip to content

Commit 7d76eec

Browse files
authored
chore: replace npm private package scope by an org we own (#4103)
## Description This change replaces the scope of the scope by an [org](https://www.npmjs.com/org/aws-github-runner) we own. Although packages are proper locked by scope and workspace this is only to make absolute sure we own the namespace.
1 parent c6670bd commit 7d76eec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+315
-329
lines changed

lambdas/functions/ami-housekeeper/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@terraform-aws-github-runner/ami-housekeeper",
2+
"name": "@aws-github-runner/ami-housekeeper",
33
"version": "1.0.0",
44
"main": "lambda.ts",
55
"license": "MIT",
@@ -37,11 +37,11 @@
3737
"ts-node-dev": "^2.0.0"
3838
},
3939
"dependencies": {
40+
"@aws-github-runner/aws-powertools-util": "*",
41+
"@aws-github-runner/aws-ssm-util": "*",
4042
"@aws-sdk/client-ec2": "^3.637.0",
4143
"@aws-sdk/client-ssm": "^3.637.0",
4244
"@aws-sdk/types": "^3.609.0",
43-
"@terraform-aws-github-runner/aws-powertools-util": "*",
44-
"@terraform-aws-github-runner/aws-ssm-util": "*",
4545
"cron-parser": "^4.9.0",
4646
"typescript": "^5.5.4"
4747
},

lambdas/functions/ami-housekeeper/src/ami.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
Image,
1010
} from '@aws-sdk/client-ec2';
1111
import { DescribeParametersCommand, GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
12-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
13-
import { getTracedAWSV3Client } from '@terraform-aws-github-runner/aws-powertools-util';
12+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
13+
import { getTracedAWSV3Client } from '@aws-github-runner/aws-powertools-util';
1414

1515
const logger = createChildLogger('ami');
1616

lambdas/functions/ami-housekeeper/src/lambda.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22
import { Context } from 'aws-lambda';
33
import { mocked } from 'jest-mock';
44

55
import { AmiCleanupOptions, amiCleanup } from './ami';
66
import { handler } from './lambda';
77

88
jest.mock('./ami');
9-
jest.mock('@terraform-aws-github-runner/aws-powertools-util');
9+
jest.mock('@aws-github-runner/aws-powertools-util');
1010

1111
const amiCleanupOptions: AmiCleanupOptions = {
1212
minimumDaysOld: undefined,

lambdas/functions/ami-housekeeper/src/lambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger, setContext } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger, setContext } from '@aws-github-runner/aws-powertools-util';
22
import { Context } from 'aws-lambda';
33
import 'source-map-support/register';
44

lambdas/functions/ami-housekeeper/src/local.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
1+
import { logger } from '@aws-github-runner/aws-powertools-util';
22

33
import { amiCleanup } from './ami';
44

lambdas/functions/control-plane/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@terraform-aws-github-runner/control-plane",
2+
"name": "@aws-github-runner/control-plane",
33
"version": "1.0.0",
44
"main": "lambda.ts",
55
"license": "MIT",
@@ -38,6 +38,8 @@
3838
"ts-node-dev": "^2.0.0"
3939
},
4040
"dependencies": {
41+
"@aws-github-runner/aws-powertools-util": "*",
42+
"@aws-github-runner/aws-ssm-util": "*",
4143
"@aws-lambda-powertools/parameters": "^2.7.0",
4244
"@aws-sdk/client-ec2": "^3.637.0",
4345
"@aws-sdk/client-sqs": "^3.637.0",
@@ -48,8 +50,6 @@
4850
"@octokit/plugin-throttling": "8.2.0",
4951
"@octokit/rest": "20.1.1",
5052
"@octokit/types": "^13.5.0",
51-
"@terraform-aws-github-runner/aws-powertools-util": "*",
52-
"@terraform-aws-github-runner/aws-ssm-util": "*",
5353
"cron-parser": "^4.9.0",
5454
"typescript": "^5.5.4"
5555
},

lambdas/functions/control-plane/src/aws/runners.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TerminateInstancesCommand,
1313
} from '@aws-sdk/client-ec2';
1414
import { GetParameterCommand, GetParameterResult, PutParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
15-
import { tracer } from '@terraform-aws-github-runner/aws-powertools-util';
15+
import { tracer } from '@aws-github-runner/aws-powertools-util';
1616
import { mockClient } from 'aws-sdk-client-mock';
1717
import 'aws-sdk-client-mock-jest';
1818

lambdas/functions/control-plane/src/aws/runners.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
TerminateInstancesCommand,
1111
_InstanceType,
1212
} from '@aws-sdk/client-ec2';
13-
import { createChildLogger } from '@terraform-aws-github-runner/aws-powertools-util';
14-
import { getTracedAWSV3Client, tracer } from '@terraform-aws-github-runner/aws-powertools-util';
15-
import { getParameter } from '@terraform-aws-github-runner/aws-ssm-util';
13+
import { createChildLogger } from '@aws-github-runner/aws-powertools-util';
14+
import { getTracedAWSV3Client, tracer } from '@aws-github-runner/aws-powertools-util';
15+
import { getParameter } from '@aws-github-runner/aws-ssm-util';
1616
import moment from 'moment';
1717

1818
import ScaleError from './../scale-runners/ScaleError';

lambdas/functions/control-plane/src/aws/sqs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SendMessageCommand, SQSClient } from '@aws-sdk/client-sqs';
22
import { mockClient } from 'aws-sdk-client-mock';
33
import 'aws-sdk-client-mock-jest';
44
import { publishMessage } from './sqs';
5-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
5+
import { logger } from '@aws-github-runner/aws-powertools-util';
66

77
const mockSQSClient = mockClient(SQSClient);
88

lambdas/functions/control-plane/src/aws/sqs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SQSClient, SendMessageCommand, SendMessageCommandOutput } from '@aws-sdk/client-sqs';
2-
import { logger } from '@terraform-aws-github-runner/aws-powertools-util';
2+
import { logger } from '@aws-github-runner/aws-powertools-util';
33

44
const sqs = new SQSClient({});
55

0 commit comments

Comments
 (0)