chore: add prefix of node core modules (#11440)

This commit is contained in:
neverland
2022-12-31 20:27:35 +08:00
committed by GitHub
parent 65d6a22f03
commit 5bd6997d3c
27 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
// @ts-ignore
import fs from 'fs';
import { URL, fileURLToPath } from 'url';
import fs from 'node:fs';
import { URL, fileURLToPath } from 'node:url';
const packagePath = fileURLToPath(new URL('../package.json', import.meta.url));
const packageJson = JSON.parse(fs.readFileSync(packagePath, 'utf-8'));