1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-07-19 09:45:30 -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

View File

@@ -1,7 +1,6 @@
'use strict';
const path = require('path');
const bin = require('.');
import path from 'node:path';
import process from 'node:process';
import bin from './index.js';
function getProjectRoot() {
// `projectRoot` on postinstall could be INIT_CWD introduced in npm >= 5.4