Skip to content

Commit 9e56d4f

Browse files
committed
chore: add packages.json to zip
1 parent 7de460b commit 9e56d4f

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

lambdas/functions/ami-housekeeper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint": "eslint src",
1212
"watch": "ts-node-dev --respawn --exit-child src/local.ts",
1313
"build": "ncc build src/lambda.ts -o dist",
14-
"dist": "yarn build && cd dist && zip ../ami-housekeeper.zip index.js",
14+
"dist": "yarn build && cp package.json dist/ && cd dist && zip ../ami-housekeeper.zip *",
1515
"format": "prettier --write \"**/*.ts\"",
1616
"format-check": "prettier --check \"**/*.ts\"",
1717
"all": "yarn build && yarn format && yarn lint && yarn test"

lambdas/functions/control-plane/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint": "eslint src",
1212
"watch": "ts-node-dev --respawn --exit-child --files src/local-down.ts",
1313
"build": "ncc build src/lambda.ts -o dist",
14-
"dist": "yarn build && cd dist && zip ../runners.zip index.js",
14+
"dist": "yarn build && cp package.json dist/ && cd dist && zip ../runners.zip *",
1515
"format": "prettier --write \"**/*.ts\"",
1616
"format-check": "prettier --check \"**/*.ts\"",
1717
"all": "yarn build && yarn format && yarn lint && yarn test"

lambdas/functions/gh-agent-syncer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lint": "eslint src",
1212
"watch": "ts-node-dev --respawn --exit-child src/local.ts",
1313
"build": "ncc build src/lambda.ts -o dist",
14-
"dist": "yarn build && cd dist && zip ../runner-binaries-syncer.zip index.js",
14+
"dist": "yarn build && cp package.json dist/ && cd dist && zip ../runner-binaries-syncer.zip *",
1515
"format": "prettier --write \"**/*.ts\"",
1616
"format-check": "prettier --check \"**/*.ts\"",
1717
"all": "yarn build && yarn format && yarn lint && yarn test"

lambdas/functions/termination-watcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:watch": "NODE_ENV=test nx test --watch",
1010
"lint": "eslint src",
1111
"build": "ncc build src/lambda.ts -o dist",
12-
"dist": "yarn build && cd dist && zip ../termination-watcher.zip index.js",
12+
"dist": "yarn build && cp package.json dist/ && cd dist && zip ../termination-watcher.zip *",
1313
"format": "prettier --write \"**/*.ts\"",
1414
"format-check": "prettier --check \"**/*.ts\"",
1515
"all": "yarn build && yarn format && yarn lint && yarn test"

lambdas/functions/webhook/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@aws-github-runner/webhook",
33
"version": "1.0.0",
4-
"main": "lambda.ts",
4+
"main": "dist/index.js",
55
"type": "module",
66
"license": "MIT",
77
"scripts": {
@@ -11,13 +11,15 @@
1111
"lint": "eslint src",
1212
"watch": "ts-node-dev --respawn --exit-child src/local.ts",
1313
"build": "ncc build src/lambda.ts -o dist",
14-
"dist": "yarn build && cd dist && zip ../webhook.zip index.js",
14+
"dist": "yarn build && cp package.json dist/ && cd dist && zip ../webhook.zip *",
15+
"dist2": "yarn build && zip -r webhook.zip index.mjs dist/",
1516
"format": "prettier --write \"**/*.ts\"",
1617
"format-check": "prettier --check \"**/*.ts\"",
1718
"all": "yarn build && yarn format && yarn lint && yarn test"
1819
},
1920
"devDependencies": {
2021
"@aws-sdk/client-eventbridge": "^3.758.0",
22+
"@octokit/webhooks-types": "^7.6.1",
2123
"@types/aws-lambda": "^8.10.146",
2224
"@types/express": "^5.0.0",
2325
"@types/node": "^22.13.9",

lambdas/yarn.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ __metadata:
239239
"@octokit/rest": "npm:20.1.2"
240240
"@octokit/types": "npm:^13.8.0"
241241
"@octokit/webhooks": "npm:^12.3.1"
242+
"@octokit/webhooks-types": "npm:^7.6.1"
242243
"@types/aws-lambda": "npm:^8.10.146"
243244
"@types/express": "npm:^5.0.0"
244245
"@types/node": "npm:^22.13.9"
@@ -3894,7 +3895,7 @@ __metadata:
38943895
languageName: node
38953896
linkType: hard
38963897

3897-
"@octokit/webhooks-types@npm:7.6.1":
3898+
"@octokit/webhooks-types@npm:7.6.1, @octokit/webhooks-types@npm:^7.6.1":
38983899
version: 7.6.1
38993900
resolution: "@octokit/webhooks-types@npm:7.6.1"
39003901
checksum: 10c0/7c2cb40f9ccd2bd392cf35c23f995ae0719ef35fd3bce0264ced5518cbf0a7087bd069bf5e5963fc33d0232726968db526912df3cb017c1bd1761c8849c31a30

0 commit comments

Comments
 (0)