Skip to content

Commit 8d1f9f8

Browse files
committed
fix: import constants from fs, not fs/promises
`constants` was added to fs/promises in Node.js 18.4. Since we still support 18.0, it must be imported from fs. Thanks n/no-unsupported-features/node-builtins for warning about it! Signed-off-by: Kevin Locke <[email protected]>
1 parent c1b435f commit 8d1f9f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/run-node-build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
*/
88

99
import { spawn } from 'node:child_process';
10-
import { createWriteStream } from 'node:fs';
10+
import { constants, createWriteStream } from 'node:fs';
1111
import {
12-
constants,
1312
copyFile,
1413
mkdir,
1514
stat,

0 commit comments

Comments
 (0)