Skip to content

Commit 1f0f6d9

Browse files
legendecasFlarnadyladan
authored
chore: add prepublishOnly to ensure a full build (#2844)
Co-authored-by: Gerhard Stöbich <[email protected]> Co-authored-by: Daniel Dyla <[email protected]>
1 parent 8182dab commit 1f0f6d9

File tree

34 files changed

+102
-14
lines changed

34 files changed

+102
-14
lines changed

experimental/packages/opentelemetry-api-metrics/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"repository": "open-telemetry/opentelemetry-js",
1717
"scripts": {
18+
"prepublishOnly": "npm run compile",
1819
"compile": "tsc --build tsconfig.all.json",
1920
"clean": "tsc --build --clean tsconfig.all.json",
2021
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",

experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "build/src/index.d.ts",
77
"repository": "open-telemetry/opentelemetry-js",
88
"scripts": {
9+
"prepublishOnly": "npm run compile",
910
"compile": "tsc --build",
1011
"clean": "tsc --build --clean",
1112
"lint": "eslint . --ext .ts",

experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
1515
},
1616
"scripts": {
17+
"prepublishOnly": "npm run compile",
1718
"compile": "tsc --build tsconfig.all.json",
1819
"clean": "tsc --build --clean tsconfig.all.json",
1920
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",

experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "build/src/index.d.ts",
77
"repository": "open-telemetry/opentelemetry-js",
88
"scripts": {
9+
"prepublishOnly": "npm run compile",
910
"compile": "tsc --build",
1011
"clean": "tsc --build --clean",
1112
"lint": "eslint . --ext .ts",

experimental/packages/opentelemetry-exporter-prometheus/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "build/src/index.d.ts",
77
"repository": "open-telemetry/opentelemetry-js",
88
"scripts": {
9+
"prepublishOnly": "npm run compile",
910
"compile": "tsc --build",
1011
"clean": "tsc --build --clean",
1112
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",

experimental/packages/opentelemetry-instrumentation-fetch/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"types": "build/src/index.d.ts",
99
"repository": "open-telemetry/opentelemetry-js",
1010
"scripts": {
11+
"prepublishOnly": "npm run compile",
1112
"compile": "tsc --build tsconfig.all.json",
1213
"clean": "tsc --build --clean tsconfig.all.json",
1314
"lint": "eslint . --ext .ts",

experimental/packages/opentelemetry-instrumentation-grpc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "build/src/index.d.ts",
77
"repository": "open-telemetry/opentelemetry-js",
88
"scripts": {
9+
"prepublishOnly": "npm run compile",
910
"compile": "tsc --build",
1011
"clean": "tsc --build --clean",
1112
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",

experimental/packages/opentelemetry-instrumentation-http/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "build/src/index.d.ts",
77
"repository": "open-telemetry/opentelemetry-js",
88
"scripts": {
9+
"prepublishOnly": "npm run compile",
910
"compile": "tsc --build",
1011
"clean": "tsc --build --clean",
1112
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",

experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"types": "build/src/index.d.ts",
99
"repository": "open-telemetry/opentelemetry-js",
1010
"scripts": {
11+
"prepublishOnly": "npm run compile",
1112
"compile": "tsc --build tsconfig.all.json",
1213
"clean": "tsc --build --clean tsconfig.all.json",
1314
"lint": "eslint . --ext .ts",

experimental/packages/opentelemetry-instrumentation/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"build/esm/**/*.js",
2727
"build/esm/**/*.js.map",
2828
"build/esm/**/*.d.ts",
29+
"build/esnext/**/*.js",
30+
"build/esnext/**/*.js.map",
31+
"build/esnext/**/*.d.ts",
2932
"build/src/**/*.js",
3033
"build/src/**/*.js.map",
3134
"build/src/**/*.d.ts",
@@ -34,6 +37,7 @@
3437
"README.md"
3538
],
3639
"scripts": {
40+
"prepublishOnly": "npm run compile",
3741
"compile": "tsc --build tsconfig.all.json",
3842
"clean": "tsc --build --clean tsconfig.all.json",
3943
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",

0 commit comments

Comments
 (0)