Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(make): run frontend pnpm targets from their package directories

Josh Corbett27448fc012b9
diff --git a/Makefile b/Makefile
index b3a656e9a6..23263b6e8f 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 7399579dcf..b6a4325443 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.