Skip to content

Commit 75815c3

Browse files
author
Taniya Mathur
committed
adding engines to package.json and update coedbuild to use node 18
1 parent 27ec852 commit 75815c3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ developer_tests:
4343
- uv venv .venv
4444
- source .venv/bin/activate
4545
# Install Node.js and npm for basedpyright
46-
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
46+
- curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
4747
- apt-get install -y nodejs
4848
- npm install -g basedpyright
4949
- uv pip install ruff

scripts/sdlc/cfn/codepipeline-s3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ Resources:
197197
runtime-versions:
198198
python: 3.12
199199
commands:
200-
- n 20 && node --version || { echo "Node setup failed"; exit 1; }
201-
- npm install -g npm@10.9.3 || { echo "npm downgrade failed"; exit 1; }
200+
- n 18 && node --version || { echo "Node setup failed"; exit 1; }
201+
- npm install -g npm@9 || { echo "npm upgrade failed"; exit 1; }
202202
- export IDP_ADMIN_EMAIL=$(aws s3api head-object --bucket genaiic-sdlc-sourcecode-${AWS_ACCOUNT_ID:-020432867916}-${AWS_DEFAULT_REGION:-us-east-1} --key deploy/code.zip --query 'Metadata."gitlab-user-email"' --output text 2>/dev/null || echo "")
203203
- cd idp_cli && pip install -e . && cd .. || { echo "IDP CLI installation failed"; exit 1; }
204204
- pip install rich || echo "Rich installation failed, using fallback formatting"

src/ui/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"name": "genaiidp-ui",
33
"version": "0.3.15",
44
"private": true,
5+
"engines": {
6+
"node": ">=18.0.0",
7+
"npm": ">=9.0.0"
8+
},
59
"dependencies": {
610
"@aws-amplify/ui-react": "^6.12.0",
711
"@aws-crypto/sha256-browser": "^2.0.2",

0 commit comments

Comments
 (0)