Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The command that will build the client. Default value is `build` for yarn and `r
```
$ serverless client build --packager yarn --command build
$ serverless client build --packager npm --command "run build"
$ serverless client build --packager pnpm --command "run build"
```

#### `--cwd`, `-d` <!-- omit in toc -->
Expand Down
6 changes: 4 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
module.exports.packagers = {
yarn: "yarn",
npm: "npm"
npm: "npm",
pnpm: "pnpm"
};

module.exports.defaults = {
packager: "yarn",
command: {
yarn: "build",
npm: "run build"
npm: "run build",
pnpm: "run build"
}
};