Skip to content

Commit 0142440

Browse files
generate hey-api client before dev and build
Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 6a7c331 commit 0142440

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"scripts": {
88
"clean": "rimraf ./dist",
99
"clean:all": "rimraf ./dist ./node_modules",
10-
"build": "rsbuild build",
10+
"build": "npm run generate && rsbuild build",
1111
"check": "biome check .",
1212
"check:write": "biome check --write .",
13-
"start:dev": "rsbuild dev",
13+
"start:dev": "npm run generate && rsbuild dev",
1414
"start": "rsbuild preview",
1515
"test": "NODE_ENV=test jest --rootDir=. --config=./config/jest.config.ts",
1616
"generate": "openapi-ts -f ./config/openapi-ts.config.ts",

client/rsbuild.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ export const ignoreProcessEnv = (): RsbuildPlugin => ({
8484

8585
export default defineConfig({
8686
plugins: [pluginReact(), renameIndex(), ignoreProcessEnv()],
87-
resolve: {
88-
alias: {
89-
"@app": path.resolve(__dirname, "./src/app"),
90-
"@mocks": path.resolve(__dirname, "./src/mocks"),
91-
},
92-
},
9387
html: {
9488
template: path.join(__dirname, "index.html"),
9589
templateParameters: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"start:dev:common": "npm run start:dev -w common",
1919
"start:dev:server": "npm run start:dev -w server",
2020
"start:dev:client": "npm run start:dev -w client",
21-
"start:dev": "npm run build -w common && npm run generate && concurrently -n common,client -c 'white.bold.inverse,green.bold.inverse,blue.bold.inverse' 'npm:start:dev:common' 'npm:start:dev:client'",
21+
"start:dev": "npm run build -w common && concurrently -n common,client -c 'white.bold.inverse,green.bold.inverse,blue.bold.inverse' 'npm:start:dev:common' 'npm:start:dev:client'",
2222
"start": "npm run build -w common -w client && npm run start -w server",
2323
"test": "npm run test -ws --if-present --",
2424
"storybook": "storybook dev -p 6006",

0 commit comments

Comments
 (0)