1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-10-16 09:54:28 -04:00

Switch to ESM

This commit is contained in:
XhmikosR
2021-12-07 10:34:35 +02:00
parent e524abe8fa
commit e4b83248a0
8 changed files with 131 additions and 209 deletions

7
cli.js
View File

@@ -1,9 +1,8 @@
#!/usr/bin/env node
'use strict';
const { spawn } = require('child_process');
const hugo = require('.');
import { spawn } from 'node:child_process';
import process from 'node:process';
import hugo from './index.js';
const input = process.argv.slice(2);