From e6465bb5e80e109f7ded12703697781aff929f65 Mon Sep 17 00:00:00 2001 From: William Armiros <54150514+willarmiros@users.noreply.github.com> Date: Tue, 21 Sep 2021 09:51:24 -0700 Subject: [PATCH] chore: add release-please automation (#659) --- .github/workflows/publish.yml | 106 ------------------ .github/workflows/release-please.yml | 60 ++++++++++ .github/workflows/release-pr.yml | 63 ----------- .gitignore | 3 + .release-please-manifest.json | 42 +++++++ RELEASING.md | 25 +---- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- lerna.json | 2 +- .../auto-instrumentations-node/package.json | 3 +- .../auto-instrumentations-web/package.json | 3 +- .../auto-instrumentations-web/src/version.ts | 18 --- package.json | 5 +- .../package.json | 3 +- .../opentelemetry-host-metrics/package.json | 3 +- .../opentelemetry-host-metrics/src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../opentelemetry-test-utils/package.json | 3 +- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- .../package.json | 3 +- .../src/version.ts | 18 --- release-please-config.json | 47 ++++++++ 86 files changed, 239 insertions(+), 900 deletions(-) delete mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/release-please.yml delete mode 100644 .github/workflows/release-pr.yml create mode 100644 .release-please-manifest.json delete mode 100644 detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts delete mode 100644 detectors/node/opentelemetry-resource-detector-aws/src/version.ts delete mode 100644 detectors/node/opentelemetry-resource-detector-gcp/src/version.ts delete mode 100644 detectors/node/opentelemetry-resource-detector-github/src/version.ts delete mode 100644 metapackages/auto-instrumentations-web/src/version.ts delete mode 100644 packages/opentelemetry-host-metrics/src/version.ts delete mode 100644 packages/opentelemetry-id-generator-aws-xray/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-connect/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-dns/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-express/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-graphql/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-hapi/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-knex/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-koa/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-memcached/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-mysql/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-net/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-pg/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-pino/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-redis/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-restify/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-router/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-winston/src/version.ts delete mode 100644 plugins/web/opentelemetry-instrumentation-document-load/src/version.ts delete mode 100644 plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts delete mode 100644 plugins/web/opentelemetry-plugin-react-load/src/version.ts delete mode 100644 propagators/opentelemetry-propagator-aws-xray/src/version.ts delete mode 100644 propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts delete mode 100644 propagators/opentelemetry-propagator-ot-trace/src/version.ts create mode 100644 release-please-config.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 68a4a776d9..0000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: Publish a New Release -on: - pull_request: - branches: [main] - types: [closed] - -jobs: - publish_to_npm: - name: Publish to NPM and GitHub - runs-on: ubuntu-latest - steps: - - # Determine if PR was a valid merged release PR. If so, publish the new release. Otherwise, do nothing. - # This is a valid release PR if the following 3 things are true: - # 1. The head (source) branch of the PR matches the expected "release/x.y.z" pattern - # 2. The PR has been merged, rather than closed - # 3. The head (source) repo of the PR is not a fork, or in other words the PR is made from a branch within the main repo - - name: Validate Release PR - id: validate_pr - run: | - merged=${{ github.event.pull_request.merged }} - forked=${{ github.event.pull_request.head.repo.fork }} - echo "Source branch is ${{ github.head_ref }}; merged = $merged; from a fork = $forked" - if [ $(grep -E '^release/[0-9]+\.[0-9]+\..+$' <<< '${{ github.head_ref }}') ] && [ $merged = true ] && [ $forked = false ] - then - echo "::set-output name=is_release::true" - fi - - # Get release version and draft release tag from PR metadata - - name: Get Release Metadata - if: steps.validate_pr.outputs.is_release - id: metadata - run: | - version=$(cut -d'/' -f2 <<< '${{ github.head_ref }}') - echo "::set-output name=version::$version" - - - name: Checkout Repository - if: steps.validate_pr.outputs.is_release - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup Node - if: steps.validate_pr.outputs.is_release - uses: actions/setup-node@v2 - with: - node-version: '14.x' - registry-url: 'https://registry.npmjs.org' - - - name: Cache Dependencies - if: steps.validate_pr.outputs.is_release - uses: actions/cache@v2 - with: - path: | - node_modules - package-lock.json - detectors/node/*/node_modules - metapackages/*/node_modules - packages/*/node_modules - plugins/node/*/node_modules - plugins/web/*/node_modules - propagators/*/node_modules - key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} - - - name: Build Packages - if: steps.validate_pr.outputs.is_release - run: | - npm install - npx lerna bootstrap --no-ci - - - name: Publish to NPM - if: steps.validate_pr.outputs.is_release - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx lerna publish ${{ steps.metadata.outputs.version }} --no-push --no-git-tag-version --no-verify-access --yes - - # Parses the CHANGELOG.md file for the latest version's entry, to be used in GitHub release body - # Assumes the CHANGELOG's first H2 entry is "Unreleased", followed by version entries - - name: Get Release Body - if: steps.validate_pr.outputs.is_release - id: get-changelog - run: | - echo "Getting changelog entry for version ${{ steps.metadata.outputs.version }}" - startline=$(sed -n "/## ${{ steps.metadata.outputs.version }}/=" CHANGELOG.md) - startline=$((startline+2)) - endline=$(sed -n '/^## /=' CHANGELOG.md | head -n 3 | tail -n 1) - endline=$((endline-2)) - description=$(sed -n "$startline,$endline p" CHANGELOG.md) - description="${description//'%'/'%25'}" - description="${description//$'\n'/'%0A'}" - description="${description//$'\r'/'%0D'}" - echo "::set-output name=CHANGELOG::$description" - - - name: Create GitHub Release - if: steps.validate_pr.outputs.is_release - id: make-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: 'v${{ steps.metadata.outputs.version }}' - commitish: main - release_name: 'v${{ steps.metadata.outputs.version }} Release' - body: "${{ steps.get-changelog.outputs.CHANGELOG }}" - draft: false - prerelease: false diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000000..4163e4cdd8 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,60 @@ +on: + push: + branches: + - main + +name: Run Release Please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + command: manifest + token: ${{secrets.RELEASE_PR_TOKEN}} + default-branch: main + + # The logic below handles the npm publication: + - name: Checkout Repository + if: ${{ steps.release.outputs.releases_created }} + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v1 + if: ${{ steps.release.outputs.releases_created }} + with: + node-version: 14 + registry-url: 'https://registry.npmjs.org' + + - name: Cache Dependencies + if: ${{ steps.release.outputs.releases_created }} + uses: actions/cache@v2 + with: + path: | + node_modules + package-lock.json + detectors/node/*/node_modules + metapackages/*/node_modules + packages/*/node_modules + plugins/node/*/node_modules + plugins/web/*/node_modules + propagators/*/node_modules + key: release-${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} + + - name: Build Packages + if: ${{ steps.release.outputs.releases_created }} + run: | + npm install + npx lerna bootstrap --no-ci + + # Release Please has already incremented versions and published tags, so we just + # need to publish all unpublished versions to NPM here + # See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package + - name: Publish to NPM + if: ${{ steps.release.outputs.releases_created }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: npx lerna publish from-package --no-push --no-private --no-git-tag-version --no-verify-access --yes diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml deleted file mode 100644 index 6bb8a18a33..0000000000 --- a/.github/workflows/release-pr.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Create New Release PR -on: - workflow_dispatch: - inputs: - version: - description: The semver-compliant version to tag the release with, e.g. 1.2.3, 1.0.0-rc.1 - required: true - -jobs: - create_release_pr: - name: Create Release PR and Draft Release - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '14.x' - - - name: Cache Dependencies - uses: actions/cache@v2 - with: - path: | - node_modules - package-lock.json - detectors/node/*/node_modules - metapackages/*/node_modules - packages/*/node_modules - plugins/node/*/node_modules - plugins/web/*/node_modules - propagators/*/node_modules - key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} - - # Bump versions in all package.json and version.ts files - - name: Prepare Release - run: | - npm install - npm --no-git-tag-version version ${{ github.event.inputs.version }} - npx lerna publish ${{ github.event.inputs.version }} --skip-npm --no-git-tag-version --no-push --yes - npx lerna bootstrap --no-ci - - - name: Update Changelog - env: - GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} - run: ./scripts/changelog-update.sh ${{ github.event.inputs.version }} - - # Make PR with version bumps and changelog update. Merging this PR triggers publish workflow. - # See: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/.github/workflows/publish.yml - - name: Create Release PR - uses: peter-evans/create-pull-request@v3 - with: - branch: release/${{ github.event.inputs.version }} - commit-message: 'chore: ${{ github.event.inputs.version }} release proposal' - title: 'chore: ${{ github.event.inputs.version }} release proposal' - body: | - This is an auto-generated release PR. If additional changes need to be incorporated before the release, the CHANGELOG must be updated manually. - - Merging this PR will automatically release all packages to NPM. - delete-branch: true diff --git a/.gitignore b/.gitignore index 8738ce6646..4398092d2b 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,6 @@ package.json.lerna_backup *.iml .idea + +# version.ts file is automatically generated at compile time +version.ts diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000000..6b66f6e546 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,42 @@ +{ + "detectors/node/opentelemetry-resource-detector-alibaba-cloud": "0.25.0", + "detectors/node/opentelemetry-resource-detector-aws": "0.25.0", + "detectors/node/opentelemetry-resource-detector-gcp": "0.25.0", + "detectors/node/opentelemetry-resource-detector-github": "0.25.0", + "metapackages/auto-instrumentations-node": "0.25.0", + "metapackages/auto-instrumentations-web": "0.25.0", + "packages/opentelemetry-browser-extension-autoinjection": "0.25.0", + "packages/opentelemetry-host-metrics": "0.25.0", + "packages/opentelemetry-id-generator-aws-xray": "0.25.0", + "packages/opentelemetry-test-utils": "0.25.0", + "plugins/node/opentelemetry-instrumentation-aws-lambda": "0.25.0", + "plugins/node/opentelemetry-instrumentation-bunyan": "0.25.0", + "plugins/node/opentelemetry-instrumentation-cassandra": "0.25.0", + "plugins/node/opentelemetry-instrumentation-connect": "0.25.0", + "plugins/node/opentelemetry-instrumentation-dns": "0.25.0", + "plugins/node/opentelemetry-instrumentation-express": "0.25.0", + "plugins/node/opentelemetry-instrumentation-generic-pool": "0.25.0", + "plugins/node/opentelemetry-instrumentation-graphql": "0.25.0", + "plugins/node/opentelemetry-instrumentation-hapi": "0.25.0", + "plugins/node/opentelemetry-instrumentation-ioredis": "0.25.0", + "plugins/node/opentelemetry-instrumentation-knex": "0.25.0", + "plugins/node/opentelemetry-instrumentation-koa": "0.25.0", + "plugins/node/opentelemetry-instrumentation-memcached": "0.25.0", + "plugins/node/opentelemetry-instrumentation-mongodb": "0.25.0", + "plugins/node/opentelemetry-instrumentation-mysql": "0.25.0", + "plugins/node/opentelemetry-instrumentation-mysql2": "0.25.0", + "plugins/node/opentelemetry-instrumentation-nestjs-core": "0.25.0", + "plugins/node/opentelemetry-instrumentation-net": "0.25.0", + "plugins/node/opentelemetry-instrumentation-pg": "0.25.0", + "plugins/node/opentelemetry-instrumentation-pino": "0.25.0", + "plugins/node/opentelemetry-instrumentation-redis": "0.25.0", + "plugins/node/opentelemetry-instrumentation-restify": "0.25.0", + "plugins/node/opentelemetry-instrumentation-router": "0.25.0", + "plugins/node/opentelemetry-instrumentation-winston": "0.25.0", + "plugins/web/opentelemetry-instrumentation-document-load": "0.25.0", + "plugins/web/opentelemetry-instrumentation-user-interaction": "0.25.0", + "plugins/web/opentelemetry-plugin-react-load": "0.25.0", + "propagators/opentelemetry-propagator-aws-xray": "0.25.0", + "propagators/opentelemetry-propagator-grpc-census-binary": "0.25.0", + "propagators/opentelemetry-propagator-ot-trace": "0.25.0" +} diff --git a/RELEASING.md b/RELEASING.md index cdbac1c1b7..c0e908b88c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,30 +1,11 @@ # Releasing OpenTelemetry Packages (for Maintainers Only) -This document explains how to publish all OT modules at version x.y.z. Ensure that you’re following semver when choosing a version number. - -## Auto-generate a Release PR - -Navigate to the [Create a Release PR Worflow](https://github.com/open-telemetry/opentelemetry-js-contrib/actions/workflows/release-pr.yml). Click the "Run workflow" dropdown, enter the semver-compliant version to release, then click "Run workflow". It will generate a release pull request from a branch named like `release/x.y.z`. - -## Review Release PR - -If necessary, update sample code or documentation on the `release/x.y.z` branch to be included in the release. Another maintainer should approve the PR, specifically validating the automatic updates and verifying the tests are passing. - -NOTE: If any major changes are merged while the release PR is open, the CHANGELOG on the `release/x.y.z` branch must be manually updated to reflect the change. - -## Merge Release PR - -After approval, merge the release PR. This will automatically publish all packages. Verify: - -* The [publish workflow](https://github.com/open-telemetry/opentelemetry-js-contrib/actions/workflows/publish.yml) runs successfully -* The new version is available in NPM, e.g. for the [Express instrumentation package](https://www.npmjs.com/package/@opentelemetry/instrumentation-express) -* A [GitHub Release](https://github.com/open-telemetry/opentelemetry-js-contrib/releases) was cut correctly, with a tag pointing to the new version, and a body of the changelog - -That's it! No need to read on unless something above went wrong. +This repository uses [Release Please](https://github.com/googleapis/release-please) to manage its releases automatically and independently. +Modified packages are automatically published to NPM when the auto-generated Release Please PR is merged. # Manual Publishing Process -If any step of the above automated process fails, complete the release manually by picking up at the failed step. +For posterity, or in the event of any failures with release-please, the process for performing a manual release is below. Manual Release Process Steps: diff --git a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json index 2f488583b4..9e6b181a2f 100644 --- a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json +++ b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/detectors/node/opentelemetry-resource-detector-aws/package.json b/detectors/node/opentelemetry-resource-detector-aws/package.json index b68422b882..d61cf9591f 100644 --- a/detectors/node/opentelemetry-resource-detector-aws/package.json +++ b/detectors/node/opentelemetry-resource-detector-aws/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-aws/src/version.ts b/detectors/node/opentelemetry-resource-detector-aws/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/detectors/node/opentelemetry-resource-detector-aws/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/detectors/node/opentelemetry-resource-detector-gcp/package.json b/detectors/node/opentelemetry-resource-detector-gcp/package.json index 29f3a8f3e8..e1eb919112 100644 --- a/detectors/node/opentelemetry-resource-detector-gcp/package.json +++ b/detectors/node/opentelemetry-resource-detector-gcp/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-gcp/src/version.ts b/detectors/node/opentelemetry-resource-detector-gcp/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/detectors/node/opentelemetry-resource-detector-gcp/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/detectors/node/opentelemetry-resource-detector-github/package.json b/detectors/node/opentelemetry-resource-detector-github/package.json index a44ecc26f9..7322663a88 100644 --- a/detectors/node/opentelemetry-resource-detector-github/package.json +++ b/detectors/node/opentelemetry-resource-detector-github/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-github/src/version.ts b/detectors/node/opentelemetry-resource-detector-github/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/detectors/node/opentelemetry-resource-detector-github/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/lerna.json b/lerna.json index 133f43f099..42fce93efe 100644 --- a/lerna.json +++ b/lerna.json @@ -9,7 +9,7 @@ "propagators/*", "detectors/node/*" ], - "version": "0.25.0", + "version": "independent", "changelog": { "repo": "open-telemetry/opentelemetry-js-contrib", "labels": { diff --git a/metapackages/auto-instrumentations-node/package.json b/metapackages/auto-instrumentations-node/package.json index 74f631b93a..3efd32800d 100644 --- a/metapackages/auto-instrumentations-node/package.json +++ b/metapackages/auto-instrumentations-node/package.json @@ -17,7 +17,8 @@ "compile": "tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "yarn test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.ts'", diff --git a/metapackages/auto-instrumentations-web/package.json b/metapackages/auto-instrumentations-web/package.json index a46ab71274..bb68b9686a 100644 --- a/metapackages/auto-instrumentations-web/package.json +++ b/metapackages/auto-instrumentations-web/package.json @@ -18,7 +18,8 @@ "compile": "tsc --build tsconfig.json tsconfig.esm.json", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test:browser": "nyc karma start --single-run", "version": "node ../../scripts/version-update.js", diff --git a/metapackages/auto-instrumentations-web/src/version.ts b/metapackages/auto-instrumentations-web/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/metapackages/auto-instrumentations-web/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/package.json b/package.json index c2285aa142..4289452218 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opentelemetry-contrib", - "version": "0.25.0", + "version": "0.1.0", "description": "This is a repository for OpenTelemetry JavaScript contributions.", "repository": { "type": "git", @@ -14,9 +14,10 @@ "scripts": { "clean": "lerna run clean", "postinstall": "npm run bootstrap", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version", "version:update": "lerna run version:update", "compile": "lerna run compile", + "prewatch": "npm run precompile", "test": "lerna run test", "test:ci:changed": "lerna run test --since origin/main", "test:browser": "lerna run test:browser", diff --git a/packages/opentelemetry-browser-extension-autoinjection/package.json b/packages/opentelemetry-browser-extension-autoinjection/package.json index 240e072e27..8cdc9982f4 100644 --- a/packages/opentelemetry-browser-extension-autoinjection/package.json +++ b/packages/opentelemetry-browser-extension-autoinjection/package.json @@ -11,7 +11,8 @@ "build:mv3": "npx webpack --mode=production --env MV=3", "lint": "eslint .", "lint:fix": "eslint . --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "watch": "npx webpack --mode=development --watch", diff --git a/packages/opentelemetry-host-metrics/package.json b/packages/opentelemetry-host-metrics/package.json index 1b407fca64..f4a101a402 100644 --- a/packages/opentelemetry-host-metrics/package.json +++ b/packages/opentelemetry-host-metrics/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/packages/opentelemetry-host-metrics/src/version.ts b/packages/opentelemetry-host-metrics/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-host-metrics/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-id-generator-aws-xray/package.json b/packages/opentelemetry-id-generator-aws-xray/package.json index ad862f3bac..7396913caf 100644 --- a/packages/opentelemetry-id-generator-aws-xray/package.json +++ b/packages/opentelemetry-id-generator-aws-xray/package.json @@ -15,7 +15,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/packages/opentelemetry-id-generator-aws-xray/src/version.ts b/packages/opentelemetry-id-generator-aws-xray/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-id-generator-aws-xray/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-test-utils/package.json b/packages/opentelemetry-test-utils/package.json index 3df4dc40d5..f2b7e1e442 100644 --- a/packages/opentelemetry-test-utils/package.json +++ b/packages/opentelemetry-test-utils/package.json @@ -11,7 +11,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "compile": "tsc -p .", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "watch": "tsc -w" }, diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json b/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json index e489a59d1f..854f01f4e3 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json +++ b/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts b/plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-bunyan/package.json b/plugins/node/opentelemetry-instrumentation-bunyan/package.json index aa7ca80526..4d9c6452f5 100644 --- a/plugins/node/opentelemetry-instrumentation-bunyan/package.json +++ b/plugins/node/opentelemetry-instrumentation-bunyan/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts b/plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-cassandra/package.json b/plugins/node/opentelemetry-instrumentation-cassandra/package.json index e381331cc7..845588bbdc 100644 --- a/plugins/node/opentelemetry-instrumentation-cassandra/package.json +++ b/plugins/node/opentelemetry-instrumentation-cassandra/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts b/plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-connect/package.json b/plugins/node/opentelemetry-instrumentation-connect/package.json index dfacc7592c..f2b3d13b84 100644 --- a/plugins/node/opentelemetry-instrumentation-connect/package.json +++ b/plugins/node/opentelemetry-instrumentation-connect/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "version:update": "node ../../../scripts/version-update.js", diff --git a/plugins/node/opentelemetry-instrumentation-connect/src/version.ts b/plugins/node/opentelemetry-instrumentation-connect/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-connect/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-dns/package.json b/plugins/node/opentelemetry-instrumentation-dns/package.json index 187fedfc47..35be978b8f 100644 --- a/plugins/node/opentelemetry-instrumentation-dns/package.json +++ b/plugins/node/opentelemetry-instrumentation-dns/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-dns/src/version.ts b/plugins/node/opentelemetry-instrumentation-dns/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-dns/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-express/package.json b/plugins/node/opentelemetry-instrumentation-express/package.json index b77d8a442b..a39e623070 100644 --- a/plugins/node/opentelemetry-instrumentation-express/package.json +++ b/plugins/node/opentelemetry-instrumentation-express/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-express/src/version.ts b/plugins/node/opentelemetry-instrumentation-express/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-express/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-generic-pool/package.json b/plugins/node/opentelemetry-instrumentation-generic-pool/package.json index 905799d051..dad75ee030 100644 --- a/plugins/node/opentelemetry-instrumentation-generic-pool/package.json +++ b/plugins/node/opentelemetry-instrumentation-generic-pool/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts b/plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-graphql/package.json b/plugins/node/opentelemetry-instrumentation-graphql/package.json index 358378d523..d153724a3b 100644 --- a/plugins/node/opentelemetry-instrumentation-graphql/package.json +++ b/plugins/node/opentelemetry-instrumentation-graphql/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/plugins/node/opentelemetry-instrumentation-graphql/src/version.ts b/plugins/node/opentelemetry-instrumentation-graphql/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-graphql/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-hapi/package.json b/plugins/node/opentelemetry-instrumentation-hapi/package.json index ff091d1c3a..41af2e1ae7 100644 --- a/plugins/node/opentelemetry-instrumentation-hapi/package.json +++ b/plugins/node/opentelemetry-instrumentation-hapi/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile" diff --git a/plugins/node/opentelemetry-instrumentation-hapi/src/version.ts b/plugins/node/opentelemetry-instrumentation-hapi/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-hapi/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-ioredis/package.json b/plugins/node/opentelemetry-instrumentation-ioredis/package.json index 3c8fe84674..10f18a0bd4 100644 --- a/plugins/node/opentelemetry-instrumentation-ioredis/package.json +++ b/plugins/node/opentelemetry-instrumentation-ioredis/package.json @@ -15,7 +15,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", diff --git a/plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts b/plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-knex/package.json b/plugins/node/opentelemetry-instrumentation-knex/package.json index d16378a85b..964b39e760 100644 --- a/plugins/node/opentelemetry-instrumentation-knex/package.json +++ b/plugins/node/opentelemetry-instrumentation-knex/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-knex/src/version.ts b/plugins/node/opentelemetry-instrumentation-knex/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-knex/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-koa/package.json b/plugins/node/opentelemetry-instrumentation-koa/package.json index 49ab4bb96d..4f85607598 100644 --- a/plugins/node/opentelemetry-instrumentation-koa/package.json +++ b/plugins/node/opentelemetry-instrumentation-koa/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-koa/src/version.ts b/plugins/node/opentelemetry-instrumentation-koa/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-koa/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-memcached/package.json b/plugins/node/opentelemetry-instrumentation-memcached/package.json index cb296bd5ce..ac77ee00e1 100644 --- a/plugins/node/opentelemetry-instrumentation-memcached/package.json +++ b/plugins/node/opentelemetry-instrumentation-memcached/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-memcached/src/version.ts b/plugins/node/opentelemetry-instrumentation-memcached/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-memcached/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/package.json b/plugins/node/opentelemetry-instrumentation-mongodb/package.json index f8182dbbb0..4ff4914e3a 100644 --- a/plugins/node/opentelemetry-instrumentation-mongodb/package.json +++ b/plugins/node/opentelemetry-instrumentation-mongodb/package.json @@ -14,7 +14,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts b/plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-mysql/package.json b/plugins/node/opentelemetry-instrumentation-mysql/package.json index 59474c35b4..72fde36d94 100644 --- a/plugins/node/opentelemetry-instrumentation-mysql/package.json +++ b/plugins/node/opentelemetry-instrumentation-mysql/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint:fix": "eslint . --ext .ts --fix", "lint": "eslint . --ext .ts", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-mysql/src/version.ts b/plugins/node/opentelemetry-instrumentation-mysql/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-mysql/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-mysql2/package.json b/plugins/node/opentelemetry-instrumentation-mysql2/package.json index d290c99f28..53d1ac5af2 100644 --- a/plugins/node/opentelemetry-instrumentation-mysql2/package.json +++ b/plugins/node/opentelemetry-instrumentation-mysql2/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint:fix": "eslint . --ext .ts --fix", "lint": "eslint . --ext .ts", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts b/plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json b/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json index 9c8504afc7..e2f4cd7b09 100644 --- a/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json +++ b/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json @@ -12,7 +12,8 @@ "compile:watch": "tsc -w", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts b/plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-net/package.json b/plugins/node/opentelemetry-instrumentation-net/package.json index 802172e79f..5a29b2f3de 100644 --- a/plugins/node/opentelemetry-instrumentation-net/package.json +++ b/plugins/node/opentelemetry-instrumentation-net/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-net/src/version.ts b/plugins/node/opentelemetry-instrumentation-net/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-net/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-pg/package.json b/plugins/node/opentelemetry-instrumentation-pg/package.json index 05b7577e89..4632fb9ee0 100644 --- a/plugins/node/opentelemetry-instrumentation-pg/package.json +++ b/plugins/node/opentelemetry-instrumentation-pg/package.json @@ -11,7 +11,8 @@ "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-pg/src/version.ts b/plugins/node/opentelemetry-instrumentation-pg/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-pg/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-pino/package.json b/plugins/node/opentelemetry-instrumentation-pino/package.json index 3624fe2fe4..229e4f14e0 100644 --- a/plugins/node/opentelemetry-instrumentation-pino/package.json +++ b/plugins/node/opentelemetry-instrumentation-pino/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-pino/src/version.ts b/plugins/node/opentelemetry-instrumentation-pino/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-pino/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-redis/package.json b/plugins/node/opentelemetry-instrumentation-redis/package.json index d2ed3a1936..0b4fd00e3d 100644 --- a/plugins/node/opentelemetry-instrumentation-redis/package.json +++ b/plugins/node/opentelemetry-instrumentation-redis/package.json @@ -15,7 +15,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", diff --git a/plugins/node/opentelemetry-instrumentation-redis/src/version.ts b/plugins/node/opentelemetry-instrumentation-redis/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-redis/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-restify/package.json b/plugins/node/opentelemetry-instrumentation-restify/package.json index 4903e49a0c..54775a612d 100644 --- a/plugins/node/opentelemetry-instrumentation-restify/package.json +++ b/plugins/node/opentelemetry-instrumentation-restify/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-restify/src/version.ts b/plugins/node/opentelemetry-instrumentation-restify/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-restify/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-router/package.json b/plugins/node/opentelemetry-instrumentation-router/package.json index ce877c4c42..b1b4f5e018 100644 --- a/plugins/node/opentelemetry-instrumentation-router/package.json +++ b/plugins/node/opentelemetry-instrumentation-router/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-router/src/version.ts b/plugins/node/opentelemetry-instrumentation-router/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-router/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/node/opentelemetry-instrumentation-winston/package.json b/plugins/node/opentelemetry-instrumentation-winston/package.json index 915a6609f5..7a50c67710 100644 --- a/plugins/node/opentelemetry-instrumentation-winston/package.json +++ b/plugins/node/opentelemetry-instrumentation-winston/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-winston/src/version.ts b/plugins/node/opentelemetry-instrumentation-winston/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/node/opentelemetry-instrumentation-winston/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/web/opentelemetry-instrumentation-document-load/package.json b/plugins/web/opentelemetry-instrumentation-document-load/package.json index 3b1c5a610b..b3ac83e16d 100644 --- a/plugins/web/opentelemetry-instrumentation-document-load/package.json +++ b/plugins/web/opentelemetry-instrumentation-document-load/package.json @@ -11,7 +11,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc --build tsconfig.json tsconfig.esm.json", "prepare": "npm run compile", diff --git a/plugins/web/opentelemetry-instrumentation-document-load/src/version.ts b/plugins/web/opentelemetry-instrumentation-document-load/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/web/opentelemetry-instrumentation-document-load/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json index bd1993e5a6..c267f03747 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json @@ -11,7 +11,8 @@ "lint:fix": "eslint . --ext .ts --fix", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc --build tsconfig.json tsconfig.esm.json", "prepare": "npm run compile", diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts b/plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/plugins/web/opentelemetry-plugin-react-load/package.json b/plugins/web/opentelemetry-plugin-react-load/package.json index bea0e50c71..9df81eae64 100644 --- a/plugins/web/opentelemetry-plugin-react-load/package.json +++ b/plugins/web/opentelemetry-plugin-react-load/package.json @@ -11,7 +11,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc --build tsconfig.json tsconfig.esm.json", "prepare": "npm run compile", diff --git a/plugins/web/opentelemetry-plugin-react-load/src/version.ts b/plugins/web/opentelemetry-plugin-react-load/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/plugins/web/opentelemetry-plugin-react-load/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/propagators/opentelemetry-propagator-aws-xray/package.json b/propagators/opentelemetry-propagator-aws-xray/package.json index 4751cfa110..2a2280b5f2 100644 --- a/propagators/opentelemetry-propagator-aws-xray/package.json +++ b/propagators/opentelemetry-propagator-aws-xray/package.json @@ -7,7 +7,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/propagators/opentelemetry-propagator-aws-xray/src/version.ts b/propagators/opentelemetry-propagator-aws-xray/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/propagators/opentelemetry-propagator-aws-xray/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/propagators/opentelemetry-propagator-grpc-census-binary/package.json b/propagators/opentelemetry-propagator-grpc-census-binary/package.json index 565af8fa2c..adcedd1efa 100644 --- a/propagators/opentelemetry-propagator-grpc-census-binary/package.json +++ b/propagators/opentelemetry-propagator-grpc-census-binary/package.json @@ -13,7 +13,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", "version:update": "node ../../scripts/version-update.js", diff --git a/propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts b/propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/propagators/opentelemetry-propagator-ot-trace/package.json b/propagators/opentelemetry-propagator-ot-trace/package.json index b915efc7a3..f912bb07df 100644 --- a/propagators/opentelemetry-propagator-ot-trace/package.json +++ b/propagators/opentelemetry-propagator-ot-trace/package.json @@ -7,7 +7,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/propagators/opentelemetry-propagator-ot-trace/src/version.ts b/propagators/opentelemetry-propagator-ot-trace/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/propagators/opentelemetry-propagator-ot-trace/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 - * - * https://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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..edf8116fe1 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,47 @@ +{ + "bootstrap-sha": "798fb2d5c585f6fdee10146bfe15e03409bdddfe", + "plugins": ["node-workspace"], + "bump-minor-pre-major": true, + "packages": { + "detectors/node/opentelemetry-resource-detector-alibaba-cloud": {}, + "detectors/node/opentelemetry-resource-detector-aws": {}, + "detectors/node/opentelemetry-resource-detector-gcp": {}, + "detectors/node/opentelemetry-resource-detector-github": {}, + "metapackages/auto-instrumentations-node": {}, + "metapackages/auto-instrumentations-web": {}, + "packages/opentelemetry-browser-extension-autoinjection": {}, + "packages/opentelemetry-host-metrics": {}, + "packages/opentelemetry-id-generator-aws-xray": {}, + "packages/opentelemetry-test-utils": {}, + "plugins/node/opentelemetry-instrumentation-aws-lambda": {}, + "plugins/node/opentelemetry-instrumentation-bunyan": {}, + "plugins/node/opentelemetry-instrumentation-cassandra": {}, + "plugins/node/opentelemetry-instrumentation-connect": {}, + "plugins/node/opentelemetry-instrumentation-dns": {}, + "plugins/node/opentelemetry-instrumentation-express": {}, + "plugins/node/opentelemetry-instrumentation-generic-pool": {}, + "plugins/node/opentelemetry-instrumentation-graphql": {}, + "plugins/node/opentelemetry-instrumentation-hapi": {}, + "plugins/node/opentelemetry-instrumentation-ioredis": {}, + "plugins/node/opentelemetry-instrumentation-knex": {}, + "plugins/node/opentelemetry-instrumentation-koa": {}, + "plugins/node/opentelemetry-instrumentation-memcached": {}, + "plugins/node/opentelemetry-instrumentation-mongodb": {}, + "plugins/node/opentelemetry-instrumentation-mysql": {}, + "plugins/node/opentelemetry-instrumentation-mysql2": {}, + "plugins/node/opentelemetry-instrumentation-nestjs-core": {}, + "plugins/node/opentelemetry-instrumentation-net": {}, + "plugins/node/opentelemetry-instrumentation-pg": {}, + "plugins/node/opentelemetry-instrumentation-pino": {}, + "plugins/node/opentelemetry-instrumentation-redis": {}, + "plugins/node/opentelemetry-instrumentation-restify": {}, + "plugins/node/opentelemetry-instrumentation-router": {}, + "plugins/node/opentelemetry-instrumentation-winston": {}, + "plugins/web/opentelemetry-instrumentation-document-load": {}, + "plugins/web/opentelemetry-instrumentation-user-interaction": {}, + "plugins/web/opentelemetry-plugin-react-load": {}, + "propagators/opentelemetry-propagator-aws-xray": {}, + "propagators/opentelemetry-propagator-grpc-census-binary": {}, + "propagators/opentelemetry-propagator-ot-trace": {} + } +}