build(node): migrate from CommonJS to ESM modules

This commit is contained in:
link2xt
2023-11-10 01:41:07 +00:00
parent 94dc65c1a2
commit b607f12b0e
20 changed files with 89 additions and 75 deletions

View File

@@ -1,13 +1,13 @@
/* eslint-disable camelcase */
import binding from './binding'
import { EventId2EventName } from './constants'
import binding from './binding.js'
import { EventId2EventName } from './constants.js'
import { EventEmitter } from 'events'
import { existsSync } from 'fs'
import rawDebug from 'debug'
import { tmpdir } from 'os'
import { join } from 'path'
import { Context } from './context'
import { Context } from './context.js'
const debug = rawDebug('deltachat:node:index')
const noop = function () {}