mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
build(node): migrate from CommonJS to ESM modules
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const spawnSync = require('child_process').spawnSync
|
||||
import { spawnSync } from 'child_process'
|
||||
|
||||
const verbose = isVerbose()
|
||||
|
||||
@@ -23,4 +23,4 @@ function isVerbose () {
|
||||
return loglevel === 'verbose' || process.env.CI === 'true'
|
||||
}
|
||||
|
||||
module.exports = { spawn, log, isVerbose, verbose }
|
||||
export { spawn, log, isVerbose, verbose }
|
||||
|
||||
Reference in New Issue
Block a user