Skip to content

Commit 72508ec

Browse files
committed
fix: sam breaking change fixed, requires esbuild as prod dependency
1 parent 5411c0d commit 72508ec

File tree

4 files changed

+104
-88
lines changed

4 files changed

+104
-88
lines changed

.github/workflows/deploy-bot-pinner.yml renamed to .github/workflows/deploy-bots.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: "Bots Deployment to AWS"
12
on: [workflow_dispatch]
23

34
jobs:

bots/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"node": "16.13.0"
1010
},
1111
"scripts": {
12-
"build": "sam build --use-container",
12+
"build": "sam build --use-container --beta-features",
1313
"invoke": "sam local invoke IncrementorHandler -e src/functions/IncrementorHandler/mock.json",
1414
"test": "mocha -r ts-node/register 'test/**/*.ts'"
1515
},
@@ -20,9 +20,11 @@
2020
"@types/aws-lambda": "^8.10.98",
2121
"@types/node": "^14.14.25",
2222
"chai": "^4.3.6",
23-
"esbuild": "^0.14.42",
2423
"mocha": "^10.0.0",
2524
"ts-node": "^10.8.1",
2625
"typescript": "^4.1.3"
26+
},
27+
"dependencies": {
28+
"esbuild": "^0.15.6"
2729
}
2830
}

bots/template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Resources:
2626
Runtime: nodejs16.x
2727
Architectures:
2828
- x86_64
29+
Environment:
30+
Variables:
31+
NODE_OPTIONS: --enable-source-maps
2932
Policies:
3033
- AWSLambdaExecute
3134
- Version: '2012-10-17'

yarn.lock

Lines changed: 96 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@ __metadata:
377377
languageName: node
378378
linkType: hard
379379

380+
"@esbuild/linux-loong64@npm:0.15.6":
381+
version: 0.15.6
382+
resolution: "@esbuild/linux-loong64@npm:0.15.6"
383+
conditions: os=linux & cpu=loong64
384+
languageName: node
385+
linkType: hard
386+
380387
"@eslint/eslintrc@npm:^0.4.3":
381388
version: 0.4.3
382389
resolution: "@eslint/eslintrc@npm:0.4.3"
@@ -1118,7 +1125,7 @@ __metadata:
11181125
"@types/aws-lambda": ^8.10.98
11191126
"@types/node": ^14.14.25
11201127
chai: ^4.3.6
1121-
esbuild: ^0.14.42
1128+
esbuild: ^0.15.6
11221129
mocha: ^10.0.0
11231130
ts-node: ^10.8.1
11241131
typescript: ^4.1.3
@@ -6475,171 +6482,174 @@ __metadata:
64756482
languageName: node
64766483
linkType: hard
64776484

6478-
"esbuild-android-64@npm:0.14.42":
6479-
version: 0.14.42
6480-
resolution: "esbuild-android-64@npm:0.14.42"
6485+
"esbuild-android-64@npm:0.15.6":
6486+
version: 0.15.6
6487+
resolution: "esbuild-android-64@npm:0.15.6"
64816488
conditions: os=android & cpu=x64
64826489
languageName: node
64836490
linkType: hard
64846491

6485-
"esbuild-android-arm64@npm:0.14.42":
6486-
version: 0.14.42
6487-
resolution: "esbuild-android-arm64@npm:0.14.42"
6492+
"esbuild-android-arm64@npm:0.15.6":
6493+
version: 0.15.6
6494+
resolution: "esbuild-android-arm64@npm:0.15.6"
64886495
conditions: os=android & cpu=arm64
64896496
languageName: node
64906497
linkType: hard
64916498

6492-
"esbuild-darwin-64@npm:0.14.42":
6493-
version: 0.14.42
6494-
resolution: "esbuild-darwin-64@npm:0.14.42"
6499+
"esbuild-darwin-64@npm:0.15.6":
6500+
version: 0.15.6
6501+
resolution: "esbuild-darwin-64@npm:0.15.6"
64956502
conditions: os=darwin & cpu=x64
64966503
languageName: node
64976504
linkType: hard
64986505

6499-
"esbuild-darwin-arm64@npm:0.14.42":
6500-
version: 0.14.42
6501-
resolution: "esbuild-darwin-arm64@npm:0.14.42"
6506+
"esbuild-darwin-arm64@npm:0.15.6":
6507+
version: 0.15.6
6508+
resolution: "esbuild-darwin-arm64@npm:0.15.6"
65026509
conditions: os=darwin & cpu=arm64
65036510
languageName: node
65046511
linkType: hard
65056512

6506-
"esbuild-freebsd-64@npm:0.14.42":
6507-
version: 0.14.42
6508-
resolution: "esbuild-freebsd-64@npm:0.14.42"
6513+
"esbuild-freebsd-64@npm:0.15.6":
6514+
version: 0.15.6
6515+
resolution: "esbuild-freebsd-64@npm:0.15.6"
65096516
conditions: os=freebsd & cpu=x64
65106517
languageName: node
65116518
linkType: hard
65126519

6513-
"esbuild-freebsd-arm64@npm:0.14.42":
6514-
version: 0.14.42
6515-
resolution: "esbuild-freebsd-arm64@npm:0.14.42"
6520+
"esbuild-freebsd-arm64@npm:0.15.6":
6521+
version: 0.15.6
6522+
resolution: "esbuild-freebsd-arm64@npm:0.15.6"
65166523
conditions: os=freebsd & cpu=arm64
65176524
languageName: node
65186525
linkType: hard
65196526

6520-
"esbuild-linux-32@npm:0.14.42":
6521-
version: 0.14.42
6522-
resolution: "esbuild-linux-32@npm:0.14.42"
6527+
"esbuild-linux-32@npm:0.15.6":
6528+
version: 0.15.6
6529+
resolution: "esbuild-linux-32@npm:0.15.6"
65236530
conditions: os=linux & cpu=ia32
65246531
languageName: node
65256532
linkType: hard
65266533

6527-
"esbuild-linux-64@npm:0.14.42":
6528-
version: 0.14.42
6529-
resolution: "esbuild-linux-64@npm:0.14.42"
6534+
"esbuild-linux-64@npm:0.15.6":
6535+
version: 0.15.6
6536+
resolution: "esbuild-linux-64@npm:0.15.6"
65306537
conditions: os=linux & cpu=x64
65316538
languageName: node
65326539
linkType: hard
65336540

6534-
"esbuild-linux-arm64@npm:0.14.42":
6535-
version: 0.14.42
6536-
resolution: "esbuild-linux-arm64@npm:0.14.42"
6541+
"esbuild-linux-arm64@npm:0.15.6":
6542+
version: 0.15.6
6543+
resolution: "esbuild-linux-arm64@npm:0.15.6"
65376544
conditions: os=linux & cpu=arm64
65386545
languageName: node
65396546
linkType: hard
65406547

6541-
"esbuild-linux-arm@npm:0.14.42":
6542-
version: 0.14.42
6543-
resolution: "esbuild-linux-arm@npm:0.14.42"
6548+
"esbuild-linux-arm@npm:0.15.6":
6549+
version: 0.15.6
6550+
resolution: "esbuild-linux-arm@npm:0.15.6"
65446551
conditions: os=linux & cpu=arm
65456552
languageName: node
65466553
linkType: hard
65476554

6548-
"esbuild-linux-mips64le@npm:0.14.42":
6549-
version: 0.14.42
6550-
resolution: "esbuild-linux-mips64le@npm:0.14.42"
6555+
"esbuild-linux-mips64le@npm:0.15.6":
6556+
version: 0.15.6
6557+
resolution: "esbuild-linux-mips64le@npm:0.15.6"
65516558
conditions: os=linux & cpu=mips64el
65526559
languageName: node
65536560
linkType: hard
65546561

6555-
"esbuild-linux-ppc64le@npm:0.14.42":
6556-
version: 0.14.42
6557-
resolution: "esbuild-linux-ppc64le@npm:0.14.42"
6562+
"esbuild-linux-ppc64le@npm:0.15.6":
6563+
version: 0.15.6
6564+
resolution: "esbuild-linux-ppc64le@npm:0.15.6"
65586565
conditions: os=linux & cpu=ppc64
65596566
languageName: node
65606567
linkType: hard
65616568

6562-
"esbuild-linux-riscv64@npm:0.14.42":
6563-
version: 0.14.42
6564-
resolution: "esbuild-linux-riscv64@npm:0.14.42"
6569+
"esbuild-linux-riscv64@npm:0.15.6":
6570+
version: 0.15.6
6571+
resolution: "esbuild-linux-riscv64@npm:0.15.6"
65656572
conditions: os=linux & cpu=riscv64
65666573
languageName: node
65676574
linkType: hard
65686575

6569-
"esbuild-linux-s390x@npm:0.14.42":
6570-
version: 0.14.42
6571-
resolution: "esbuild-linux-s390x@npm:0.14.42"
6576+
"esbuild-linux-s390x@npm:0.15.6":
6577+
version: 0.15.6
6578+
resolution: "esbuild-linux-s390x@npm:0.15.6"
65726579
conditions: os=linux & cpu=s390x
65736580
languageName: node
65746581
linkType: hard
65756582

6576-
"esbuild-netbsd-64@npm:0.14.42":
6577-
version: 0.14.42
6578-
resolution: "esbuild-netbsd-64@npm:0.14.42"
6583+
"esbuild-netbsd-64@npm:0.15.6":
6584+
version: 0.15.6
6585+
resolution: "esbuild-netbsd-64@npm:0.15.6"
65796586
conditions: os=netbsd & cpu=x64
65806587
languageName: node
65816588
linkType: hard
65826589

6583-
"esbuild-openbsd-64@npm:0.14.42":
6584-
version: 0.14.42
6585-
resolution: "esbuild-openbsd-64@npm:0.14.42"
6590+
"esbuild-openbsd-64@npm:0.15.6":
6591+
version: 0.15.6
6592+
resolution: "esbuild-openbsd-64@npm:0.15.6"
65866593
conditions: os=openbsd & cpu=x64
65876594
languageName: node
65886595
linkType: hard
65896596

6590-
"esbuild-sunos-64@npm:0.14.42":
6591-
version: 0.14.42
6592-
resolution: "esbuild-sunos-64@npm:0.14.42"
6597+
"esbuild-sunos-64@npm:0.15.6":
6598+
version: 0.15.6
6599+
resolution: "esbuild-sunos-64@npm:0.15.6"
65936600
conditions: os=sunos & cpu=x64
65946601
languageName: node
65956602
linkType: hard
65966603

6597-
"esbuild-windows-32@npm:0.14.42":
6598-
version: 0.14.42
6599-
resolution: "esbuild-windows-32@npm:0.14.42"
6604+
"esbuild-windows-32@npm:0.15.6":
6605+
version: 0.15.6
6606+
resolution: "esbuild-windows-32@npm:0.15.6"
66006607
conditions: os=win32 & cpu=ia32
66016608
languageName: node
66026609
linkType: hard
66036610

6604-
"esbuild-windows-64@npm:0.14.42":
6605-
version: 0.14.42
6606-
resolution: "esbuild-windows-64@npm:0.14.42"
6611+
"esbuild-windows-64@npm:0.15.6":
6612+
version: 0.15.6
6613+
resolution: "esbuild-windows-64@npm:0.15.6"
66076614
conditions: os=win32 & cpu=x64
66086615
languageName: node
66096616
linkType: hard
66106617

6611-
"esbuild-windows-arm64@npm:0.14.42":
6612-
version: 0.14.42
6613-
resolution: "esbuild-windows-arm64@npm:0.14.42"
6618+
"esbuild-windows-arm64@npm:0.15.6":
6619+
version: 0.15.6
6620+
resolution: "esbuild-windows-arm64@npm:0.15.6"
66146621
conditions: os=win32 & cpu=arm64
66156622
languageName: node
66166623
linkType: hard
66176624

6618-
"esbuild@npm:^0.14.42":
6619-
version: 0.14.42
6620-
resolution: "esbuild@npm:0.14.42"
6621-
dependencies:
6622-
esbuild-android-64: 0.14.42
6623-
esbuild-android-arm64: 0.14.42
6624-
esbuild-darwin-64: 0.14.42
6625-
esbuild-darwin-arm64: 0.14.42
6626-
esbuild-freebsd-64: 0.14.42
6627-
esbuild-freebsd-arm64: 0.14.42
6628-
esbuild-linux-32: 0.14.42
6629-
esbuild-linux-64: 0.14.42
6630-
esbuild-linux-arm: 0.14.42
6631-
esbuild-linux-arm64: 0.14.42
6632-
esbuild-linux-mips64le: 0.14.42
6633-
esbuild-linux-ppc64le: 0.14.42
6634-
esbuild-linux-riscv64: 0.14.42
6635-
esbuild-linux-s390x: 0.14.42
6636-
esbuild-netbsd-64: 0.14.42
6637-
esbuild-openbsd-64: 0.14.42
6638-
esbuild-sunos-64: 0.14.42
6639-
esbuild-windows-32: 0.14.42
6640-
esbuild-windows-64: 0.14.42
6641-
esbuild-windows-arm64: 0.14.42
6625+
"esbuild@npm:^0.15.6":
6626+
version: 0.15.6
6627+
resolution: "esbuild@npm:0.15.6"
6628+
dependencies:
6629+
"@esbuild/linux-loong64": 0.15.6
6630+
esbuild-android-64: 0.15.6
6631+
esbuild-android-arm64: 0.15.6
6632+
esbuild-darwin-64: 0.15.6
6633+
esbuild-darwin-arm64: 0.15.6
6634+
esbuild-freebsd-64: 0.15.6
6635+
esbuild-freebsd-arm64: 0.15.6
6636+
esbuild-linux-32: 0.15.6
6637+
esbuild-linux-64: 0.15.6
6638+
esbuild-linux-arm: 0.15.6
6639+
esbuild-linux-arm64: 0.15.6
6640+
esbuild-linux-mips64le: 0.15.6
6641+
esbuild-linux-ppc64le: 0.15.6
6642+
esbuild-linux-riscv64: 0.15.6
6643+
esbuild-linux-s390x: 0.15.6
6644+
esbuild-netbsd-64: 0.15.6
6645+
esbuild-openbsd-64: 0.15.6
6646+
esbuild-sunos-64: 0.15.6
6647+
esbuild-windows-32: 0.15.6
6648+
esbuild-windows-64: 0.15.6
6649+
esbuild-windows-arm64: 0.15.6
66426650
dependenciesMeta:
6651+
"@esbuild/linux-loong64":
6652+
optional: true
66436653
esbuild-android-64:
66446654
optional: true
66456655
esbuild-android-arm64:
@@ -6682,7 +6692,7 @@ __metadata:
66826692
optional: true
66836693
bin:
66846694
esbuild: bin/esbuild
6685-
checksum: e036278177bdb3f5a58fd7a56f67afa7ae603e0458b0dcc75901e0fa86b07587a63c2b447653d400c1bdf9d56e93b0d1011b6a83fc3c973e752c3cc75baabb91
6695+
checksum: e351cd5647311aa857fa30fb3fa7055b39d7c82ebd96a7abd2657e42e62b5960aeb1dd9466ba97699ab1a1fbc0f0217b26b266fe5e9301590855c53b3133282f
66866696
languageName: node
66876697
linkType: hard
66886698

0 commit comments

Comments
 (0)