Skip to content

Commit

Permalink
ref(component-annotate): Conform to Babel plugin naming conventions (#…
Browse files Browse the repository at this point in the history
…475)

* ref(component-annotate): Conform to Babel plugin naming conventions
  • Loading branch information
0Calories authored Feb 2, 2024
1 parent cd152be commit 14c6d58
Show file tree
Hide file tree
Showing 19 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requireNames:
- /^sentry-rollup-plugin-.*\.tgz$/
- /^sentry-vite-plugin-.*\.tgz$/
- /^sentry-webpack-plugin-.*\.tgz$/
- /^sentry-babel-component-annotate-plugin-.*\.tgz$/
- /^sentry-babel-plugin-component-annotate-.*\.tgz$/
targets:
- name: github
includeNames: /^sentry-.*.tgz$/
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

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

## 2.13.0

- ref(component-annotate): Conform to Babel plugin naming conventions

## 2.12.0

- ref(component-annotate): Prefix plugin name with `babel`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

# Sentry Babel Component Annotate Plugin (Beta)

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

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).

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

```bash
npm install @sentry/babel-component-annotate-plugin --save-dev
npm install @sentry/babel-plugin-component-annotate --save-dev
```

Using yarn:

```bash
yarn add @sentry/babel-component-annotate-plugin --dev
yarn add @sentry/babel-plugin-component-annotate --dev
```

Using pnpm:

```bash
pnpm install @sentry/babel-component-annotate-plugin --dev
pnpm install @sentry/babel-plugin-component-annotate --dev
```

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

plugins: [
// Put this plugin before any other plugins you have that transform JSX code
['@sentry/babel-component-annotate-plugin']
['@sentry/babel-plugin-component-annotate']
],
}
```
Expand All @@ -69,7 +69,7 @@ Or alternatively, configure the plugin by directly importing it:
```js
// babel.config.js

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

{
// ... other config above ...
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@sentry/babel-component-annotate-plugin",
"name": "@sentry/babel-plugin-component-annotate",
"version": "2.12.0",
"description": "A Babel plugin that annotates frontend components with additional data to enrich the experience in Sentry",
"repository": "git://github.com/getsentry/sentry-javascript-bundler-plugins.git",
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-component-annotate-plugin",
"homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/babel-plugin-component-annotate",
"author": "Sentry",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-plugin-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"dependencies": {
"@babel/core": "7.18.5",
"@sentry/babel-component-annotate-plugin": "2.12.0",
"@sentry/babel-plugin-component-annotate": "2.12.0",
"@sentry/cli": "^2.22.3",
"@sentry/node": "^7.60.0",
"@sentry/utils": "^7.60.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-plugin-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SentryCli from "@sentry/cli";
import { transformAsync } from "@babel/core";
import { componentNameAnnotatePlugin } from "@sentry/babel-component-annotate-plugin";
import { componentNameAnnotatePlugin } from "@sentry/babel-plugin-component-annotate";
import * as fs from "fs";
import * as path from "path";
import MagicString from "magic-string";
Expand Down

0 comments on commit 14c6d58

Please sign in to comment.