Skip to content

Commit 0a301fe

Browse files
committed
rename
1 parent 49600da commit 0a301fe

9 files changed

Lines changed: 4629 additions & 2469 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# vite-plugin-react-directives
1+
# react-directives-plugin
22

33

4-
![GitHub Repo stars](https://img.shields.io/github/stars/forge-42/vite-plugin-react-directives?style=social)
5-
![npm](https://img.shields.io/npm/v/vite-plugin-react-directives?style=plastic)
6-
![GitHub](https://img.shields.io/github/license/forge-42/vite-plugin-react-directives?style=plastic)
7-
![npm](https://img.shields.io/npm/dy/vite-plugin-react-directives?style=plastic)
8-
![npm](https://img.shields.io/npm/dw/vite-plugin-react-directives?style=plastic)
9-
![GitHub top language](https://img.shields.io/github/languages/top/forge-42/vite-plugin-react-directives?style=plastic)
4+
![GitHub Repo stars](https://img.shields.io/github/stars/forge-42/react-directives-plugin?style=social)
5+
![npm](https://img.shields.io/npm/v/react-directives-plugin?style=plastic)
6+
![GitHub](https://img.shields.io/github/license/forge-42/react-directives-plugin?style=plastic)
7+
![npm](https://img.shields.io/npm/dy/react-directives-plugin?style=plastic)
8+
![npm](https://img.shields.io/npm/dw/react-directives-plugin?style=plastic)
9+
![GitHub top language](https://img.shields.io/github/languages/top/forge-42/react-directives-plugin?style=plastic)
1010

11-
vite-plugin-react-directives is a vite plugin that allows you to add directives on top of files matched by patterns you
11+
react-directives-plugin is a vite plugin that allows you to add directives on top of files matched by patterns you
1212
provide. Do not forget to add a `"use server"`, `"use client"` or `"use strict"` directive to the top of your file ever again!
1313

1414
## Installation
1515

1616
```bash
17-
npm install -D vite-plugin-react-directives
17+
npm install -D react-directives-plugin
1818
```
1919

2020
## Usage
2121

2222
```ts
23-
import { reactDirectives } from "vite-plugin-react-directives";
23+
import { reactDirectives } from "react-directives-plugin";
2424

2525
export default defineConfig({
2626
plugins: [

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vite-plugin-react-directives",
2+
"name": "react-directives-plugin",
33
"version": "1.0.0",
44
"description": "Minimal open-source stack to help you ship an open-source package in TS",
55
"scripts": {
@@ -22,12 +22,12 @@
2222
"license": "MIT",
2323
"repository": {
2424
"type": "git",
25-
"url": "https://github.com/forge-42/vite-plugin-react-directives.git"
25+
"url": "https://github.com/forge-42/react-directives-plugin.git"
2626
},
2727
"bugs": {
28-
"url": "https://github.com/forge-42/vite-plugin-react-directives/issues"
28+
"url": "https://github.com/forge-42/react-directives-plugin/issues"
2929
},
30-
"homepage": "https://github.com/forge-42/vite-plugin-react-directives#readme",
30+
"homepage": "https://github.com/forge-42/react-directives-plugin#readme",
3131
"devDependencies": {
3232
"@biomejs/biome": "^1.9.4",
3333
"@changesets/cli": "^2.29.0",

packages/react-directives/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# vite-plugin-react-directives
1+
# react-directives-plugin
22

33
## 1.0.0
44

55
### Major Changes
66

7-
- 5c9ec3c: The inital release of vite-plugin-react-directives
7+
- 5c9ec3c: The inital release of react-directives-plugin
88

99
## 1.0.0
1010

@@ -30,4 +30,4 @@
3030
### Minor Changes
3131

3232
- f2fbd38: Added changesets to the project
33-
- e051f2f: We have migrated the vite-plugin-react-directives to use pnpm workspaces with changesets instead of the old npm approach with npm workspaces.
33+
- e051f2f: We have migrated the react-directives-plugin to use pnpm workspaces with changesets instead of the old npm approach with npm workspaces.

packages/react-directives/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# vite-plugin-react-directives
1+
# react-directives-plugin
22

33

4-
![GitHub Repo stars](https://img.shields.io/github/stars/forge-42/vite-plugin-react-directives?style=social)
5-
![npm](https://img.shields.io/npm/v/vite-plugin-react-directives?style=plastic)
6-
![GitHub](https://img.shields.io/github/license/forge-42/vite-plugin-react-directives?style=plastic)
7-
![npm](https://img.shields.io/npm/dy/vite-plugin-react-directives?style=plastic)
8-
![npm](https://img.shields.io/npm/dw/vite-plugin-react-directives?style=plastic)
9-
![GitHub top language](https://img.shields.io/github/languages/top/forge-42/vite-plugin-react-directives?style=plastic)
4+
![GitHub Repo stars](https://img.shields.io/github/stars/forge-42/react-directives-plugin?style=social)
5+
![npm](https://img.shields.io/npm/v/react-directives-plugin?style=plastic)
6+
![GitHub](https://img.shields.io/github/license/forge-42/react-directives-plugin?style=plastic)
7+
![npm](https://img.shields.io/npm/dy/react-directives-plugin?style=plastic)
8+
![npm](https://img.shields.io/npm/dw/react-directives-plugin?style=plastic)
9+
![GitHub top language](https://img.shields.io/github/languages/top/forge-42/react-directives-plugin?style=plastic)
1010

11-
vite-plugin-react-directives is a vite plugin that allows you to add directives on top of files matched by patterns you
11+
react-directives-plugin is a vite plugin that allows you to add directives on top of files matched by patterns you
1212
provide. Do not forget to add a `"use server"`, `"use client"` or `"use strict"` directive to the top of your file ever again!
1313

1414
## Installation
1515

1616
```bash
17-
npm install -D vite-plugin-react-directives
17+
npm install -D react-directives-plugin
1818
```
1919

2020
## Usage
2121

2222
```ts
23-
import { reactDirectives } from "vite-plugin-react-directives";
23+
import { reactDirectives } from "react-directives-plugin";
2424

2525
export default defineConfig({
2626
plugins: [

packages/react-directives/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "vite-plugin-react-directives",
3-
"version": "1.0.0",
2+
"name": "react-directives-plugin",
3+
"version": "0.0.0",
44
"description": "Minimal open-source stack to help you ship an open-source package in TS",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",
@@ -35,15 +35,15 @@
3535
"license": "MIT",
3636
"repository": {
3737
"type": "git",
38-
"url": "git+https://github.com/forge-42/vite-plugin-react-directives.git"
38+
"url": "git+https://github.com/forge-42/react-directives-plugin.git"
3939
},
4040
"bugs": {
41-
"url": "https://github.com/forge-42/vite-plugin-react-directives/issues"
41+
"url": "https://github.com/forge-42/react-directives-plugin/issues"
4242
},
4343
"files": [
4444
"dist"
4545
],
46-
"homepage": "https://github.com/forge-42/vite-plugin-react-directives#readme",
46+
"homepage": "https://github.com/forge-42/react-directives-plugin#readme",
4747
"publishConfig": {
4848
"provenance": true
4949
},

packages/react-directives/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const reactDirectives = (props?: {
1010
}): any => {
1111
const { "use client": useClient = [], "use server": useServer = [], "use strict": useStrict = [] } = props || {}
1212
return {
13-
name: "vite-plugin-react-directives",
13+
name: "react-directives-plugin",
1414
enforce: "pre",
1515
transform(code, id) {
1616
return transformCode(code, id, {

0 commit comments

Comments
 (0)