Skip to content

Commit d9cc98c

Browse files
committed
Upgrade dependencies; Migrate from commander@10 to commander@12
1 parent 08c7d82 commit d9cc98c

File tree

3 files changed

+368
-50
lines changed

3 files changed

+368
-50
lines changed

bin/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const path = require('path')
44
const os = require('os')
55
const fs = require('fs')
6-
const program = require('commander')
6+
const { program, Option } = require('commander')
77
const strftime = require('strftime')
88
const editor = require('editor')
99
const stringify = require('json-stable-stringify')
@@ -108,7 +108,7 @@ program
108108
.option('--week [value]', 'show given week (default: current week)')
109109
.option('--month [value]', 'show given month (default: current month)')
110110
.option('--year [value]', 'show given year (default: current year)')
111-
.addOption(new program.Option('--reportDay <value>', 'day to use').hideHelp())
111+
.addOption(new Option('--reportDay <value>', 'day to use').hideHelp())
112112
.option('-a, --all', 'include archived dates')
113113
.action(report)
114114

0 commit comments

Comments
 (0)