Skip to content

Commit da521f6

Browse files
committed
Simplify imports
1 parent ba22623 commit da521f6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

acorn-loose/rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import {readFile, writeFile} from "node:fs/promises"
12
import buble from "@rollup/plugin-buble"
2-
import {promises as fs} from "node:fs"
33

44
const copy = (from, to) => ({
5-
async writeBundle() { await fs.writeFile(to, await fs.readFile(from)) }
5+
async writeBundle() { await writeFile(to, await readFile(from)) }
66
})
77

88
export default {

acorn-walk/rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import {readFile, writeFile} from "node:fs/promises"
12
import buble from "@rollup/plugin-buble"
2-
import {promises as fs} from "node:fs"
33

44
const copy = (from, to) => ({
5-
async writeBundle() { await fs.writeFile(to, await fs.readFile(from)) }
5+
async writeBundle() { await writeFile(to, await readFile(from)) }
66
})
77

88
export default {

acorn/rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import {readFile, writeFile} from "node:fs/promises"
12
import buble from "@rollup/plugin-buble"
2-
import {promises as fs} from "node:fs"
33

44
const copy = (from, to) => ({
5-
async writeBundle() { await fs.writeFile(to, await fs.readFile(from)) }
5+
async writeBundle() { await writeFile(to, await readFile(from)) }
66
})
77

88
export default [

0 commit comments

Comments
 (0)