chore: add prepublishOnly to ensure a full build (#2844)
Co-authored-by: Gerhard Stöbich <deb2001-github@yahoo.de> Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
This commit is contained in:
parent
8182dab513
commit
1f0f6d9bf4
|
@ -15,6 +15,7 @@
|
|||
},
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
"build/esm/**/*.js",
|
||||
"build/esm/**/*.js.map",
|
||||
"build/esm/**/*.d.ts",
|
||||
"build/esnext/**/*.js",
|
||||
"build/esnext/**/*.js.map",
|
||||
"build/esnext/**/*.d.ts",
|
||||
"build/src/**/*.js",
|
||||
"build/src/**/*.js.map",
|
||||
"build/src/**/*.d.ts",
|
||||
|
@ -34,6 +37,7 @@
|
|||
"README.md"
|
||||
],
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
|
||||
|
@ -43,21 +44,21 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@opentelemetry/api-metrics": "0.27.0",
|
||||
"@opentelemetry/core": "~1.0.0",
|
||||
"@opentelemetry/core": "~1.1.0",
|
||||
"@opentelemetry/instrumentation": "0.27.0",
|
||||
"@opentelemetry/resource-detector-aws": "~1.0.0",
|
||||
"@opentelemetry/resource-detector-gcp": "~0.26.0",
|
||||
"@opentelemetry/resources": "~1.0.0",
|
||||
"@opentelemetry/resources": "~1.1.0",
|
||||
"@opentelemetry/sdk-metrics-base": "0.27.0",
|
||||
"@opentelemetry/sdk-trace-base": "~1.0.0",
|
||||
"@opentelemetry/sdk-trace-node": "~1.0.0"
|
||||
"@opentelemetry/sdk-trace-base": "~1.1.0",
|
||||
"@opentelemetry/sdk-trace-node": "~1.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@opentelemetry/api": ">=1.0.0 <1.1.0"
|
||||
"@opentelemetry/api": ">=1.1.0 <1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@opentelemetry/api": "~1.0.3",
|
||||
"@opentelemetry/context-async-hooks": "1.0.1",
|
||||
"@opentelemetry/api": "~1.1.0",
|
||||
"@opentelemetry/context-async-hooks": "1.1.0",
|
||||
"@types/mocha": "8.2.3",
|
||||
"@types/node": "14.17.33",
|
||||
"@types/semver": "7.3.9",
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts --exclude 'test/platform/browser/**/*.ts'",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/index-webpack.ts'",
|
||||
"test:browser": "nyc karma start --single-run",
|
||||
"tdd": "npm run tdd:node",
|
||||
"tdd:node": "npm run test -- --watch-extensions ts --watch",
|
||||
"tdd:browser": "karma start",
|
||||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
"lint:fix": "eslint . --ext .ts --fix",
|
||||
"version": "node ../../scripts/version-update.js",
|
||||
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
|
||||
"watch": "tsc --build --watch tsconfig.all.json",
|
||||
"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",
|
||||
"prewatch": "npm run precompile"
|
||||
},
|
||||
|
@ -38,6 +39,9 @@
|
|||
"build/esm/**/*.js",
|
||||
"build/esm/**/*.js.map",
|
||||
"build/esm/**/*.d.ts",
|
||||
"build/esnext/**/*.js",
|
||||
"build/esnext/**/*.js.map",
|
||||
"build/esnext/**/*.d.ts",
|
||||
"build/src/**/*.js",
|
||||
"build/src/**/*.js.map",
|
||||
"build/src/**/*.d.ts",
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.json" },
|
||||
{ "path": "./tsconfig.esm.json" },
|
||||
{ "path": "./tsconfig.esnext.json" }
|
||||
]
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.esnext.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "build/esnext",
|
||||
"tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "../opentelemetry-core/tsconfig.esnext.json"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -14,6 +14,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"lint": "eslint . --ext .ts",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"types": "build/src/index.d.ts",
|
||||
"repository": "open-telemetry/opentelemetry-js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"clean": "tsc --build --clean",
|
||||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",
|
||||
|
|
|
@ -11,6 +11,10 @@
|
|||
"license": "Apache-2.0",
|
||||
"main": "build/src/index.js",
|
||||
"types": "build/src/index.d.ts",
|
||||
"Add these entries if browser is supported": {
|
||||
"module": "build/esm/index.js",
|
||||
"esnext": "build/esnext/index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/open-telemetry/opentelemetry-js.git"
|
||||
|
@ -22,6 +26,7 @@
|
|||
"node": ">=8.5.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run compile",
|
||||
"compile": "tsc --build",
|
||||
"version": "node ../../scripts/version-update.js",
|
||||
"clean": "tsc --build --clean",
|
||||
|
@ -39,11 +44,11 @@
|
|||
"watch": "tsc --build --watch"
|
||||
},
|
||||
"Add/change these to scripts if browser is supported": {
|
||||
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
|
||||
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
|
||||
"compile": "tsc --build tsconfig.all.json",
|
||||
"clean": "tsc --build --clean tsconfig.all.json",
|
||||
"test:browser": "nyc karma start --single-run",
|
||||
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
|
||||
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
|
||||
"watch": "tsc --build --watch tsconfig.all.json"
|
||||
},
|
||||
"keywords": [
|
||||
"opentelemetry",
|
||||
|
@ -65,7 +70,10 @@
|
|||
"Add these to files if browser is supported": [
|
||||
"build/esm/**/*.js",
|
||||
"build/esm/**/*.js.map",
|
||||
"build/esm/**/*.d.ts"
|
||||
"build/esm/**/*.d.ts",
|
||||
"build/esnext/**/*.js",
|
||||
"build/esnext/**/*.js.map",
|
||||
"build/esnext/**/*.d.ts"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/node": "14.17.33",
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.json" },
|
||||
{ "path": "./tsconfig.esm.json" },
|
||||
{ "path": "./tsconfig.esnext.json" }
|
||||
]
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.esnext.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "build/esnext",
|
||||
"tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue