diff --git a/lib/index.js b/lib/index.js index cb5bed8..a81aa46 100644 --- a/lib/index.js +++ b/lib/index.js @@ -16,7 +16,7 @@ function getDistFullPath(filename) { async function getDatasetSiteTemplate(singleFileMode) { // Get pre-rendered template from ./dist/ - return await fs.readFile(getDistFullPath(getDatasetSiteTemplateFilename(singleFileMode)), { encoding:'utf8' }); + return await fs.promises.readFile(getDistFullPath(getDatasetSiteTemplateFilename(singleFileMode)), { encoding:'utf8' }); } function getDatasetSiteTemplateSync(singleFileMode) {