Skip to content

Commit

Permalink
Update <dir> reference in help text
Browse files Browse the repository at this point in the history
Fixes #11151
  • Loading branch information
timneutkens committed Mar 18, 2020
1 parent 836f68a commit 5274535
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions packages/next/cli/next-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ const nextBuild: cliCommand = argv => {
Usage
$ next build <dir>
<dir> represents where the compiled dist folder should go.
If no directory is provided, the dist folder will be created in the current directory.
You can set a custom folder in config https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory, otherwise it will be created inside '.next'
<dir> represents the directory of the Next.js application.
If no directory is provided, the current directory will be used.
`,
0
)
Expand Down
5 changes: 2 additions & 3 deletions packages/next/cli/next-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ const nextDev: cliCommand = argv => {
Usage
$ next dev <dir> -p <port number>
<dir> represents where the compiled folder should go.
If no directory is provided, the folder will be created in the current directory.
You can set a custom folder in config https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory
<dir> represents the directory of the Next.js application.
If no directory is provided, the current directory will be used.
Options
--port, -p A port number on which to start the application
Expand Down
4 changes: 2 additions & 2 deletions packages/next/cli/next-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const nextExport: cliCommand = argv => {
Usage
$ next export [options] <dir>
<dir> represents where the compiled dist folder should go.
If no directory is provided, the 'out' folder will be created in the current directory.
<dir> represents the directory of the Next.js application.
If no directory is provided, the current directory will be used.
Options
-h - list this help
Expand Down
6 changes: 2 additions & 4 deletions packages/next/cli/next-start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ const nextStart: cliCommand = argv => {
Usage
$ next start <dir> -p <port>
<dir> is the directory that contains the compiled dist folder
created by running \`next build\`.
If no directory is provided, the current directory will be assumed.
You can set a custom dist folder in config https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory
<dir> represents the directory of the Next.js application.
If no directory is provided, the current directory will be used.
Options
--port, -p A port number on which to start the application
Expand Down

0 comments on commit 5274535

Please sign in to comment.