mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 06:26:30 +03:00
build(node): migrate from CommonJS to ESM modules
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
const path = require('path')
|
||||
const { spawn } = require('./common')
|
||||
import path from 'path'
|
||||
import { spawn } from './common.js'
|
||||
import * as url from 'url'
|
||||
const opts = {
|
||||
cwd: path.resolve(__dirname, '../..'),
|
||||
cwd: path.resolve(url.fileURLToPath(new URL('.', import.meta.url)), '../..'),
|
||||
stdio: 'inherit'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user