Skip to content

Commit

Permalink
(fix): watch examples should only show watch command (jaredpalmer#537)
Browse files Browse the repository at this point in the history
- previously they would show build command too
  - either change them to watch or remove them if extraneous
  • Loading branch information
agilgur5 authored and paul-vd committed Dec 1, 2020
1 parent a03bd3a commit 7361e6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,16 @@ prog
.example('watch --noClean')
.option('--tsconfig', 'Specify custom tsconfig path')
.example('watch --tsconfig ./tsconfig.foo.json')
.example('build --tsconfig ./tsconfig.foo.json')
.option('--onFirstSuccess', 'Run a command on the first successful build')
.example('watch --onFirstSuccess "echo The first successful build!"')
.option('--onSuccess', 'Run a command on a successful build')
.example('watch --onSuccess "echo Successful build!"')
.option('--onFailure', 'Run a command on a failed build')
.example('watch --onFailure "The build failed!"')
.option('--transpileOnly', 'Skip type checking')
.example('build --transpileOnly')
.example('watch --transpileOnly')
.option('--extractErrors', 'Extract invariant errors to ./errors/codes.json.')
.example('build --extractErrors')
.example('watch --extractErrors')
.action(async (dirtyOpts: WatchOpts) => {
const opts = await normalizeOpts(dirtyOpts);
const buildConfigs = await createBuildConfigs(opts);
Expand Down

0 comments on commit 7361e6d

Please sign in to comment.