From 8b470dbfd876d61b6bd72327952bd1d9b0b49c9b Mon Sep 17 00:00:00 2001 From: Bret Comnes Date: Thu, 13 Feb 2020 12:05:09 -0700 Subject: [PATCH] bug: fix time formatting --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 67ae745..a5380e9 100644 --- a/index.js +++ b/index.js @@ -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`) diff --git a/package.json b/package.json index 6db184d..7a959e9 100644 --- a/package.json +++ b/package.json @@ -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": [