Skip to content

Commit 793b6ff

Browse files
andreiborzaonurtemizkan
authored andcommitted
ref: Bump es-compatibility to ES2022 for node-based packages (#15926)
In preparation for OpenTelemetry v2, which targets ES2022, we bump the checks to ES2022 for node-based packages.
1 parent 1ab02b0 commit 793b6ff

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

packages/aws-serverless/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"clean": "rimraf build dist-awslambda-layer coverage sentry-serverless-*.tgz",
9494
"fix": "eslint . --format stylish --fix",
9595
"lint": "eslint . --format stylish",
96-
"lint:es-compatibility": "es-check es2020 ./build/npm/cjs/*.js && es-check es2020 ./build/npm/esm/*.js --module",
96+
"lint:es-compatibility": "es-check es2022 ./build/npm/cjs/*.js && es-check es2022 ./build/npm/esm/*.js --module",
9797
"test": "vitest run",
9898
"test:watch": "vitest --watch",
9999
"yalc:publish": "yalc publish --push --sig"

packages/bun/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"clean": "rimraf build coverage sentry-bun-*.tgz",
6363
"fix": "eslint . --format stylish --fix",
6464
"lint": "eslint . --format stylish",
65-
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
65+
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
6666
"install:bun": "node ./scripts/install-bun.js",
6767
"test": "run-s install:bun test:bun",
6868
"test:bun": "bun test",

packages/cloudflare/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"clean": "rimraf build coverage sentry-cloudflare-*.tgz",
8181
"fix": "eslint . --format stylish --fix",
8282
"lint": "eslint . --format stylish",
83-
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
83+
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
8484
"test": "yarn test:unit",
8585
"test:unit": "vitest run",
8686
"test:watch": "vitest --watch",

packages/deno/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"fix": "eslint . --format stylish --fix",
4040
"prelint": "yarn deno-types",
4141
"lint": "eslint . --format stylish",
42-
"lint:es-compatibility": "es-check es2020 ./build/esm/*.js --module",
42+
"lint:es-compatibility": "es-check es2022 ./build/esm/*.js --module",
4343
"install:deno": "node ./scripts/install-deno.mjs",
4444
"test": "run-s install:deno deno-types test:unit",
4545
"test:unit": "deno test --allow-read --allow-run --no-check",

packages/google-cloud-serverless/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"clean": "rimraf build coverage sentry-google-cloud-*.tgz",
7575
"fix": "eslint . --format stylish --fix",
7676
"lint": "eslint . --format stylish",
77-
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
77+
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
7878
"test": "vitest run",
7979
"test:watch": "vitest --watch",
8080
"yalc:publish": "yalc publish --push --sig"

packages/nestjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"clean": "rimraf build coverage sentry-nestjs-*.tgz ./*.d.ts ./*.d.ts.map",
7878
"fix": "eslint . --format stylish --fix",
7979
"lint": "eslint . --format stylish",
80-
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
80+
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
8181
"test": "vitest run",
8282
"test:watch": "vitest --watch",
8383
"yalc:publish": "yalc publish --push --sig"

packages/node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"clean": "rimraf build coverage sentry-node-*.tgz",
120120
"fix": "eslint . --format stylish --fix",
121121
"lint": "eslint . --format stylish",
122-
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
122+
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
123123
"test": "yarn test:unit",
124124
"test:unit": "vitest run",
125125
"test:watch": "vitest --watch",

packages/opentelemetry/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"clean": "rimraf build coverage sentry-opentelemetry-*.tgz",
7474
"fix": "eslint . --format stylish --fix",
7575
"lint": "eslint . --format stylish",
76-
"lint:es-compatibility": "es-check es2020 ./build/cjs/*.js && es-check es2020 ./build/esm/*.js --module",
76+
"lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module",
7777
"test": "yarn test:unit",
7878
"test:unit": "vitest run",
7979
"test:watch": "vitest --watch",

packages/profiling-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"scripts": {
4747
"clean": "rm -rf build && rm -rf lib",
4848
"lint": "eslint . --format stylish",
49-
"lint:es-compatibility": "es-check es2020 ./lib/cjs/*.js && es-check es2020 ./lib/esm/*.js --module",
49+
"lint:es-compatibility": "es-check es2022 ./lib/cjs/*.js && es-check es2022 ./lib/esm/*.js --module",
5050
"fix": "eslint . --format stylish --fix",
5151
"build": "yarn build:lib",
5252
"build:lib": "yarn build:types && rollup -c rollup.npm.config.mjs",

0 commit comments

Comments
 (0)