From 7e5da4152d6a73048aa53a7c41dc49b108a1a57a Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Fri, 18 Dec 2020 09:16:18 -0500 Subject: [PATCH] chore: speed up builds (#1748) --- .github/workflows/backcompat.yml | 36 ---- .github/workflows/docs.yml | 11 +- .github/workflows/lint.yml | 11 +- .github/workflows/unit-test.yml | 4 + .github/workflows/w3c-integration-test.yml | 8 +- CONTRIBUTING.md | 114 +++++++++- README.md | 5 +- backwards-compatability/node10/tsconfig.json | 18 ++ backwards-compatability/node12/tsconfig.json | 18 ++ backwards-compatability/node8/tsconfig.json | 18 ++ .../package.json | 6 + .../tsconfig.json | 22 ++ package.json | 16 +- packages/opentelemetry-api/package.json | 11 +- packages/opentelemetry-api/tsconfig.docs.json | 15 ++ packages/opentelemetry-api/tsconfig.json | 13 +- .../package.json | 8 +- .../tsconfig.json | 7 +- .../opentelemetry-context-base/package.json | 10 +- .../opentelemetry-context-base/tsconfig.json | 2 +- .../package.json | 9 +- .../tsconfig.json | 11 +- .../opentelemetry-context-zone/package.json | 9 +- .../opentelemetry-context-zone/tsconfig.json | 11 +- packages/opentelemetry-core/package.json | 10 +- packages/opentelemetry-core/tsconfig.json | 13 +- .../package.json | 8 +- .../tsconfig.json | 22 +- .../package.json | 8 +- .../tsconfig.json | 22 +- .../package.json | 10 +- .../tsconfig.json | 19 +- .../package.json | 10 +- .../tsconfig.json | 16 +- .../package.json | 10 +- .../tsconfig.json | 13 +- .../package.json | 10 +- .../tsconfig.json | 16 +- .../opentelemetry-grpc-utils/package.json | 8 +- .../opentelemetry-grpc-utils/tsconfig.json | 25 ++- .../package.json | 10 +- .../tsconfig.json | 28 ++- .../package.json | 10 +- .../tsconfig.json | 28 ++- .../package.json | 10 +- .../tsconfig.json | 7 +- packages/opentelemetry-metrics/package.json | 10 +- packages/opentelemetry-metrics/tsconfig.json | 13 +- packages/opentelemetry-node/package.json | 10 +- packages/opentelemetry-node/tsconfig.json | 22 +- .../opentelemetry-plugin-fetch/package.json | 10 +- .../opentelemetry-plugin-fetch/tsconfig.json | 22 +- .../opentelemetry-plugin-grpc-js/package.json | 8 +- .../tsconfig.json | 28 ++- .../opentelemetry-plugin-grpc/package.json | 8 +- .../opentelemetry-plugin-grpc/tsconfig.json | 28 ++- .../opentelemetry-plugin-http/package.json | 10 +- .../opentelemetry-plugin-http/tsconfig.json | 25 ++- .../opentelemetry-plugin-https/package.json | 8 +- .../opentelemetry-plugin-https/tsconfig.json | 28 ++- .../opentelemetry-propagator-b3/package.json | 11 +- .../opentelemetry-propagator-b3/tsconfig.json | 10 +- .../package.json | 8 +- .../tsconfig.json | 18 +- .../package.json | 8 +- .../tsconfig.json | 15 +- packages/opentelemetry-resources/package.json | 8 +- .../opentelemetry-resources/tsconfig.json | 15 +- packages/opentelemetry-sdk-node/package.json | 10 +- packages/opentelemetry-sdk-node/tsconfig.json | 34 ++- .../package.json | 10 +- .../tsconfig.json | 2 +- .../package.json | 8 +- .../tsconfig.json | 13 +- packages/opentelemetry-tracing/package.json | 10 +- packages/opentelemetry-tracing/tsconfig.json | 19 +- packages/opentelemetry-web/package.json | 10 +- packages/opentelemetry-web/tsconfig.json | 31 ++- packages/template/.eslintignore | 2 + packages/template/.eslintrc.js | 9 + packages/template/.npmignore | 4 + packages/template/LICENSE | 201 ++++++++++++++++++ packages/template/README.md | 9 + packages/template/karma.conf.js | 24 +++ packages/template/package.json | 87 ++++++++ packages/template/src/index.ts | 0 packages/template/tsconfig.json | 13 ++ .../tsconfig.base.json => tsconfig.base.json | 1 + .../tsconfig.es5.json => tsconfig.es5.json | 0 tsconfig.json | 117 ++++++++++ 90 files changed, 1360 insertions(+), 283 deletions(-) delete mode 100644 .github/workflows/backcompat.yml create mode 100644 backwards-compatability/node10/tsconfig.json create mode 100644 backwards-compatability/node12/tsconfig.json create mode 100644 backwards-compatability/node8/tsconfig.json create mode 100644 integration-tests/propagation-validation-server/tsconfig.json create mode 100644 packages/opentelemetry-api/tsconfig.docs.json create mode 100644 packages/template/.eslintignore create mode 100644 packages/template/.eslintrc.js create mode 100644 packages/template/.npmignore create mode 100644 packages/template/LICENSE create mode 100644 packages/template/README.md create mode 100644 packages/template/karma.conf.js create mode 100644 packages/template/package.json create mode 100644 packages/template/src/index.ts create mode 100644 packages/template/tsconfig.json rename packages/tsconfig.base.json => tsconfig.base.json (95%) rename packages/tsconfig.es5.json => tsconfig.es5.json (100%) create mode 100644 tsconfig.json diff --git a/.github/workflows/backcompat.yml b/.github/workflows/backcompat.yml deleted file mode 100644 index 93ef7428e2..0000000000 --- a/.github/workflows/backcompat.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Backwards Compatability - -on: - push: - branches: [master] - pull_request: - -jobs: - types-node: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: restore lerna - uses: actions/cache@master # must use unreleased master to cache multiple paths - id: cache - with: - path: | - node_modules - packages/*/node_modules - metapackages/*/node_modules - key: ${{ runner.os }}-${{ hashFiles('**/package.json') }} - - - name: Bootstrap - if: steps.cache.outputs.cache-hit != 'true' - run: | - npm install --only=dev --ignore-scripts - npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev - - - name: Install and Build API Dependencies - run: npx lerna bootstrap --no-ci --scope backcompat-* --include-filtered-dependencies - - - name: - run: | - npm run test:backcompat diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c7c67816fd..9ed8ba8fbe 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,11 +11,14 @@ jobs: - name: Checkout 🛎️ uses: actions/checkout@v2 - - name: Install and Build 🔧 - run: | + - name: Install Dependencies npm install --ignore-scripts - npx lerna bootstrap --scope @opentelemetry/api --include-filtered-dependencies - npm run docs + npx lerna bootstrap --no-ci --scope @opentelemetry/api --include-dependencies + + - name: Build 🔧 + run: | + npx lerna run compile --scope @opentelemetry/api + npx lerna run docs - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@releases/v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f24f2dd2c5..c6407aa0be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -48,8 +48,15 @@ jobs: npm run lint npm run lint:examples - - name: Install and Build API Dependencies - run: npx lerna bootstrap --no-ci --scope @opentelemetry/api --include-filtered-dependencies + - name: Install API Dependencies + run: | + npm install --ignore-scripts + npx lerna bootstrap --no-ci --scope @opentelemetry/api --include-dependencies + + - name: Build 🔧 + run: | + npx lerna run compile --scope @opentelemetry/api + npx lerna run docs - name: Test Docs run: npm run docs-test diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index a9e94981c4..d40859a133 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -30,6 +30,8 @@ jobs: run: npm install --ignore-scripts - name: Boostrap Dependencies run: npx lerna bootstrap --no-ci + - name: Build + run: npm run compile - name: Unit tests run: npm run test - name: Report Coverage @@ -58,6 +60,8 @@ jobs: run: npm install --ignore-scripts - name: Boostrap Dependencies run: npx lerna bootstrap --no-ci + - name: Build + run: npm run compile - name: Unit tests run: npm run test:browser - name: Report Coverage diff --git a/.github/workflows/w3c-integration-test.yml b/.github/workflows/w3c-integration-test.yml index 4a1864d93e..2ac16c3e46 100644 --- a/.github/workflows/w3c-integration-test.yml +++ b/.github/workflows/w3c-integration-test.yml @@ -12,10 +12,14 @@ jobs: - name: Checkout 🛎️ uses: actions/checkout@v2 - - name: Install and Build 🔧 + - name: Install run: | npm install --ignore-scripts - npx lerna bootstrap --scope=propagation-validation-server --include-dependencies + npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies + + - name: Build 🔧 + run: npm run compile + working-directory: ./integration-tests/propagation-validation-server - name: Run W3C Test harness run: ./integration-tests/tracecontext-integration-test.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1fcba1986e..9b11c62a81 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,19 @@ We'd love your help! +## Development Quick Start + +To get the project started quickly, you can follow these steps. For more +detailed instructions, see [development](#development) below. + +```sh +git clone https://github.com/open-telemetry/opentelemetry-js.git +cd opentelemetry-js +npm install +npm run compile +npm test +``` + ## Report a bug or requesting feature Reporting bugs is an important contribution. Please make sure to include: @@ -57,15 +70,102 @@ Remember to always work in a branch of your local copy, as you might otherwise h Please also see [GitHub workflow](https://github.com/open-telemetry/community/blob/master/CONTRIBUTING.md#github-workflow) section of general project contributing guide. -### Running the tests +## Development + +### Tools used + +- [NPM](https://npmjs.com) +- [TypeScript](https://www.typescriptlang.org/) +- [lerna](https://github.com/lerna/lerna) to manage dependencies, compilations, and links between packages. Most lerna commands should be run by calling the provided npm scripts. +- [MochaJS](https://mochajs.org/) for tests +- [gts](https://github.com/google/gts) +- [eslint](https://eslint.org/) + +Most of the commands needed for development are accessed as [npm scripts](https://docs.npmjs.com/cli/v6/using-npm/scripts). It is recommended that you use the provided npm scripts instead of using `lerna run` in most cases. + +### Install dependencies + +This will install all dependencies for the root project and all modules managed by `lerna`. By default, a `postinstall` script will run `lerna bootstrap` automatically after an install. This can be avoided using the `--ignore-scripts` option if desired. + +```sh +npm install +``` + +### Compile modules + +All modules are managed as a composite typescript project using [Project References](https://www.typescriptlang.org/docs/handbook/project-references.html). This means that a breaking change in one module will be reflected in compilations of its dependent modules automatically. + +DO NOT use lerna to compile all modules unless you know what you are doing because this will cause a new typescript process to be spawned for every module in the project. + +```sh +# Build all modules +npm run compile + +# Remove compiled output +npm run clean +``` + +These commands can also be run for specific packages instead of the whole project, which can speed up compilations while developing. + +```sh +# Build a single module and all of its dependencies +cd packages/opentelemetry-module-name +npm run compile +``` + +Finally, builds can be run continuously as files change using the `watch` npm script. + +```sh +# Build all modules +npm run watch + +# Build a single module and all of its dependencies +cd packages/opentelemetry-module-name +npm run watch +``` + +### Running tests + +Similar to compilations, tests can be run from the root to run all tests or from a single module to run only the tests for that module. + +```sh +# Test all modules +npm test + +# Test a single module +cd packages/opentelemetry-module-name +npm test +``` + +### Linting + +This project uses a combination of `gts` and `eslint`. Just like tests and compilation, linting can be done for all packages or only a single package. + +```sh +# Lint all modules +npm lint + +# Lint a single module +cd packages/opentelemetry-module-name +npm lint +``` + +There is also a script which will automatically fix many linting errors. + +```sh +# Lint all modules, fixing errors +npm lint:fix + +# Lint a single module, fixing errors +cd packages/opentelemetry-module-name +npm lint:fix +``` + +### Adding a package -The `opentelemetry-js` project is written in TypeScript. +To add a new package, copy `packages/template` to your new package directory and modify the `package.json` file to reflect your desired package settings. If the package will not support browser, the `karma.conf` file may be deleted. If the package will support es5 targets, the reference to `tsconfig.base.json` in `tsconfig.json` should be changed to `tsconfig.es5.json`. -- `npm install` to install dependencies. -- `npm run compile` compiles the code, checking for type errors. -- `npm run bootstrap` Bootstrap the packages in the current Lerna repo. Installs all of their dependencies and links any cross-dependencies. -- `npm test` tests code the same way that our CI will test it. -- `npm run lint:fix` lint (and maybe fix) any changes. +After adding the package, run `npm install` from the root of the project. This will update the `tsconfig.json` project references automatically and install all dependencies in your new package. ### Guidelines for Pull Requests diff --git a/README.md b/README.md index 7465856da0..a5dda53e57 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,9 @@ estimates, and subject to change. ## Contributing We'd love your help!. Use tags [up-for-grabs][up-for-grabs-issues] and -[good first issue][good-first-issues] to get started with the project. Follow -[CONTRIBUTING](CONTRIBUTING.md) guide to report issues or submit a proposal. +[good first issue][good-first-issues] to get started with the project. For +instructions to build and make changes to this project, see the +[CONTRIBUTING](CONTRIBUTING.md) guide. We have a weekly SIG meeting! See the [community page](https://github.com/open-telemetry/community#javascript-sdk) for meeting details and notes. diff --git a/backwards-compatability/node10/tsconfig.json b/backwards-compatability/node10/tsconfig.json new file mode 100644 index 0000000000..0e5977e0b9 --- /dev/null +++ b/backwards-compatability/node10/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.es5.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "index.ts" + ], + "references": [ + { + "path": "../../packages/opentelemetry-sdk-node" + }, + { + "path": "../../packages/opentelemetry-tracing" + } + ] +} diff --git a/backwards-compatability/node12/tsconfig.json b/backwards-compatability/node12/tsconfig.json new file mode 100644 index 0000000000..0e5977e0b9 --- /dev/null +++ b/backwards-compatability/node12/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.es5.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "index.ts" + ], + "references": [ + { + "path": "../../packages/opentelemetry-sdk-node" + }, + { + "path": "../../packages/opentelemetry-tracing" + } + ] +} diff --git a/backwards-compatability/node8/tsconfig.json b/backwards-compatability/node8/tsconfig.json new file mode 100644 index 0000000000..0e5977e0b9 --- /dev/null +++ b/backwards-compatability/node8/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.es5.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "index.ts" + ], + "references": [ + { + "path": "../../packages/opentelemetry-sdk-node" + }, + { + "path": "../../packages/opentelemetry-tracing" + } + ] +} diff --git a/integration-tests/propagation-validation-server/package.json b/integration-tests/propagation-validation-server/package.json index 4a428a5382..1fab21572c 100644 --- a/integration-tests/propagation-validation-server/package.json +++ b/integration-tests/propagation-validation-server/package.json @@ -7,6 +7,9 @@ "repository": "open-telemetry/opentelemetry-js", "author": "OpenTelemetry Authors", "license": "Apache-2.0", + "scripts": { + "compile": "tsc --build" + }, "dependencies": { "@opentelemetry/api": "^0.14.0", "@opentelemetry/context-async-hooks": "^0.14.0", @@ -15,5 +18,8 @@ "axios": "0.21.0", "body-parser": "1.19.0", "express": "4.17.1" + }, + "devDependencies": { + "typescript": "3.9.7" } } diff --git a/integration-tests/propagation-validation-server/tsconfig.json b/integration-tests/propagation-validation-server/tsconfig.json new file mode 100644 index 0000000000..187a1228e9 --- /dev/null +++ b/integration-tests/propagation-validation-server/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [], + "references": [ + { + "path": "../../packages/opentelemetry-api" + }, + { + "path": "../../packages/opentelemetry-context-async-hooks" + }, + { + "path": "../../packages/opentelemetry-core" + }, + { + "path": "../../packages/opentelemetry-tracing" + } + ] +} diff --git a/package.json b/package.json index 16a0f9389e..511657f6c3 100644 --- a/package.json +++ b/package.json @@ -5,20 +5,21 @@ "main": "build/src/index.js", "types": "build/src/index.d.ts", "scripts": { + "compile": "tsc --build", + "watch": "tsc --build --watch", + "clean": "tsc --build --clean", "bench": "node benchmark", - "clean": "lerna run clean", - "postinstall": "npm run bootstrap", - "precompile": "tsc --version", + "postinstall": "update-ts-references && npm run bootstrap", + "postcompile": "npm run submodule && npm run protos:copy", + "submodule": "git submodule sync --recursive && git submodule update --init --recursive", + "protos:copy": "lerna run protos:copy", "version:update": "lerna run version:update", - "compile": "lerna run compile", "test": "lerna run test", "test:browser": "lerna run test:browser", "test:backcompat": "lerna run test:backcompat", "bootstrap": "lerna bootstrap", - "bump": "lerna publish", "codecov": "lerna run codecov", "codecov:browser": "lerna run codecov:browser", - "changelog": "lerna-changelog", "predocs-test": "npm run docs", "docs-test": "lerna run docs-test", "docs": "lerna run docs", @@ -57,7 +58,8 @@ "lerna": "3.22.1", "lerna-changelog": "1.0.1", "markdownlint-cli": "0.25.0", - "typescript": "3.9.7" + "typescript": "3.9.7", + "update-ts-references": "^1.3.0" }, "husky": { "hooks": { diff --git a/packages/opentelemetry-api/package.json b/packages/opentelemetry-api/package.json index 62e48f134f..f3e0d5e40f 100644 --- a/packages/opentelemetry-api/package.json +++ b/packages/opentelemetry-api/package.json @@ -10,6 +10,8 @@ }, "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "test:browser": "nyc karma start --single-run", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", @@ -17,13 +19,10 @@ "build": "npm run compile", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", + "version": "node ../../scripts/version-update.js", "docs-test": "linkinator docs/out --silent --skip david-dm.org", - "docs": "typedoc --tsconfig tsconfig.json --exclude test/**/*.ts", - "prepare": "npm run compile", - "watch": "tsc -w" + "docs": "typedoc --tsconfig tsconfig.docs.json", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-api/tsconfig.docs.json b/packages/opentelemetry-api/tsconfig.docs.json new file mode 100644 index 0000000000..627fa3ff3e --- /dev/null +++ b/packages/opentelemetry-api/tsconfig.docs.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "src/**/*.ts" + ], + "typedocOptions": { + "name": "OpenTelemetry API for JavaScript", + "out": "docs/out", + "mode": "file", + "hideGenerator": true + } +} diff --git a/packages/opentelemetry-api/tsconfig.json b/packages/opentelemetry-api/tsconfig.json index 79cc5cefac..8223abee15 100644 --- a/packages/opentelemetry-api/tsconfig.json +++ b/packages/opentelemetry-api/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.es5", + "extends": "../../tsconfig.es5.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -8,10 +8,9 @@ "src/**/*.ts", "test/**/*.ts" ], - "typedocOptions": { - "name": "OpenTelemetry API for JavaScript", - "out": "docs/out", - "mode": "file", - "hideGenerator": true - } + "references": [ + { + "path": "../opentelemetry-context-base" + } + ] } diff --git a/packages/opentelemetry-context-async-hooks/package.json b/packages/opentelemetry-context-async-hooks/package.json index 66c2fcbcbf..349d03fec9 100644 --- a/packages/opentelemetry-context-async-hooks/package.json +++ b/packages/opentelemetry-context-async-hooks/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-async-hooks/tsconfig.json b/packages/opentelemetry-context-async-hooks/tsconfig.json index a2042cd68b..bf8999c67b 100644 --- a/packages/opentelemetry-context-async-hooks/tsconfig.json +++ b/packages/opentelemetry-context-async-hooks/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,10 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-context-base" + } ] } diff --git a/packages/opentelemetry-context-base/package.json b/packages/opentelemetry-context-base/package.json index 85534bf2d7..76cb1a6587 100644 --- a/packages/opentelemetry-context-base/package.json +++ b/packages/opentelemetry-context-base/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-base/tsconfig.json b/packages/opentelemetry-context-base/tsconfig.json index ca8d7656bb..b8d88215e4 100644 --- a/packages/opentelemetry-context-base/tsconfig.json +++ b/packages/opentelemetry-context-base/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.es5", + "extends": "../../tsconfig.es5.json", "compilerOptions": { "rootDir": ".", "outDir": "build" diff --git a/packages/opentelemetry-context-zone-peer-dep/package.json b/packages/opentelemetry-context-zone-peer-dep/package.json index 22e84b65f2..45eafacde6 100644 --- a/packages/opentelemetry-context-zone-peer-dep/package.json +++ b/packages/opentelemetry-context-zone-peer-dep/package.json @@ -6,16 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "clean": "rimraf build/*", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", + "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc -w" + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-zone-peer-dep/tsconfig.json b/packages/opentelemetry-context-zone-peer-dep/tsconfig.json index 33ecce9d6d..2e7c26e39c 100644 --- a/packages/opentelemetry-context-zone-peer-dep/tsconfig.json +++ b/packages/opentelemetry-context-zone-peer-dep/tsconfig.json @@ -1,13 +1,20 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build", "skipLibCheck": true }, - "files": [ "node_modules/zone.js/dist/zone.js.d.ts"], + "files": [ + "node_modules/zone.js/dist/zone.js.d.ts" + ], "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-context-base" + } ] } diff --git a/packages/opentelemetry-context-zone/package.json b/packages/opentelemetry-context-zone/package.json index 5f7963ef2f..5ac8ee0b36 100644 --- a/packages/opentelemetry-context-zone/package.json +++ b/packages/opentelemetry-context-zone/package.json @@ -6,13 +6,12 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "clean": "rimraf build/*", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-zone/tsconfig.json b/packages/opentelemetry-context-zone/tsconfig.json index 33ecce9d6d..e714c6958f 100644 --- a/packages/opentelemetry-context-zone/tsconfig.json +++ b/packages/opentelemetry-context-zone/tsconfig.json @@ -1,13 +1,20 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build", "skipLibCheck": true }, - "files": [ "node_modules/zone.js/dist/zone.js.d.ts"], + "files": [ + "node_modules/zone.js/dist/zone.js.d.ts" + ], "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-context-zone-peer-dep" + } ] } diff --git a/packages/opentelemetry-core/package.json b/packages/opentelemetry-core/package.json index 8e9fda870b..53a72577a6 100644 --- a/packages/opentelemetry-core/package.json +++ b/packages/opentelemetry-core/package.json @@ -10,6 +10,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts --exclude 'test/platform/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", "tdd": "npm run tdd:node", @@ -17,14 +19,10 @@ "tdd:browser": "karma start", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "version:update": "node ../../scripts/version-update.js", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-core/tsconfig.json b/packages/opentelemetry-core/tsconfig.json index a2042cd68b..838b29bc26 100644 --- a/packages/opentelemetry-core/tsconfig.json +++ b/packages/opentelemetry-core/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,16 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-propagator-b3" + } ] } diff --git a/packages/opentelemetry-exporter-collector-grpc/package.json b/packages/opentelemetry-exporter-collector-grpc/package.json index c2115119d4..a0f40a4c49 100644 --- a/packages/opentelemetry-exporter-collector-grpc/package.json +++ b/packages/opentelemetry-exporter-collector-grpc/package.json @@ -6,18 +6,16 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { - "clean": "rimraf build/*", - "compile": "npm run version:update && tsc -p .", + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "postcompile": "npm run submodule && npm run protos:copy", - "precompile": "tsc --version", - "prepare": "npm run compile", "protos:copy": "cpx protos/opentelemetry/**/*.* build/protos/opentelemetry", "submodule": "git submodule sync --recursive && git submodule update --init --recursive", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", - "version:update": "node ../../scripts/version-update.js", + "version": "node ../../scripts/version-update.js", "watch": "npm run protos:copy && tsc -w" }, "keywords": [ diff --git a/packages/opentelemetry-exporter-collector-grpc/tsconfig.json b/packages/opentelemetry-exporter-collector-grpc/tsconfig.json index a2042cd68b..bfdc997b94 100644 --- a/packages/opentelemetry-exporter-collector-grpc/tsconfig.json +++ b/packages/opentelemetry-exporter-collector-grpc/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,25 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-exporter-collector" + }, + { + "path": "../opentelemetry-metrics" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-exporter-collector-proto/package.json b/packages/opentelemetry-exporter-collector-proto/package.json index 36b0c3fea0..ccd3d88868 100644 --- a/packages/opentelemetry-exporter-collector-proto/package.json +++ b/packages/opentelemetry-exporter-collector-proto/package.json @@ -6,18 +6,16 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { - "clean": "rimraf build/*", - "compile": "npm run version:update && tsc -p .", + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "postcompile": "npm run submodule && npm run protos:copy", - "precompile": "tsc --version", - "prepare": "npm run compile", "protos:copy": "cpx protos/opentelemetry/**/*.* build/protos/opentelemetry", "submodule": "git submodule sync --recursive && git submodule update --init --recursive", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", - "version:update": "node ../../scripts/version-update.js", + "version": "node ../../scripts/version-update.js", "watch": "npm run protos:copy && tsc -w" }, "keywords": [ diff --git a/packages/opentelemetry-exporter-collector-proto/tsconfig.json b/packages/opentelemetry-exporter-collector-proto/tsconfig.json index a2042cd68b..bfdc997b94 100644 --- a/packages/opentelemetry-exporter-collector-proto/tsconfig.json +++ b/packages/opentelemetry-exporter-collector-proto/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,25 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-exporter-collector" + }, + { + "path": "../opentelemetry-metrics" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-exporter-collector/package.json b/packages/opentelemetry-exporter-collector/package.json index d162cc97d3..7e729c1690 100644 --- a/packages/opentelemetry-exporter-collector/package.json +++ b/packages/opentelemetry-exporter-collector/package.json @@ -10,19 +10,17 @@ "./build/src/platform/index.js": "./build/src/platform/browser/index.js" }, "scripts": { - "clean": "rimraf build/*", + "compile": "tsc --build", + "clean": "tsc --build --clean", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", - "version:update": "node ../../scripts/version-update.js", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-collector/tsconfig.json b/packages/opentelemetry-exporter-collector/tsconfig.json index a2042cd68b..4410230d44 100644 --- a/packages/opentelemetry-exporter-collector/tsconfig.json +++ b/packages/opentelemetry-exporter-collector/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,22 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-metrics" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-exporter-jaeger/package.json b/packages/opentelemetry-exporter-jaeger/package.json index 5e10dde5ee..a92a8249bf 100644 --- a/packages/opentelemetry-exporter-jaeger/package.json +++ b/packages/opentelemetry-exporter-jaeger/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-jaeger/tsconfig.json b/packages/opentelemetry-exporter-jaeger/tsconfig.json index a2042cd68b..2496415881 100644 --- a/packages/opentelemetry-exporter-jaeger/tsconfig.json +++ b/packages/opentelemetry-exporter-jaeger/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,19 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-exporter-prometheus/package.json b/packages/opentelemetry-exporter-prometheus/package.json index 02ac6d935d..8047b2dfea 100644 --- a/packages/opentelemetry-exporter-prometheus/package.json +++ b/packages/opentelemetry-exporter-prometheus/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-prometheus/tsconfig.json b/packages/opentelemetry-exporter-prometheus/tsconfig.json index a2042cd68b..42b254c549 100644 --- a/packages/opentelemetry-exporter-prometheus/tsconfig.json +++ b/packages/opentelemetry-exporter-prometheus/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,16 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-metrics" + } ] } diff --git a/packages/opentelemetry-exporter-zipkin/package.json b/packages/opentelemetry-exporter-zipkin/package.json index eb6fd88be3..1b1f16cb76 100644 --- a/packages/opentelemetry-exporter-zipkin/package.json +++ b/packages/opentelemetry-exporter-zipkin/package.json @@ -10,19 +10,17 @@ "./build/src/platform/index.js": "./build/src/platform/browser/index.js" }, "scripts": { - "clean": "rimraf build/*", + "compile": "tsc --build", + "clean": "tsc --build --clean", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", - "version:update": "node ../../scripts/version-update.js", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-zipkin/tsconfig.json b/packages/opentelemetry-exporter-zipkin/tsconfig.json index a2042cd68b..2496415881 100644 --- a/packages/opentelemetry-exporter-zipkin/tsconfig.json +++ b/packages/opentelemetry-exporter-zipkin/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,19 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-grpc-utils/package.json b/packages/opentelemetry-grpc-utils/package.json index fd4111cf60..90950eb067 100644 --- a/packages/opentelemetry-grpc-utils/package.json +++ b/packages/opentelemetry-grpc-utils/package.json @@ -7,16 +7,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-grpc-utils/tsconfig.json b/packages/opentelemetry-grpc-utils/tsconfig.json index a2042cd68b..08f0364911 100644 --- a/packages/opentelemetry-grpc-utils/tsconfig.json +++ b/packages/opentelemetry-grpc-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,28 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-instrumentation-http/package.json b/packages/opentelemetry-instrumentation-http/package.json index c57575f3f4..7583b407b5 100644 --- a/packages/opentelemetry-instrumentation-http/package.json +++ b/packages/opentelemetry-instrumentation-http/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation-http/tsconfig.json b/packages/opentelemetry-instrumentation-http/tsconfig.json index a2042cd68b..ea143a7be3 100644 --- a/packages/opentelemetry-instrumentation-http/tsconfig.json +++ b/packages/opentelemetry-instrumentation-http/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,31 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-instrumentation" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-instrumentation-xml-http-request/package.json b/packages/opentelemetry-instrumentation-xml-http-request/package.json index 202c5257f0..e9223cbe69 100644 --- a/packages/opentelemetry-instrumentation-xml-http-request/package.json +++ b/packages/opentelemetry-instrumentation-xml-http-request/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "clean": "rimraf build/*", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", + "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc -w" + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation-xml-http-request/tsconfig.json b/packages/opentelemetry-instrumentation-xml-http-request/tsconfig.json index 71661a842e..76bcef51f2 100644 --- a/packages/opentelemetry-instrumentation-xml-http-request/tsconfig.json +++ b/packages/opentelemetry-instrumentation-xml-http-request/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build", @@ -8,5 +8,31 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-zone" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-instrumentation" + }, + { + "path": "../opentelemetry-propagator-b3" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + }, + { + "path": "../opentelemetry-web" + } ] } diff --git a/packages/opentelemetry-instrumentation/package.json b/packages/opentelemetry-instrumentation/package.json index c39445640d..8d0ac7633f 100644 --- a/packages/opentelemetry-instrumentation/package.json +++ b/packages/opentelemetry-instrumentation/package.json @@ -27,21 +27,19 @@ "README.md" ], "scripts": { - "clean": "rimraf build/*", + "compile": "tsc --build", + "clean": "tsc --build --clean", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "prepare": "npm run compile", "tdd": "npm run tdd:node", "tdd:node": "npm run test -- --watch-extensions ts --watch", "tdd:browser": "karma start", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", - "version:update": "node ../../scripts/version-update.js", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation/tsconfig.json b/packages/opentelemetry-instrumentation/tsconfig.json index a2042cd68b..e73d377644 100644 --- a/packages/opentelemetry-instrumentation/tsconfig.json +++ b/packages/opentelemetry-instrumentation/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,10 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + } ] } diff --git a/packages/opentelemetry-metrics/package.json b/packages/opentelemetry-metrics/package.json index f265252ab6..cdd911d237 100644 --- a/packages/opentelemetry-metrics/package.json +++ b/packages/opentelemetry-metrics/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-metrics/tsconfig.json b/packages/opentelemetry-metrics/tsconfig.json index a2042cd68b..954354a3a0 100644 --- a/packages/opentelemetry-metrics/tsconfig.json +++ b/packages/opentelemetry-metrics/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,16 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + } ] } diff --git a/packages/opentelemetry-node/package.json b/packages/opentelemetry-node/package.json index f4a9b22285..4b67dbef34 100644 --- a/packages/opentelemetry-node/package.json +++ b/packages/opentelemetry-node/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-node/tsconfig.json b/packages/opentelemetry-node/tsconfig.json index a2042cd68b..1295aa1d32 100644 --- a/packages/opentelemetry-node/tsconfig.json +++ b/packages/opentelemetry-node/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,25 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-plugin-fetch/package.json b/packages/opentelemetry-plugin-fetch/package.json index baa42c9b9c..97f3056411 100644 --- a/packages/opentelemetry-plugin-fetch/package.json +++ b/packages/opentelemetry-plugin-fetch/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "clean": "rimraf build/*", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", + "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc -w" + "watch": "tsc --build --watch" }, "keywords": [ "fetch", diff --git a/packages/opentelemetry-plugin-fetch/tsconfig.json b/packages/opentelemetry-plugin-fetch/tsconfig.json index 71661a842e..b06e28c796 100644 --- a/packages/opentelemetry-plugin-fetch/tsconfig.json +++ b/packages/opentelemetry-plugin-fetch/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build", @@ -8,5 +8,25 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-zone" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-propagator-b3" + }, + { + "path": "../opentelemetry-tracing" + }, + { + "path": "../opentelemetry-web" + } ] } diff --git a/packages/opentelemetry-plugin-grpc-js/package.json b/packages/opentelemetry-plugin-grpc-js/package.json index fe4e464619..ad6a02c878 100644 --- a/packages/opentelemetry-plugin-grpc-js/package.json +++ b/packages/opentelemetry-plugin-grpc-js/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "test:deubg": "ts-mocha --inspect-brk -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-plugin-grpc-js/tsconfig.json b/packages/opentelemetry-plugin-grpc-js/tsconfig.json index a2042cd68b..00e509fd19 100644 --- a/packages/opentelemetry-plugin-grpc-js/tsconfig.json +++ b/packages/opentelemetry-plugin-grpc-js/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,31 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-grpc-utils" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-plugin-grpc/package.json b/packages/opentelemetry-plugin-grpc/package.json index 5d21d595aa..979c4eca51 100644 --- a/packages/opentelemetry-plugin-grpc/package.json +++ b/packages/opentelemetry-plugin-grpc/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-plugin-grpc/tsconfig.json b/packages/opentelemetry-plugin-grpc/tsconfig.json index a2042cd68b..00e509fd19 100644 --- a/packages/opentelemetry-plugin-grpc/tsconfig.json +++ b/packages/opentelemetry-plugin-grpc/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,31 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-grpc-utils" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-plugin-http/package.json b/packages/opentelemetry-plugin-http/package.json index 5f7821e955..296b247efd 100644 --- a/packages/opentelemetry-plugin-http/package.json +++ b/packages/opentelemetry-plugin-http/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-plugin-http/tsconfig.json b/packages/opentelemetry-plugin-http/tsconfig.json index a2042cd68b..08f0364911 100644 --- a/packages/opentelemetry-plugin-http/tsconfig.json +++ b/packages/opentelemetry-plugin-http/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,28 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-plugin-https/package.json b/packages/opentelemetry-plugin-https/package.json index e0a644ab29..0bddac44d7 100644 --- a/packages/opentelemetry-plugin-https/package.json +++ b/packages/opentelemetry-plugin-https/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-plugin-https/tsconfig.json b/packages/opentelemetry-plugin-https/tsconfig.json index a2042cd68b..b4393cd5ea 100644 --- a/packages/opentelemetry-plugin-https/tsconfig.json +++ b/packages/opentelemetry-plugin-https/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,31 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-plugin-http" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-propagator-b3/package.json b/packages/opentelemetry-propagator-b3/package.json index c9faf7be89..6598df1a9f 100644 --- a/packages/opentelemetry-propagator-b3/package.json +++ b/packages/opentelemetry-propagator-b3/package.json @@ -6,17 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "build": "npm run compile", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-propagator-b3/tsconfig.json b/packages/opentelemetry-propagator-b3/tsconfig.json index a2042cd68b..6ab0e214c2 100644 --- a/packages/opentelemetry-propagator-b3/tsconfig.json +++ b/packages/opentelemetry-propagator-b3/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,13 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-base" + } ] } diff --git a/packages/opentelemetry-resource-detector-aws/package.json b/packages/opentelemetry-resource-detector-aws/package.json index fbfd0370c7..4631dbec91 100644 --- a/packages/opentelemetry-resource-detector-aws/package.json +++ b/packages/opentelemetry-resource-detector-aws/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-resource-detector-aws/tsconfig.json b/packages/opentelemetry-resource-detector-aws/tsconfig.json index e4b3b29e6a..954354a3a0 100644 --- a/packages/opentelemetry-resource-detector-aws/tsconfig.json +++ b/packages/opentelemetry-resource-detector-aws/tsconfig.json @@ -1,8 +1,22 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" }, - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + } + ] } diff --git a/packages/opentelemetry-resource-detector-gcp/package.json b/packages/opentelemetry-resource-detector-gcp/package.json index 6975963b83..f954cfa376 100644 --- a/packages/opentelemetry-resource-detector-gcp/package.json +++ b/packages/opentelemetry-resource-detector-gcp/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-resource-detector-gcp/tsconfig.json b/packages/opentelemetry-resource-detector-gcp/tsconfig.json index e4b3b29e6a..6549996003 100644 --- a/packages/opentelemetry-resource-detector-gcp/tsconfig.json +++ b/packages/opentelemetry-resource-detector-gcp/tsconfig.json @@ -1,8 +1,19 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" }, - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + } + ] } diff --git a/packages/opentelemetry-resources/package.json b/packages/opentelemetry-resources/package.json index 84af956fef..daaaf6b81b 100644 --- a/packages/opentelemetry-resources/package.json +++ b/packages/opentelemetry-resources/package.json @@ -10,16 +10,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-resources/tsconfig.json b/packages/opentelemetry-resources/tsconfig.json index e4b3b29e6a..951358df05 100644 --- a/packages/opentelemetry-resources/tsconfig.json +++ b/packages/opentelemetry-resources/tsconfig.json @@ -1,8 +1,19 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" }, - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + } + ] } diff --git a/packages/opentelemetry-sdk-node/package.json b/packages/opentelemetry-sdk-node/package.json index c8d3fee21e..eb2c7820af 100644 --- a/packages/opentelemetry-sdk-node/package.json +++ b/packages/opentelemetry-sdk-node/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "build": "npm run compile", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-sdk-node/tsconfig.json b/packages/opentelemetry-sdk-node/tsconfig.json index a2042cd68b..544fb350f1 100644 --- a/packages/opentelemetry-sdk-node/tsconfig.json +++ b/packages/opentelemetry-sdk-node/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,37 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-async-hooks" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-metrics" + }, + { + "path": "../opentelemetry-node" + }, + { + "path": "../opentelemetry-resource-detector-aws" + }, + { + "path": "../opentelemetry-resource-detector-gcp" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-semantic-conventions/package.json b/packages/opentelemetry-semantic-conventions/package.json index 2a73ffc5b0..4bf532c43e 100644 --- a/packages/opentelemetry-semantic-conventions/package.json +++ b/packages/opentelemetry-semantic-conventions/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", - "clean": "rimraf build/*", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-semantic-conventions/tsconfig.json b/packages/opentelemetry-semantic-conventions/tsconfig.json index 4f50329e88..a388bb16f9 100644 --- a/packages/opentelemetry-semantic-conventions/tsconfig.json +++ b/packages/opentelemetry-semantic-conventions/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.es5", + "extends": "../../tsconfig.es5.json", "compilerOptions": { "rootDir": ".", "outDir": "build" diff --git a/packages/opentelemetry-shim-opentracing/package.json b/packages/opentelemetry-shim-opentracing/package.json index 3196c6b44a..b428b529b3 100644 --- a/packages/opentelemetry-shim-opentracing/package.json +++ b/packages/opentelemetry-shim-opentracing/package.json @@ -6,16 +6,14 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile" + "version": "node ../../scripts/version-update.js" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-shim-opentracing/tsconfig.json b/packages/opentelemetry-shim-opentracing/tsconfig.json index a2042cd68b..6f45e41147 100644 --- a/packages/opentelemetry-shim-opentracing/tsconfig.json +++ b/packages/opentelemetry-shim-opentracing/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,16 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/opentelemetry-tracing/package.json b/packages/opentelemetry-tracing/package.json index bb183d6fe0..8b6ac004b2 100644 --- a/packages/opentelemetry-tracing/package.json +++ b/packages/opentelemetry-tracing/package.json @@ -10,6 +10,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "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", @@ -17,13 +19,9 @@ "tdd:browser": "karma start", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "clean": "rimraf build/*", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", - "watch": "tsc -w" + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-tracing/tsconfig.json b/packages/opentelemetry-tracing/tsconfig.json index a2042cd68b..62cad81a13 100644 --- a/packages/opentelemetry-tracing/tsconfig.json +++ b/packages/opentelemetry-tracing/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build" @@ -7,5 +7,22 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-semantic-conventions" + } ] } diff --git a/packages/opentelemetry-web/package.json b/packages/opentelemetry-web/package.json index 698cc2c9e0..6ed5fc8373 100644 --- a/packages/opentelemetry-web/package.json +++ b/packages/opentelemetry-web/package.json @@ -6,17 +6,15 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js", "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "clean": "rimraf build/*", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", - "version:update": "node ../../scripts/version-update.js", - "compile": "npm run version:update && tsc -p .", - "prepare": "npm run compile", + "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc -w" + "watch": "tsc --build --watch" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-web/tsconfig.json b/packages/opentelemetry-web/tsconfig.json index 71661a842e..950d91905b 100644 --- a/packages/opentelemetry-web/tsconfig.json +++ b/packages/opentelemetry-web/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.base", + "extends": "../../tsconfig.base.json", "compilerOptions": { "rootDir": ".", "outDir": "build", @@ -8,5 +8,34 @@ "include": [ "src/**/*.ts", "test/**/*.ts" + ], + "references": [ + { + "path": "../opentelemetry-api" + }, + { + "path": "../opentelemetry-context-base" + }, + { + "path": "../opentelemetry-context-zone" + }, + { + "path": "../opentelemetry-core" + }, + { + "path": "../opentelemetry-instrumentation" + }, + { + "path": "../opentelemetry-propagator-b3" + }, + { + "path": "../opentelemetry-resources" + }, + { + "path": "../opentelemetry-semantic-conventions" + }, + { + "path": "../opentelemetry-tracing" + } ] } diff --git a/packages/template/.eslintignore b/packages/template/.eslintignore new file mode 100644 index 0000000000..9ef96044fa --- /dev/null +++ b/packages/template/.eslintignore @@ -0,0 +1,2 @@ +build + diff --git a/packages/template/.eslintrc.js b/packages/template/.eslintrc.js new file mode 100644 index 0000000000..9dfe62f9b8 --- /dev/null +++ b/packages/template/.eslintrc.js @@ -0,0 +1,9 @@ +module.exports = { + "env": { + "mocha": true, + "commonjs": true, + "node": true, + "browser": true + }, + ...require('../../eslint.config.js') +} diff --git a/packages/template/.npmignore b/packages/template/.npmignore new file mode 100644 index 0000000000..9505ba9450 --- /dev/null +++ b/packages/template/.npmignore @@ -0,0 +1,4 @@ +/bin +/coverage +/doc +/test diff --git a/packages/template/LICENSE b/packages/template/LICENSE new file mode 100644 index 0000000000..261eeb9e9f --- /dev/null +++ b/packages/template/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/template/README.md b/packages/template/README.md new file mode 100644 index 0000000000..e42517a3fa --- /dev/null +++ b/packages/template/README.md @@ -0,0 +1,9 @@ +# `@opentelemetry/template` + +> TODO: description + +## Usage + +```typescript +// TODO: DEMONSTRATE API +``` diff --git a/packages/template/karma.conf.js b/packages/template/karma.conf.js new file mode 100644 index 0000000000..3019564a15 --- /dev/null +++ b/packages/template/karma.conf.js @@ -0,0 +1,24 @@ +/*! + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +const karmaWebpackConfig = require('../../karma.webpack'); +const karmaBaseConfig = require('../../karma.base'); + +module.exports = (config) => { + config.set(Object.assign({}, karmaBaseConfig, { + webpack: karmaWebpackConfig + })) +}; diff --git a/packages/template/package.json b/packages/template/package.json new file mode 100644 index 0000000000..60bd4ee71a --- /dev/null +++ b/packages/template/package.json @@ -0,0 +1,87 @@ +{ + "name": "@opentelemetry/template", + "version": "0.14.0", + "private": true, + "publishConfig": { + "access": "restricted" + }, + "description": "> TODO: description", + "author": "OpenTelemetry Authors", + "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme", + "license": "Apache-2.0", + "main": "build/src/index.js", + "types": "build/src/index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/open-telemetry/opentelemetry-js.git" + }, + "bugs": { + "url": "https://github.com/open-telemetry/opentelemetry-js/issues" + }, + "engines": { + "node": ">=8.0.0" + }, + "scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean" + }, + "Add these to scripts": { + "compile": "tsc --build", + "clean": "tsc --build --clean", + "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", + "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", + "lint": "eslint . --ext .ts", + "lint:fix": "eslint . --ext .ts --fix", + "version": "node ../../scripts/version-update.js", + "watch": "tsc --build --watch" + }, + "Add these to scripts if browser is supported": { + "test:browser": "nyc karma start --single-run", + "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../" + }, + "keywords": [ + "opentelemetry", + "nodejs", + "browser", + "tracing", + "profiling", + "metrics", + "stats", + "monitoring" + ], + "files": [ + "build/src/**/*.js", + "build/src/**/*.js.map", + "build/src/**/*.d.ts", + "LICENSE", + "README.md" + ], + "devDependencies": { + "@types/node": "14.14.12", + "typescript": "3.9.7" + }, + "Add these to devDependencies for testing": { + "@types/mocha": "8.2.0", + "@types/sinon": "9.0.9", + "codecov": "3.8.1", + "istanbul-instrumenter-loader": "3.0.1", + "mocha": "7.2.0", + "nyc": "15.1.0", + "sinon": "9.2.2", + "ts-loader": "8.0.12", + "ts-mocha": "8.0.0" + }, + "Add these to devDependencies if browser is targeted": { + "@types/webpack-env": "1.16.0", + "karma": "5.2.3", + "karma-chrome-launcher": "3.1.0", + "karma-coverage-istanbul-reporter": "3.0.3", + "karma-mocha": "2.0.1", + "karma-spec-reporter": "0.0.32", + "karma-webpack": "4.0.2", + "webpack": "4.44.2" + }, + "Add these to devDependencies for linting": { + "gts": "2.0.2" + } +} diff --git a/packages/template/src/index.ts b/packages/template/src/index.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/template/tsconfig.json b/packages/template/tsconfig.json new file mode 100644 index 0000000000..4ffdbb48ce --- /dev/null +++ b/packages/template/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "src/**/*.ts", + "test/**/*.ts" + ], + "references": [ + ] +} diff --git a/packages/tsconfig.base.json b/tsconfig.base.json similarity index 95% rename from packages/tsconfig.base.json rename to tsconfig.base.json index 1b7e8c62dd..83c860a168 100644 --- a/packages/tsconfig.base.json +++ b/tsconfig.base.json @@ -2,6 +2,7 @@ "compilerOptions": { "allowUnreachableCode": false, "allowUnusedLabels": false, + "composite": true, "declaration": true, "declarationMap": true, "forceConsistentCasingInFileNames": true, diff --git a/packages/tsconfig.es5.json b/tsconfig.es5.json similarity index 100% rename from packages/tsconfig.es5.json rename to tsconfig.es5.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000000..22efc769bc --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,117 @@ +{ + "extends": "./tsconfig.base.json", + "files": [], + "references": [ + { + "path": "backwards-compatability/node10" + }, + { + "path": "backwards-compatability/node12" + }, + { + "path": "backwards-compatability/node8" + }, + { + "path": "packages/opentelemetry-api" + }, + { + "path": "packages/opentelemetry-context-async-hooks" + }, + { + "path": "packages/opentelemetry-context-base" + }, + { + "path": "packages/opentelemetry-context-zone-peer-dep" + }, + { + "path": "packages/opentelemetry-context-zone" + }, + { + "path": "packages/opentelemetry-core" + }, + { + "path": "packages/opentelemetry-exporter-collector-grpc" + }, + { + "path": "packages/opentelemetry-exporter-collector-proto" + }, + { + "path": "packages/opentelemetry-exporter-collector" + }, + { + "path": "packages/opentelemetry-exporter-jaeger" + }, + { + "path": "packages/opentelemetry-exporter-prometheus" + }, + { + "path": "packages/opentelemetry-exporter-zipkin" + }, + { + "path": "packages/opentelemetry-grpc-utils" + }, + { + "path": "packages/opentelemetry-instrumentation-http" + }, + { + "path": "packages/opentelemetry-instrumentation-xml-http-request" + }, + { + "path": "packages/opentelemetry-instrumentation" + }, + { + "path": "packages/opentelemetry-metrics" + }, + { + "path": "packages/opentelemetry-node" + }, + { + "path": "packages/opentelemetry-plugin-fetch" + }, + { + "path": "packages/opentelemetry-plugin-grpc-js" + }, + { + "path": "packages/opentelemetry-plugin-grpc" + }, + { + "path": "packages/opentelemetry-plugin-http" + }, + { + "path": "packages/opentelemetry-plugin-https" + }, + { + "path": "packages/opentelemetry-propagator-b3" + }, + { + "path": "packages/opentelemetry-resource-detector-aws" + }, + { + "path": "packages/opentelemetry-resource-detector-gcp" + }, + { + "path": "packages/opentelemetry-resources" + }, + { + "path": "packages/opentelemetry-sdk-node" + }, + { + "path": "packages/opentelemetry-semantic-conventions" + }, + { + "path": "packages/opentelemetry-shim-opentracing" + }, + { + "path": "packages/opentelemetry-tracing" + }, + { + "path": "packages/opentelemetry-web" + }, + { + "path": "packages/template" + }, + { + "path": "integration-tests/propagation-validation-server" + } + ] +}