bug: fix time formatting

This commit is contained in:
Bret Comnes 2020-02-13 12:05:09 -07:00
parent 0dd3a06ef7
commit 8b470dbfd8
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ const core = require('@actions/core')
// const github = require('@actions/github')
const Neocities = require('async-neocities')
const path = require('path')
const prettyTime = require('pretty-time')
const ms = require('ms')
const assert = require('nanoassert')
async function doDeploy () {
@ -19,7 +19,7 @@ async function doDeploy () {
statsCb: Neocities.statsHandler()
})
console.log(`Deployed to Neocities in ${prettyTime([0, stats.time])}:`)
console.log(`Deployed to Neocities in ${ms(stats.time)}:`)
console.log(` Uploaded ${stats.filesToUpload.length} files`)
console.log(` ${cleanup ? 'Deleted' : 'Orphaned'} ${stats.filesToDelete.length} files`)
console.log(` Skipped ${stats.filesSkipped.length} files`)

View File

@ -40,7 +40,7 @@
"@actions/core": "1.2.2",
"@actions/github": "2.1.0",
"async-neocities": "1.1.5",
"pretty-time": "1.1.0"
"ms": "^2.1.2"
},
"standard": {
"ignore": [