From 44a2989dffd1c58d1067cdad517abd65d635cc0e Mon Sep 17 00:00:00 2001 From: Francine Lucca <40550942+francinelucca@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:09:13 -0500 Subject: [PATCH] chore(deps): add `@ibm/telemetry-js` (#1912) --- README.md | 9 +++++++++ package.json | 5 ++++- telemetry.yml | 8 ++++++++ yarn.lock | 5 +++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 telemetry.yml diff --git a/README.md b/README.md index 350c00285d..efda6cf0d9 100644 --- a/README.md +++ b/README.md @@ -257,3 +257,12 @@ Refer to the [Contributing guidelines](CONTRIBUTING.md). [npm]: https://img.shields.io/npm/v/carbon-components-svelte.svg?color=262626&style=for-the-badge [npm-url]: https://npmjs.com/package/carbon-components-svelte + +## IBM Telemetry IBM Telemetry + +This package uses IBM Telemetry to collect anonymous metrics data in CI environments. By installing this +package as a dependency you are agreeing to telemetry collection. To opt out, +see +[Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection). +For more information on the data being collected, please see the +[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics). diff --git a/package.json b/package.json index 2d959cb4bc..8ad763b8c6 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,11 @@ "build:docs": "node scripts/build-docs", "build:lib": "rollup -c", "format": "prettier --write \"./**/*.{svelte,js,md}\"", + "postinstall": "ibmtelemetry --config=telemetry.yml", "release": "standard-version && yarn build:docs" }, "dependencies": { + "@ibm/telemetry-js": "^1.2.1", "flatpickr": "4.6.9" }, "devDependencies": { @@ -83,7 +85,8 @@ "lib", "src", "types", - "css" + "css", + "telemetry.yml" ], "contributors": [ "Josef Aidt (https://github.com/josefaidt)", diff --git a/telemetry.yml b/telemetry.yml new file mode 100644 index 0000000000..220061e740 --- /dev/null +++ b/telemetry.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json + +version: 1 +projectId: 449708c0-69d7-4b6b-b12a-c4afe605be24 +endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics +collect: + npm: + dependencies: null \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 30b208ad4f..8e61f722a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -62,6 +62,11 @@ resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== +"@ibm/telemetry-js@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@ibm/telemetry-js/-/telemetry-js-1.2.1.tgz#0b12801a683af23bcd2b90d1b83f332b3cca7f0e" + integrity sha512-ZNuqoclscha2RC089RBPkiGzv8g+mQfBOnHDJZEGBFrvsXg0B9lfRGFBSLzCuTR5nFDqVFYb6XqMRu36EiHIDA== + "@jridgewell/gen-mapping@^0.3.0": version "0.3.2" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9"