Skip to content

Commit 14c6d58

Browse files
authored
ref(component-annotate): Conform to Babel plugin naming conventions (#475)
* ref(component-annotate): Conform to Babel plugin naming conventions
1 parent cd152be commit 14c6d58

File tree

19 files changed

+17
-13
lines changed

19 files changed

+17
-13
lines changed

.craft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requireNames:
99
- /^sentry-rollup-plugin-.*\.tgz$/
1010
- /^sentry-vite-plugin-.*\.tgz$/
1111
- /^sentry-webpack-plugin-.*\.tgz$/
12-
- /^sentry-babel-component-annotate-plugin-.*\.tgz$/
12+
- /^sentry-babel-plugin-component-annotate-.*\.tgz$/
1313
targets:
1414
- name: github
1515
includeNames: /^sentry-.*.tgz$/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- "You know what they say ‘Fool me once, strike one, but fool me twice… strike three.’" — Michael Scott
66

7+
## 2.13.0
8+
9+
- ref(component-annotate): Conform to Babel plugin naming conventions
10+
711
## 2.12.0
812

913
- ref(component-annotate): Prefix plugin name with `babel`

packages/babel-component-annotate-plugin/README.md renamed to packages/babel-plugin-component-annotate/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
# Sentry Babel Component Annotate Plugin (Beta)
88

9-
[![npm version](https://img.shields.io/npm/v/@sentry/babel-component-annotate-plugin.svg)](https://www.npmjs.com/package/@sentry/babel-component-annotate-plugin)
10-
[![npm dm](https://img.shields.io/npm/dm/@sentry/babel-component-annotate-plugin.svg)](https://www.npmjs.com/package/@sentry/babel-component-annotate-plugin)
11-
[![npm dt](https://img.shields.io/npm/dt/@sentry/babel-component-annotate-plugin.svg)](https://www.npmjs.com/package/@babel-component-annotate-plugin)
9+
[![npm version](https://img.shields.io/npm/v/@sentry/babel-plugin-component-annotate.svg)](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate)
10+
[![npm dm](https://img.shields.io/npm/dm/@sentry/babel-plugin-component-annotate.svg)](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate)
11+
[![npm dt](https://img.shields.io/npm/dt/@sentry/babel-plugin-component-annotate.svg)](https://www.npmjs.com/package/@babel-plugin-component-annotate)
1212

1313
This plugin is currently in beta. Please help us improve by [reporting any issues or giving us feedback](https://github.com/getsentry/sentry-javascript-bundler-plugins/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
1414

@@ -34,19 +34,19 @@ Check out the supported bundler plugin packages for installation instructions:
3434
Using npm:
3535

3636
```bash
37-
npm install @sentry/babel-component-annotate-plugin --save-dev
37+
npm install @sentry/babel-plugin-component-annotate --save-dev
3838
```
3939

4040
Using yarn:
4141

4242
```bash
43-
yarn add @sentry/babel-component-annotate-plugin --dev
43+
yarn add @sentry/babel-plugin-component-annotate --dev
4444
```
4545

4646
Using pnpm:
4747

4848
```bash
49-
pnpm install @sentry/babel-component-annotate-plugin --dev
49+
pnpm install @sentry/babel-plugin-component-annotate --dev
5050
```
5151

5252
## Example
@@ -59,7 +59,7 @@ pnpm install @sentry/babel-component-annotate-plugin --dev
5959

6060
plugins: [
6161
// Put this plugin before any other plugins you have that transform JSX code
62-
['@sentry/babel-component-annotate-plugin']
62+
['@sentry/babel-plugin-component-annotate']
6363
],
6464
}
6565
```
@@ -69,7 +69,7 @@ Or alternatively, configure the plugin by directly importing it:
6969
```js
7070
// babel.config.js
7171

72-
import {componentNameAnnotatePlugin} from '@sentry/babel-component-annotate-plugin';
72+
import {componentNameAnnotatePlugin} from '@sentry/babel-plugin-component-annotate';
7373

7474
{
7575
// ... other config above ...

packages/babel-component-annotate-plugin/package.json renamed to packages/babel-plugin-component-annotate/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "@sentry/babel-component-annotate-plugin",
2+
"name": "@sentry/babel-plugin-component-annotate",
33
"version": "2.12.0",
44
"description": "A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry",
55
"repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",
6-
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-component-annotate-plugin",
6+
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-plugin-component-annotate",
77
"author": "Sentry",
88
"license": "MIT",
99
"keywords": [

0 commit comments

Comments
 (0)