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

View File

@@ -1,4 +1,4 @@
import { join } from 'path';
import { join } from 'node:path';
export const CWD = process.cwd();
export const GENERATOR_DIR = join(__dirname, '../generators');

View File

@@ -3,7 +3,7 @@ import glob from 'fast-glob';
import color from 'picocolors';
import consola from 'consola';
import { prompt } from 'enquirer';
import { sep, join } from 'path';
import { sep, join } from 'node:path';
import { CWD, GENERATOR_DIR } from './constant';
const PROMPTS = [