Skip to content

Commit 3edaf37

Browse files
committed
feat: rename rollup-plugin to vite-plugin
1 parent cee4508 commit 3edaf37

File tree

11 files changed

+10
-13
lines changed

11 files changed

+10
-13
lines changed

.changeset/curvy-chicken-swim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@hey-api/rollup-plugin': patch
2+
'@hey-api/vite-plugin': minor
33
---
44

5-
fix: use configResolved hook
5+
fix: initial release
File renamed without changes.

packages/rollup-plugin/CHANGELOG.md renamed to packages/vite-plugin/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @hey-api/rollup-plugin
1+
# @hey-api/vite-plugin
22

33
## 0.1.2
44

File renamed without changes.

packages/rollup-plugin/README.md renamed to packages/vite-plugin/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div align="center">
22
<img alt="Hey API logo" height="150" src="https://heyapi.dev/images/logo-300w.png" width="150">
3-
<h1 align="center"><b>Vite/Rollup Plugin</b></h1>
4-
<p align="center">🚀 Vite/Rollup plugin for `@hey-api/openapi-ts` codegen.</p>
3+
<h1 align="center"><b>Vite Plugin</b></h1>
4+
<p align="center">🚀 Vite plugin for `@hey-api/openapi-ts` codegen.</p>
55
</div>
66

77
## Platform
@@ -24,10 +24,10 @@ Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
2424

2525
## Usage
2626

27-
Add to `plugins` inside your Vite/Rollup configuration.
27+
Add to `plugins` inside your Vite configuration.
2828

2929
```ts
30-
import { heyApiPlugin } from '@hey-api/rollup-plugin';
30+
import { heyApiPlugin } from '@hey-api/vite-plugin';
3131

3232
export default defineConfig({
3333
plugins: [

packages/rollup-plugin/package.json renamed to packages/vite-plugin/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@hey-api/rollup-plugin",
2+
"name": "@hey-api/vite-plugin",
33
"version": "0.1.2",
4-
"description": "🚀 Vite/Rollup plugin for `@hey-api/openapi-ts` codegen.",
4+
"description": "🚀 Vite plugin for `@hey-api/openapi-ts` codegen.",
55
"homepage": "https://heyapi.dev/",
66
"repository": {
77
"type": "git",
@@ -21,8 +21,6 @@
2121
"codegen",
2222
"openapi",
2323
"plugin",
24-
"rollup",
25-
"rollup-plugin",
2624
"vite",
2725
"vite-plugin",
2826
"swagger"

packages/rollup-plugin/src/index.ts renamed to packages/vite-plugin/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export function heyApiPlugin(options?: {
77
config?: Parameters<typeof createClient>[0];
88
}) {
99
return {
10-
// TODO: rename to vite-plugin if we end up using `configResolved`
1110
configResolved: async () => {
1211
await createClient(options?.config);
1312
},

0 commit comments

Comments
 (0)