Skip to content

Commit 3f590d8

Browse files
dependabot[bot]trentm
authored andcommitted
chore(deps-dev): bump typescript from 5.0.2 to 5.1.3 (elastic#3402)
This also bumps `npm run test:types` to only run with node >=14.17, as required by the typescript@5.1 change in min node support. Co-authored-by: Trent Mick <trent.mick@elastic.co>
1 parent 3b4c7df commit 3f590d8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test": "./test/script/run_tests.sh",
1919
"test:deps": "dependency-check index.js start.js start-next.js 'lib/**/*.js' 'test/**/*.js' '!test/activation-method/fixtures' '!test/instrumentation/azure-functions/fixtures' '!test/instrumentation/modules/next/a-nextjs-app' '!test/opentelemetry-bridge' '!test/opentelemetry-metrics/fixtures' --no-dev -i async_hooks -i perf_hooks -i node:http -i @azure/functions-core",
2020
"test:tav": "(cd test/opentelemetry-metrics/fixtures && tav --quiet) && (cd test/opentelemetry-bridge && tav --quiet) && (cd test/instrumentation/modules/next/a-nextjs-app && tav --quiet) && tav --quiet",
21-
"test:types": "tsc --project test/types/tsconfig.json && tsc --project test/types/transpile/tsconfig.json && node test/types/transpile/index.js && tsc --project test/types/transpile-default/tsconfig.json && node test/types/transpile-default/index.js # requires node >=12.20",
21+
"test:types": "tsc --project test/types/tsconfig.json && tsc --project test/types/transpile/tsconfig.json && node test/types/transpile/index.js && tsc --project test/types/transpile-default/tsconfig.json && node test/types/transpile-default/index.js # requires node >=14.17",
2222
"test:babel": "babel test/babel/src.js --out-file test/babel/out.js && cd test/babel && node out.js",
2323
"test:esm": "node --experimental-modules test/esm/index.mjs",
2424
"bench": "./test/benchmarks/scripts/run-benchmarks.sh",

test/script/run_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ run_test_suite () {
7171
ls test_output/*.tap | while read f; do cat $f | ./node_modules/.bin/tap-junit > $f.junit.xml; done
7272
fi
7373

74-
if [[ $major_node_version -gt 12 ]] || [[ $major_node_version -eq 12 && $minor_node_version -ge 20 ]]; then
75-
npm run test:types # typescript@5 engines.node is >=12.20
74+
if [[ $major_node_version -gt 14 ]] || [[ $major_node_version -eq 14 && $minor_node_version -ge 17 ]]; then
75+
npm run test:types # typescript@5.1.0 engines.node is >=14.17
7676
fi
7777
if [[ $major_node_version -ne 13 ]] || [[ $minor_node_version -gt 1 ]]; then
7878
npm run test:babel

0 commit comments

Comments
 (0)