Skip to content

Commit 234b29e

Browse files
committed
fix: sam breaking change fixed, requires esbuild as prod dependency
1 parent a33c50f commit 234b29e

File tree

4 files changed

+98
-92
lines changed

4 files changed

+98
-92
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: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ __metadata:
377377
languageName: node
378378
linkType: hard
379379

380-
"@esbuild/linux-loong64@npm:0.14.54":
381-
version: 0.14.54
382-
resolution: "@esbuild/linux-loong64@npm:0.14.54"
380+
"@esbuild/linux-loong64@npm:0.15.6":
381+
version: 0.15.6
382+
resolution: "@esbuild/linux-loong64@npm:0.15.6"
383383
conditions: os=linux & cpu=loong64
384384
languageName: node
385385
linkType: hard
@@ -1125,7 +1125,7 @@ __metadata:
11251125
"@types/aws-lambda": ^8.10.98
11261126
"@types/node": ^14.14.25
11271127
chai: ^4.3.6
1128-
esbuild: ^0.14.42
1128+
esbuild: ^0.15.6
11291129
mocha: ^10.0.0
11301130
ts-node: ^10.8.1
11311131
typescript: ^4.1.3
@@ -6482,171 +6482,171 @@ __metadata:
64826482
languageName: node
64836483
linkType: hard
64846484

6485-
"esbuild-android-64@npm:0.14.54":
6486-
version: 0.14.54
6487-
resolution: "esbuild-android-64@npm:0.14.54"
6485+
"esbuild-android-64@npm:0.15.6":
6486+
version: 0.15.6
6487+
resolution: "esbuild-android-64@npm:0.15.6"
64886488
conditions: os=android & cpu=x64
64896489
languageName: node
64906490
linkType: hard
64916491

6492-
"esbuild-android-arm64@npm:0.14.54":
6493-
version: 0.14.54
6494-
resolution: "esbuild-android-arm64@npm:0.14.54"
6492+
"esbuild-android-arm64@npm:0.15.6":
6493+
version: 0.15.6
6494+
resolution: "esbuild-android-arm64@npm:0.15.6"
64956495
conditions: os=android & cpu=arm64
64966496
languageName: node
64976497
linkType: hard
64986498

6499-
"esbuild-darwin-64@npm:0.14.54":
6500-
version: 0.14.54
6501-
resolution: "esbuild-darwin-64@npm:0.14.54"
6499+
"esbuild-darwin-64@npm:0.15.6":
6500+
version: 0.15.6
6501+
resolution: "esbuild-darwin-64@npm:0.15.6"
65026502
conditions: os=darwin & cpu=x64
65036503
languageName: node
65046504
linkType: hard
65056505

6506-
"esbuild-darwin-arm64@npm:0.14.54":
6507-
version: 0.14.54
6508-
resolution: "esbuild-darwin-arm64@npm:0.14.54"
6506+
"esbuild-darwin-arm64@npm:0.15.6":
6507+
version: 0.15.6
6508+
resolution: "esbuild-darwin-arm64@npm:0.15.6"
65096509
conditions: os=darwin & cpu=arm64
65106510
languageName: node
65116511
linkType: hard
65126512

6513-
"esbuild-freebsd-64@npm:0.14.54":
6514-
version: 0.14.54
6515-
resolution: "esbuild-freebsd-64@npm:0.14.54"
6513+
"esbuild-freebsd-64@npm:0.15.6":
6514+
version: 0.15.6
6515+
resolution: "esbuild-freebsd-64@npm:0.15.6"
65166516
conditions: os=freebsd & cpu=x64
65176517
languageName: node
65186518
linkType: hard
65196519

6520-
"esbuild-freebsd-arm64@npm:0.14.54":
6521-
version: 0.14.54
6522-
resolution: "esbuild-freebsd-arm64@npm:0.14.54"
6520+
"esbuild-freebsd-arm64@npm:0.15.6":
6521+
version: 0.15.6
6522+
resolution: "esbuild-freebsd-arm64@npm:0.15.6"
65236523
conditions: os=freebsd & cpu=arm64
65246524
languageName: node
65256525
linkType: hard
65266526

6527-
"esbuild-linux-32@npm:0.14.54":
6528-
version: 0.14.54
6529-
resolution: "esbuild-linux-32@npm:0.14.54"
6527+
"esbuild-linux-32@npm:0.15.6":
6528+
version: 0.15.6
6529+
resolution: "esbuild-linux-32@npm:0.15.6"
65306530
conditions: os=linux & cpu=ia32
65316531
languageName: node
65326532
linkType: hard
65336533

6534-
"esbuild-linux-64@npm:0.14.54":
6535-
version: 0.14.54
6536-
resolution: "esbuild-linux-64@npm:0.14.54"
6534+
"esbuild-linux-64@npm:0.15.6":
6535+
version: 0.15.6
6536+
resolution: "esbuild-linux-64@npm:0.15.6"
65376537
conditions: os=linux & cpu=x64
65386538
languageName: node
65396539
linkType: hard
65406540

6541-
"esbuild-linux-arm64@npm:0.14.54":
6542-
version: 0.14.54
6543-
resolution: "esbuild-linux-arm64@npm:0.14.54"
6541+
"esbuild-linux-arm64@npm:0.15.6":
6542+
version: 0.15.6
6543+
resolution: "esbuild-linux-arm64@npm:0.15.6"
65446544
conditions: os=linux & cpu=arm64
65456545
languageName: node
65466546
linkType: hard
65476547

6548-
"esbuild-linux-arm@npm:0.14.54":
6549-
version: 0.14.54
6550-
resolution: "esbuild-linux-arm@npm:0.14.54"
6548+
"esbuild-linux-arm@npm:0.15.6":
6549+
version: 0.15.6
6550+
resolution: "esbuild-linux-arm@npm:0.15.6"
65516551
conditions: os=linux & cpu=arm
65526552
languageName: node
65536553
linkType: hard
65546554

6555-
"esbuild-linux-mips64le@npm:0.14.54":
6556-
version: 0.14.54
6557-
resolution: "esbuild-linux-mips64le@npm:0.14.54"
6555+
"esbuild-linux-mips64le@npm:0.15.6":
6556+
version: 0.15.6
6557+
resolution: "esbuild-linux-mips64le@npm:0.15.6"
65586558
conditions: os=linux & cpu=mips64el
65596559
languageName: node
65606560
linkType: hard
65616561

6562-
"esbuild-linux-ppc64le@npm:0.14.54":
6563-
version: 0.14.54
6564-
resolution: "esbuild-linux-ppc64le@npm:0.14.54"
6562+
"esbuild-linux-ppc64le@npm:0.15.6":
6563+
version: 0.15.6
6564+
resolution: "esbuild-linux-ppc64le@npm:0.15.6"
65656565
conditions: os=linux & cpu=ppc64
65666566
languageName: node
65676567
linkType: hard
65686568

6569-
"esbuild-linux-riscv64@npm:0.14.54":
6570-
version: 0.14.54
6571-
resolution: "esbuild-linux-riscv64@npm:0.14.54"
6569+
"esbuild-linux-riscv64@npm:0.15.6":
6570+
version: 0.15.6
6571+
resolution: "esbuild-linux-riscv64@npm:0.15.6"
65726572
conditions: os=linux & cpu=riscv64
65736573
languageName: node
65746574
linkType: hard
65756575

6576-
"esbuild-linux-s390x@npm:0.14.54":
6577-
version: 0.14.54
6578-
resolution: "esbuild-linux-s390x@npm:0.14.54"
6576+
"esbuild-linux-s390x@npm:0.15.6":
6577+
version: 0.15.6
6578+
resolution: "esbuild-linux-s390x@npm:0.15.6"
65796579
conditions: os=linux & cpu=s390x
65806580
languageName: node
65816581
linkType: hard
65826582

6583-
"esbuild-netbsd-64@npm:0.14.54":
6584-
version: 0.14.54
6585-
resolution: "esbuild-netbsd-64@npm:0.14.54"
6583+
"esbuild-netbsd-64@npm:0.15.6":
6584+
version: 0.15.6
6585+
resolution: "esbuild-netbsd-64@npm:0.15.6"
65866586
conditions: os=netbsd & cpu=x64
65876587
languageName: node
65886588
linkType: hard
65896589

6590-
"esbuild-openbsd-64@npm:0.14.54":
6591-
version: 0.14.54
6592-
resolution: "esbuild-openbsd-64@npm:0.14.54"
6590+
"esbuild-openbsd-64@npm:0.15.6":
6591+
version: 0.15.6
6592+
resolution: "esbuild-openbsd-64@npm:0.15.6"
65936593
conditions: os=openbsd & cpu=x64
65946594
languageName: node
65956595
linkType: hard
65966596

6597-
"esbuild-sunos-64@npm:0.14.54":
6598-
version: 0.14.54
6599-
resolution: "esbuild-sunos-64@npm:0.14.54"
6597+
"esbuild-sunos-64@npm:0.15.6":
6598+
version: 0.15.6
6599+
resolution: "esbuild-sunos-64@npm:0.15.6"
66006600
conditions: os=sunos & cpu=x64
66016601
languageName: node
66026602
linkType: hard
66036603

6604-
"esbuild-windows-32@npm:0.14.54":
6605-
version: 0.14.54
6606-
resolution: "esbuild-windows-32@npm:0.14.54"
6604+
"esbuild-windows-32@npm:0.15.6":
6605+
version: 0.15.6
6606+
resolution: "esbuild-windows-32@npm:0.15.6"
66076607
conditions: os=win32 & cpu=ia32
66086608
languageName: node
66096609
linkType: hard
66106610

6611-
"esbuild-windows-64@npm:0.14.54":
6612-
version: 0.14.54
6613-
resolution: "esbuild-windows-64@npm:0.14.54"
6611+
"esbuild-windows-64@npm:0.15.6":
6612+
version: 0.15.6
6613+
resolution: "esbuild-windows-64@npm:0.15.6"
66146614
conditions: os=win32 & cpu=x64
66156615
languageName: node
66166616
linkType: hard
66176617

6618-
"esbuild-windows-arm64@npm:0.14.54":
6619-
version: 0.14.54
6620-
resolution: "esbuild-windows-arm64@npm:0.14.54"
6618+
"esbuild-windows-arm64@npm:0.15.6":
6619+
version: 0.15.6
6620+
resolution: "esbuild-windows-arm64@npm:0.15.6"
66216621
conditions: os=win32 & cpu=arm64
66226622
languageName: node
66236623
linkType: hard
66246624

6625-
"esbuild@npm:^0.14.42":
6626-
version: 0.14.54
6627-
resolution: "esbuild@npm:0.14.54"
6628-
dependencies:
6629-
"@esbuild/linux-loong64": 0.14.54
6630-
esbuild-android-64: 0.14.54
6631-
esbuild-android-arm64: 0.14.54
6632-
esbuild-darwin-64: 0.14.54
6633-
esbuild-darwin-arm64: 0.14.54
6634-
esbuild-freebsd-64: 0.14.54
6635-
esbuild-freebsd-arm64: 0.14.54
6636-
esbuild-linux-32: 0.14.54
6637-
esbuild-linux-64: 0.14.54
6638-
esbuild-linux-arm: 0.14.54
6639-
esbuild-linux-arm64: 0.14.54
6640-
esbuild-linux-mips64le: 0.14.54
6641-
esbuild-linux-ppc64le: 0.14.54
6642-
esbuild-linux-riscv64: 0.14.54
6643-
esbuild-linux-s390x: 0.14.54
6644-
esbuild-netbsd-64: 0.14.54
6645-
esbuild-openbsd-64: 0.14.54
6646-
esbuild-sunos-64: 0.14.54
6647-
esbuild-windows-32: 0.14.54
6648-
esbuild-windows-64: 0.14.54
6649-
esbuild-windows-arm64: 0.14.54
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
66506650
dependenciesMeta:
66516651
"@esbuild/linux-loong64":
66526652
optional: true
@@ -6692,7 +6692,7 @@ __metadata:
66926692
optional: true
66936693
bin:
66946694
esbuild: bin/esbuild
6695-
checksum: 49e360b1185c797f5ca3a7f5f0a75121494d97ddf691f65ed1796e6257d318f928342a97f559bb8eced6a90cf604dd22db4a30e0dbbf15edd9dbf22459b639af
6695+
checksum: e351cd5647311aa857fa30fb3fa7055b39d7c82ebd96a7abd2657e42e62b5960aeb1dd9466ba97699ab1a1fbc0f0217b26b266fe5e9301590855c53b3133282f
66966696
languageName: node
66976697
linkType: hard
66986698

0 commit comments

Comments
 (0)