Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Aug 21, 2019
1 parent de496b8 commit c14681b
Show file tree
Hide file tree
Showing 3 changed files with 2,180 additions and 2,023 deletions.
4 changes: 2 additions & 2 deletions cli/commands/cd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import chalk from 'chalk'
import { CodePipeline } from 'aws-sdk'
import { distanceInWords } from 'date-fns'
import { formatDistanceToNow } from 'date-fns'
import { ComandDefinition } from './CommandDefinition'

export const cdCommand = ({
Expand Down Expand Up @@ -54,7 +54,7 @@ export const cdCommand = ({
} as { [key: string]: any })[summary.status || 'Unknown'],
chalk.cyan(pipelineName),
chalk.gray(
`${distanceInWords(new Date(), summary.lastUpdateTime)} ago`,
formatDistanceToNow(summary.lastUpdateTime, { addSuffix: true }),
),
)
})
Expand Down
Loading

0 comments on commit c14681b

Please sign in to comment.