Skip to content

Commit

Permalink
build(cli): node 12 eh
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed May 18, 2023
1 parent 29be798 commit c5bf136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/scripts/bundle-html-templates.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import * as path from 'node:path';
import * as fs from 'node:fs/promises';
import { promises as fs } from 'node:fs';
import { fileURLToPath } from 'node:url';
import * as astring from 'astring';
import { builders as b } from 'ast-types';
Expand All @@ -11,7 +11,7 @@ import fg from 'fast-glob';
const cwd = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');

fg('src/formatters/html/*.html', { cwd, absolute: true })
.then(async files =>
.then(files =>
Promise.all(
files.map(async file => ({ file: path.basename(file), content: eol.lf(await fs.readFile(file, 'utf8')) })),
),
Expand Down

0 comments on commit c5bf136

Please sign in to comment.