Skip to content

Update FAQ.md #3962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ node-linker=hoisted
```

Pnpm is not included in the Amplify default build container. If you are using PNPM as your package manager, you must add a command to install pnpm in the preBuild phase of your app's build settings.
The following example excerpt from a build specification shows a preBuild phase with a command to install pnpm:
The following example excerpt from a build specification shows a preBuild phase with a command to install pnpm and monorepo's pnpm install:

```
version: 1
Expand All @@ -528,6 +528,7 @@ applications:
preBuild:
commands:
- npm install -g pnpm
- pnpm install --shamefully-hoist # Amplify requires hoisted dependencies to be in the root of the node_modules
```

We also introduced the new `buildPath` attribute in the buildSpec. If you want to build your application under the project root folder, you can set buildPath to `/`. Note that the baseDirectory is the relative path of buildPath (if specified).
Expand Down