Skip to content

Commit

Permalink
feat(cli): make success message indicate dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffijoe committed Dec 27, 2023
1 parent e03a6ab commit cb2d7b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# v0.12.0

- **[BREAKING CHANGE]** [#86](https://github.com/jeffijoe/typesync/issues/86): Use the DefinitelyTyped strategy for resolving typings versions. This also means we no longer use the existing semver range specifier used in `package.json`.
- The success message after running `typesync` now indicates when `--dry` is used.
- Upgrade packages.

# v0.11.1
Expand Down
6 changes: 4 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ async function run(syncer: ITypeSyncer) {
}
C.success(
totals.newTypings === 0
? `No new typings added, looks like you're all synced up!`
: chalk`${totals.newTypings.toString()} new typings added.\n\n${syncedFilesOutput}\n\n✨ Go ahead and run {green npm install} or {green yarn} to install the packages that were added.`,
? `No new typings to add, looks like you're all synced up!`
: flags.dry
? chalk`${totals.newTypings.toString()} new typings can be added.\n\n${syncedFilesOutput}\n\n✨ Run {green typesync} again without the {gray --dry} flag to update your {gray package.json}.`
: chalk`${totals.newTypings.toString()} new typings added.\n\n${syncedFilesOutput}\n\n✨ Go ahead and run {green npm install} or {green yarn} to install the packages that were added.`,
)
}

Expand Down

0 comments on commit cb2d7b6

Please sign in to comment.