diff --git a/Makefile b/Makefile index b3a656e9a63..23263b6e8fd 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ frontend-legacy-dev: # Install the shared contract generation tools frontend-api-install: - pnpm -C invokeai/frontend/api install --frozen-lockfile + cd invokeai/frontend/api && pnpm install --frozen-lockfile # Generate the OpenAPI Schema for the app frontend-openapi: @@ -104,7 +104,7 @@ frontend-typegen: set -o pipefail; cd invokeai/frontend/api && python ../../../scripts/generate_openapi_schema.py | pnpm typegen frontend-lint: - pnpm -C invokeai/frontend/webv2 lint + cd invokeai/frontend/webv2 && pnpm lint # Tag the release wheel: diff --git a/docs/src/content/docs/development/Front End/index.md b/docs/src/content/docs/development/Front End/index.md index 7399579dcf6..b6a43254437 100644 --- a/docs/src/content/docs/development/Front End/index.md +++ b/docs/src/content/docs/development/Front End/index.md @@ -33,8 +33,9 @@ If you make backend changes, it's important to regenerate the frontend types: ```sh set -o pipefail -pnpm -C invokeai/frontend/api install --frozen-lockfile -cd invokeai/frontend/api && python ../../../scripts/generate_openapi_schema.py | pnpm typegen +cd invokeai/frontend/api +pnpm install --frozen-lockfile +python ../../../scripts/generate_openapi_schema.py | pnpm typegen ``` On macOS and Linux, you can run `make frontend-typegen` as a shortcut for the above snippet.