From cd72b55c6176ada81e7f1946f10c973386eae0cc Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Fri, 1 May 2020 02:44:52 -0400 Subject: [PATCH] tupctime: use modules --- tools/tupctime/index.js | 10 ++++++---- tools/tupctime/package.json | 8 +++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/tools/tupctime/index.js b/tools/tupctime/index.js index 6d33602c..6053acd9 100644 --- a/tools/tupctime/index.js +++ b/tools/tupctime/index.js @@ -1,8 +1,10 @@ -const fs = require('fs'); -const pathlib = require('path'); -const Database = require('better-sqlite3'); -const debug = require('debug')('tupctime'); +import fs from 'fs'; +import pathlib from 'path'; +import Database from 'better-sqlite3'; +import debugfn from 'debug'; + +const debug = debugfn('tupctime'); const start = process.argv[2]; if (start !== undefined) { diff --git a/tools/tupctime/package.json b/tools/tupctime/package.json index 2cf0c9d8..7c16e87e 100644 --- a/tools/tupctime/package.json +++ b/tools/tupctime/package.json @@ -1 +1,7 @@ -{"dependencies":{"better-sqlite3":"^7.0.1","debug":"^4.1.1"}} +{ + "dependencies": { + "better-sqlite3":"^7.0.1", + "debug":"^4.1.1" + }, + "type": "module" +}