Skip to content

Commit

Permalink
feat: switch from node 14 to 16 (#1118)
Browse files Browse the repository at this point in the history
* feat: switch nodejs to 16, fix linter

* feat: switch nodejs to 16, fix linter for sample app

* feat: switch builder to node 16

* feat: update runtimes list
  • Loading branch information
mat-rumian authored Jan 26, 2024
1 parent 9f412c9 commit c146248
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16
- uses: actions/cache@v4
with:
path: ~/.npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-layer-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16

- name: Build
run: |
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
layer-name: opentelemetry-nodejs
component-version: ${{needs.build-layer.outputs.NODEJS_VERSION}}
# architecture:
runtimes: nodejs14.x nodejs16.x nodejs18.x
runtimes: nodejs16.x nodejs18.x nodejs20.x
release-group: prod
aws_region: ${{ matrix.aws_region }}
secrets: inherit
6 changes: 3 additions & 3 deletions nodejs/packages/layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repository": "open-telemetry/opentelemetry-lambda",
"scripts": {
"clean": "rimraf build/*",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts",
"lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --fix",
"prepare": "npm run compile",
"compile": "tsc -p .",
"postcompile": "copyfiles 'node_modules/**' build/workspace/nodejs && copyfiles -f 'scripts/*' build/workspace && copyfiles -f 'build/src/*' build/workspace && cd build/workspace && bestzip ../layer.zip *"
Expand All @@ -23,7 +23,7 @@
"author": "OpenTelemetry Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"dependencies": {
"@opentelemetry/api": "^1.7.0",
Expand Down
8 changes: 3 additions & 5 deletions nodejs/sample-apps/aws-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"repository": "open-telemetry/opentelemetry-lambda",
"scripts": {
"clean": "rimraf build/*",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts",
"lint:fix": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts --fix",
"precompile": "tsc --version",
"prepare": "npm run compile",
"compile": "tsc -p .",
Expand All @@ -26,7 +26,7 @@
"author": "OpenTelemetry Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=14.0.0"
"node": ">=16.0.0"
},
"files": [
"build/src/**/*.js",
Expand All @@ -42,8 +42,6 @@
"copyfiles": "2.4.1",
"rimraf": "5.0.5",
"ts-node": "10.9.2",
"tslint-consistent-codestyle": "1.16.0",
"tslint-microsoft-contrib": "6.2.0",
"typescript": "5.3.3"
},
"dependencies": {
Expand Down

0 comments on commit c146248

Please sign in to comment.