Skip to content

Commit 3cb2802

Browse files
feat: add esnext target for auto-instr-web package (#1848)
* feat: add esnext target for auto-instr-web package * remove unnecessary jsx line from tsconfig * add skipLibCheck to match tsconfig.esm
1 parent 67bb0ca commit 3cb2802

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

metapackages/auto-instrumentations-web/package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,19 @@
1313
},
1414
"main": "build/src/index.js",
1515
"module": "build/esm/index.js",
16+
"esnext": "build/esnext/index.js",
1617
"types": "build/src/index.d.ts",
1718
"repository": "open-telemetry/opentelemetry-js-contrib",
1819
"scripts": {
19-
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
20-
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
20+
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
21+
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
2122
"lint": "eslint . --ext .ts",
2223
"lint:fix": "eslint . --ext .ts --fix",
2324
"precompile": "tsc --version && lerna run version:update --scope @opentelemetry/auto-instrumentations-web --include-dependencies",
2425
"prewatch": "npm run precompile",
2526
"prepublishOnly": "npm run compile",
2627
"test:browser": "nyc karma start --single-run",
27-
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
28+
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json"
2829
},
2930
"bugs": {
3031
"url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues"
@@ -69,6 +70,12 @@
6970
"files": [
7071
"build/src/**/*.js",
7172
"build/src/**/*.js.map",
72-
"build/src/**/*.d.ts"
73+
"build/src/**/*.d.ts",
74+
"build/esm/**/*.js",
75+
"build/esm/**/*.js.map",
76+
"build/esm/**/*.d.ts",
77+
"build/esnext/**/*.js",
78+
"build/esnext/**/*.js.map",
79+
"build/esnext/**/*.d.ts"
7380
]
74-
}
81+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../tsconfig.base.esnext.json",
3+
"compilerOptions": {
4+
"rootDir": "src",
5+
"outDir": "build/esnext",
6+
"skipLibCheck": true,
7+
"tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
8+
},
9+
"include": ["src/**/*.ts"]
10+
}

0 commit comments

Comments
 (0)