|
3 | 3 | "version": "0.43.0",
|
4 | 4 | "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector using protobuf over HTTP",
|
5 | 5 | "main": "build/src/index.js",
|
| 6 | + "module": "build/esm/index.js", |
| 7 | + "esnext": "build/esnext/index.js", |
6 | 8 | "types": "build/src/index.d.ts",
|
7 | 9 | "repository": "open-telemetry/opentelemetry-js",
|
8 | 10 | "scripts": {
|
9 | 11 | "prepublishOnly": "npm run compile",
|
10 |
| - "compile": "tsc --build", |
11 |
| - "clean": "tsc --build --clean", |
| 12 | + "compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json", |
| 13 | + "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json", |
12 | 14 | "lint": "eslint . --ext .ts",
|
13 | 15 | "lint:fix": "eslint . --ext .ts --fix",
|
14 | 16 | "tdd": "npm run test -- --watch-extensions ts --watch",
|
15 |
| - "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", |
| 17 | + "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", |
16 | 18 | "version": "node ../../../scripts/version-update.js",
|
17 |
| - "watch": "tsc -w", |
| 19 | + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", |
18 | 20 | "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
|
19 | 21 | "prewatch": "npm run precompile",
|
20 | 22 | "peer-api-check": "node ../../../scripts/peer-api-check.js",
|
|
35 | 37 | "node": ">=14"
|
36 | 38 | },
|
37 | 39 | "files": [
|
| 40 | + "build/esm/**/*.js", |
| 41 | + "build/esm/**/*.js.map", |
| 42 | + "build/esm/**/*.d.ts", |
| 43 | + "build/esnext/**/*.js", |
| 44 | + "build/esnext/**/*.js.map", |
| 45 | + "build/esnext/**/*.d.ts", |
38 | 46 | "build/src/**/*.js",
|
39 | 47 | "build/src/**/*.js.map",
|
40 | 48 | "build/src/**/*.d.ts",
|
|
0 commit comments