We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39cc0b4 commit 6ee406aCopy full SHA for 6ee406a
options-loader/index.js
@@ -1,5 +1,5 @@
1
-import { existsSync, readFileSync } from 'fs'
2
-import { join } from 'path'
+import { existsSync, readFileSync } from 'node:fs'
+import { join } from 'node:path'
3
import pico from 'picocolors'
4
5
export function loadOptions(spec, process, env) {
@@ -91,7 +91,7 @@ function loadEnv(file) {
91
let lines
92
try {
93
lines = readFileSync(file, 'utf8').split('\n')
94
- } catch (error) {
+ } catch {
95
/* c8 ignore next 2 */
96
return undefined
97
}
0 commit comments