From eeaa57b9fd664737bc2ad61925142916dfc4eba0 Mon Sep 17 00:00:00 2001 From: Francine Lucca Date: Mon, 29 Jan 2024 16:37:39 -0500 Subject: [PATCH] chore: update postinstall script and files to ibm telemtry --- packages/angular/README.md | 9 +++++++++ packages/angular/package.json | 2 +- packages/core/README.md | 9 +++++++++ packages/core/package.json | 5 +++-- packages/svelte/README.md | 9 +++++++++ packages/svelte/package.json | 5 +++-- packages/vue/README.md | 9 +++++++++ packages/vue/package.json | 5 +++-- 8 files changed, 46 insertions(+), 7 deletions(-) diff --git a/packages/angular/README.md b/packages/angular/README.md index 6ae9d14bc4..55579e0aef 100644 --- a/packages/angular/README.md +++ b/packages/angular/README.md @@ -40,3 +40,12 @@ For instructions on using the **tabular data format**, see Customizable options (specific to chart type) can be found [here](https://charts.carbondesignsystem.com/documentation/modules/interfaces.html) + +## IBM Telemetry IBM Telemetry + +This package uses IBM Telemetry to collect metrics data. 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). \ No newline at end of file diff --git a/packages/angular/package.json b/packages/angular/package.json index 0937560cd8..d836e1c1e1 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -10,7 +10,7 @@ "type": "module", "scripts": { "ng": "ng", - "postinstall": "carbon-telemetry collect --install", + "postinstall": "ibmtelemetry --config=telemetry.yml", "file:md": "cp *.md dist", "file:styles": "cp ../core/dist/styles.* dist", "disabled:file:downlevel:dts": "downlevel-dts dist dist", diff --git a/packages/core/README.md b/packages/core/README.md index 17040cb4e5..d9ec6ed199 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -44,3 +44,12 @@ For instructions on using the **tabular data format**, see Customizable options (specific to chart type) can be found [here](https://charts.carbondesignsystem.com/documentation/modules/interfaces.html) + +## IBM Telemetry IBM Telemetry + +This package uses IBM Telemetry to collect metrics data. 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). \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index 2782795fb9..f79a05a664 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -50,10 +50,11 @@ "scss", "styles.css", "styles.min.css", - "CHANGELOG.md" + "CHANGELOG.md", + "telemetry.yml" ], "scripts": { - "postinstall": "carbon-telemetry collect --install", + "postinstall": "ibmtelemetry --config=telemetry.yml", "file:css:charts": "sass scss/index.scss dist/styles.css --load-path=./node_modules --load-path=../../node_modules", "file:css:min:charts": "sass scss/index.scss dist/styles.min.css --style=compressed --load-path=./node_modules --load-path=../../node_modules", "file:css:demo": "sass scss/demos.scss dist/demo/styles.css --load-path=./node_modules --load-path=../../node_modules", diff --git a/packages/svelte/README.md b/packages/svelte/README.md index 2af9c6da4e..ea8c818571 100644 --- a/packages/svelte/README.md +++ b/packages/svelte/README.md @@ -268,3 +268,12 @@ type ChartProps = ComponentProps // Indexed access type to access the type of the `chart` property let chart: ChartProps['chart'] = null ``` + +## IBM Telemetry IBM Telemetry + +This package uses IBM Telemetry to collect metrics data. 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). \ No newline at end of file diff --git a/packages/svelte/package.json b/packages/svelte/package.json index f0e006b5d2..55f8bc962b 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -3,7 +3,7 @@ "version": "1.13.24", "description": "Carbon Charts component library for Svelte", "scripts": { - "postinstall": "carbon-telemetry collect --install", + "postinstall": "ibmtelemetry --config=telemetry.yml", "file:styles": "cp ../core/dist/styles.* dist", "build:package": "svelte-kit sync && svelte-package && yarn file:styles", "demo:mdx:svelte": "cp ../core/src/stories/getting-started/svelte.stories.mdx src/stories", @@ -36,7 +36,8 @@ }, "files": [ "dist", - "CHANGELOG.md" + "CHANGELOG.md", + "telemetry.yml" ], "peerDependencies": { "svelte": "^3.31.0 || ^4.0.0" diff --git a/packages/vue/README.md b/packages/vue/README.md index 697a64e9b9..b9580489bd 100644 --- a/packages/vue/README.md +++ b/packages/vue/README.md @@ -46,3 +46,12 @@ For instructions on using the **tabular data format**, see Customizable options (specific to chart type) can be found [here](https://charts.carbondesignsystem.com/documentation/modules/interfaces.html) + +## IBM Telemetry IBM Telemetry + +This package uses IBM Telemetry to collect metrics data. 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). \ No newline at end of file diff --git a/packages/vue/package.json b/packages/vue/package.json index c678e6a954..2c9a919eb4 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -16,10 +16,11 @@ }, "files": [ "dist", - "CHANGELOG.md" + "CHANGELOG.md", + "telemetry.yml" ], "scripts": { - "postinstall": "carbon-telemetry collect --install", + "postinstall": "ibmtelemetry --config=telemetry.yml", "file:styles": "cp ../core/dist/styles.* dist", "build:package": "vite build && yarn file:styles", "demo:mdx:vue": "cp ../core/src/stories/getting-started/vue.stories.mdx src/stories",