Skip to content

Commit d940dfa

Browse files
Upgrade to Node 18 runtimes (#1189)
* Upgrade to Node 18 runtimes Upgrade CDK to latest Upgrade SDK to latest Upgrade other packages to latest * fix tests and prettier * removed logger * fixed prettier command * update actions * fixed yaml * Update test --------- Co-authored-by: Brian Crissup <crissupb@amazon.com>
1 parent 8a21589 commit d940dfa

File tree

278 files changed

+27380
-25994
lines changed

Some content is hidden

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

278 files changed

+27380
-25994
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
pull_request:
77
branches:
88
- main
9-
9+
env:
10+
NODE_OPTIONS: "--max-old-space-size=28000"
1011
jobs:
1112
test:
1213
name: Test
@@ -17,7 +18,7 @@ jobs:
1718
- name: Use Node.js
1819
uses: actions/setup-node@v1
1920
with:
20-
node-version: 16
21+
node-version: 18
2122
- name: Cache Node.js modules
2223
uses: actions/cache@v1
2324
with:
@@ -28,7 +29,7 @@ jobs:
2829
${{ runner.OS }}-
2930
- name: Install Node.js modules
3031
run: |
31-
npm install -g pnpm@6.2.3
32+
npm install -g pnpm@8.9.0
3233
pnpm recursive install --frozen-lockfile
3334
- name: Build all workspaces
3435
run: |

.github/workflows/lint-prettier.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Use Node.js
1818
uses: actions/setup-node@v1
1919
with:
20-
node-version: 16
20+
node-version: 18
2121
- name: Cache Node.js modules
2222
uses: actions/cache@v1
2323
with:
@@ -28,7 +28,7 @@ jobs:
2828
${{ runner.OS }}-
2929
- name: Install Node.js modules
3030
run: |
31-
npm install -g pnpm@6.2.3
31+
npm install -g pnpm@8.9.0
3232
pnpm install --frozen-lockfile
3333
- name: Analyze TypeScript files
3434
run: |
@@ -42,7 +42,7 @@ jobs:
4242
- name: Use Node.js
4343
uses: actions/setup-node@v1
4444
with:
45-
node-version: 16
45+
node-version: 18
4646
- name: Cache Node.js modules
4747
uses: actions/cache@v1
4848
with:
@@ -53,7 +53,7 @@ jobs:
5353
${{ runner.OS }}-
5454
- name: Install Node.js modules
5555
run: |
56-
npm install -g pnpm@6.2.3
56+
npm install -g pnpm@8.9.0
5757
pnpm install --frozen-lockfile
5858
- name: Analyze TypeScript files
5959
run: |
@@ -67,7 +67,7 @@ jobs:
6767
- name: Use Node.js
6868
uses: actions/setup-node@v1
6969
with:
70-
node-version: 16
70+
node-version: 18
7171
- name: Install Prettier
7272
run: |
7373
npm install -g prettier@2.2.1

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ on:
33
workflow_dispatch:
44
inputs:
55
generateDocOnly:
6-
description: 'Generate documentation only. Unchecking this checkbox will have no impact, the documentation will still be only generated when the workflow is triggered manually.'
6+
description: "Generate documentation only. Unchecking this checkbox will have no impact, the documentation will still be only generated when the workflow is triggered manually."
77
type: boolean
88
required: false
9-
default: 'true'
9+
default: true
1010
push:
1111
branches:
12-
- 'release/v*'
12+
- "release/v*"
1313
jobs:
1414
release:
1515
name: Create Release
@@ -41,10 +41,10 @@ jobs:
4141
env:
4242
RUNNER_TEMP: /tmp/runner
4343
with:
44-
node-version: 16
44+
node-version: 18
4545
- name: Install pnpm
4646
run: |
47-
npm install -g pnpm@6.2.3
47+
npm install -g pnpm@8.9.0
4848
- name: Generate Changelog
4949
id: changelog
5050
env:
@@ -157,10 +157,10 @@ jobs:
157157
env:
158158
RUNNER_TEMP: /tmp/runner
159159
with:
160-
node-version: 16
160+
node-version: 18
161161
- name: Install pnpm
162162
run: |
163-
npm install -g pnpm@6.2.3
163+
npm install -g pnpm@8.9.0
164164
- name: Build SEA-Config-Schema project
165165
id: build
166166
env:
@@ -197,10 +197,10 @@ jobs:
197197
env:
198198
RUNNER_TEMP: /tmp/runner
199199
with:
200-
node-version: 16
200+
node-version: 18
201201
- name: Install pnpm
202202
run: |
203-
npm install -g pnpm@6.2.3
203+
npm install -g pnpm@8.9.0
204204
- name: Build SEA-GUI project
205205
id: build
206206
env:

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
nodejs: 16
6+
nodejs: 18
77
commands:
88
- echo "nothing to do in install"
99
pre_build:

deployment/build-s3-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ do_cmd cd $installer_dir
271271
# do_cmd npm install aws-cdk@$cdk_version
272272

273273
# Install pnpm
274-
do_cmd npm install -g pnpm@6.2.3
274+
do_cmd npm install -g pnpm@8.9.0
275275
do_cmd pnpm install
276276

277277
# Add local install to PATH

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"version": "0.0.1",
44
"scripts": {
55
"build": "pnpm recursive run --no-bail build",
6-
"test": "pnpm recursive run --no-bail --workspace-concurrency 1 test -- --pass-with-no-tests --silent --max-workers 1",
7-
"lint:typecheck": "pnpx tsc -p tsconfig.tsc.json ",
6+
"test": "pnpm recursive run --no-bail --workspace-concurrency 1 test -- --pass-with-no-tests --silent --max-workers 1 --coverageProvider=v8 --clearCache --clearMocks",
7+
"lint:typecheck": "pnpm exec tsc -p tsconfig.tsc.json ",
88
"lint:eslint": "pnpx eslint . --ext .ts,.tsx"
99
},
1010
"devDependencies": {
11-
"@types/node": "16.18.27",
12-
"@typescript-eslint/eslint-plugin": "5.59.5",
13-
"@typescript-eslint/parser": "5.59.5",
14-
"eslint": "8.40.0",
15-
"eslint-config-prettier": "8.8.0",
16-
"eslint-plugin-deprecation": "1.4.1",
17-
"eslint-plugin-import": "2.27.5",
18-
"eslint-plugin-jsdoc": "44.0.1",
11+
"@types/node": "20.8.0",
12+
"@typescript-eslint/eslint-plugin": "6.7.3",
13+
"@typescript-eslint/parser": "6.7.3",
14+
"eslint": "8.50.0",
15+
"eslint-config-prettier": "9.0.0",
16+
"eslint-plugin-deprecation": "2.0.0",
17+
"eslint-plugin-import": "2.28.1",
18+
"eslint-plugin-jsdoc": "46.8.2",
1919
"eslint-plugin-prefer-arrow": "1.2.3",
20-
"eslint-plugin-react": "7.32.2",
21-
"eslint-plugin-unicorn": "47.0.0",
22-
"prettier": "2.8.8"
20+
"eslint-plugin-react": "7.33.2",
21+
"eslint-plugin-unicorn": "48.0.1",
22+
"prettier": "3.0.3"
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)