Skip to content

Commit e2a91ad

Browse files
authored
(fix): watch examples should only show watch command (#537)
- previously they would show build command too - either change them to watch or remove them if extraneous
1 parent a2e4b78 commit e2a91ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,16 @@ prog
274274
.example('watch --noClean')
275275
.option('--tsconfig', 'Specify custom tsconfig path')
276276
.example('watch --tsconfig ./tsconfig.foo.json')
277-
.example('build --tsconfig ./tsconfig.foo.json')
278277
.option('--onFirstSuccess', 'Run a command on the first successful build')
279278
.example('watch --onFirstSuccess "echo The first successful build!"')
280279
.option('--onSuccess', 'Run a command on a successful build')
281280
.example('watch --onSuccess "echo Successful build!"')
282281
.option('--onFailure', 'Run a command on a failed build')
283282
.example('watch --onFailure "The build failed!"')
284283
.option('--transpileOnly', 'Skip type checking')
285-
.example('build --transpileOnly')
284+
.example('watch --transpileOnly')
286285
.option('--extractErrors', 'Extract invariant errors to ./errors/codes.json.')
287-
.example('build --extractErrors')
286+
.example('watch --extractErrors')
288287
.action(async (dirtyOpts: WatchOpts) => {
289288
const opts = await normalizeOpts(dirtyOpts);
290289
const buildConfigs = await createBuildConfigs(opts);

0 commit comments

Comments
 (0)