Skip to content

Commit b82ba38

Browse files
committed
chore(cli): change cli pkg name to create-freestyle-fetch
1 parent 3049ff0 commit b82ba38

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
"@vitest/coverage-v8": "4.0.6",
4343
"husky": "latest",
4444
"lint-staged": "latest",
45+
"msw": "^2.12.3",
4546
"rimraf": "latest",
4647
"tsup": "latest",
4748
"turbo": "latest",
4849
"typescript": "latest",
4950
"vite": "latest",
5051
"vite-tsconfig-paths": "latest",
51-
"vitest": "latest",
52-
"msw": "^2.12.3"
52+
"vitest": "latest"
5353
},
5454
"engines": {
5555
"node": ">=20.0.0"

packages/openapi_generator/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@freestylejs/openapi-generator",
2+
"name": "create-freestyle-fetch",
33
"version": "0.0.1",
44
"description": "Generate freestylejs fetch client from OpenAPI spec",
55
"author": "danpacho",
@@ -9,7 +9,7 @@
99
"access": "public"
1010
},
1111
"bin": {
12-
"metal-openapi-gen": "dist/index.js"
12+
"create-freestyle-fetch": "dist/index.js"
1313
},
1414
"scripts": {
1515
"build": "tsup",

packages/web/content/docs/openapi-generator/cli-reference.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ openapi-generator generate \
5151
Run the generator without installation:
5252

5353
```bash
54-
npx @freestylejs/openapi-generator generate \
54+
npx create-freestyle-fetch generate \
5555
--input ./openapi.json \
5656
--output ./src/generated
5757
```
@@ -161,7 +161,7 @@ Integrate generation into your CI/CD pipeline:
161161
steps:
162162
- name: Generate API Client
163163
run: |
164-
npx @freestylejs/openapi-generator generate \
164+
npx create-freestyle-fetch generate \
165165
--input ./openapi.json \
166166
--output ./src/generated
167167

packages/web/content/docs/openapi-generator/getting-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ description: Install and use the OpenAPI Generator to create type-safe API clien
88
Install the OpenAPI Generator package in your project:
99

1010
```bash
11-
npm install --save-dev @freestylejs/openapi-generator
11+
npm install --save-dev create-freestyle-fetch
1212
```
1313

1414
Or use it directly with `npx` without installation:
1515

1616
```bash
17-
npx @freestylejs/openapi-generator generate --input ./spec.yaml --output ./src/api
17+
npx create-freestyle-fetch generate --input ./spec.yaml --output ./src/api
1818
```
1919

2020
## Prerequisites
@@ -32,7 +32,7 @@ Before using the OpenAPI Generator, ensure you have:
3232
Create an API client from your OpenAPI specification:
3333

3434
```bash
35-
npx @freestylejs/openapi-generator generate \
35+
npx create-freestyle-fetch generate \
3636
--input ./openapi.yaml \
3737
--output ./src/generated
3838
```

packages/web/content/docs/openapi-generator/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ It eliminates manual API client code and keeps your client in sync with your API
4646
Generate a fully typed API client from your OpenAPI specification:
4747

4848
```bash
49-
npx @freestylejs/openapi-generator generate \
49+
npx create-freestyle-fetch generate \
5050
--input ./api-spec.json \
5151
--output ./src/api
5252
```

0 commit comments

Comments
 (0)