diff --git a/src/actions/add-action.ts b/src/actions/add-action.ts index 183db8f..98509c0 100644 --- a/src/actions/add-action.ts +++ b/src/actions/add-action.ts @@ -1,7 +1,7 @@ /* eslint-disable no-var */ import type {SAFE_ANY} from '@helpers/type'; -import {existsSync, writeFileSync} from 'fs'; +import {existsSync, writeFileSync} from 'node:fs'; import chalk from 'chalk'; diff --git a/src/actions/doctor-action.ts b/src/actions/doctor-action.ts index f975dd4..3716300 100644 --- a/src/actions/doctor-action.ts +++ b/src/actions/doctor-action.ts @@ -1,4 +1,4 @@ -import {basename} from 'path'; +import {basename} from 'node:path'; import chalk from 'chalk'; diff --git a/src/actions/init-action.ts b/src/actions/init-action.ts index b9d5ca6..dad2f97 100644 --- a/src/actions/init-action.ts +++ b/src/actions/init-action.ts @@ -1,4 +1,4 @@ -import {rename} from 'fs'; +import {rename} from 'node:fs'; import chalk from 'chalk'; import {oraPromise} from 'ora'; diff --git a/src/actions/remove-action.ts b/src/actions/remove-action.ts index 3281cb1..79b8d26 100644 --- a/src/actions/remove-action.ts +++ b/src/actions/remove-action.ts @@ -1,7 +1,7 @@ /* eslint-disable no-var */ import type {SAFE_ANY} from '@helpers/type'; -import {existsSync, readFileSync, writeFileSync} from 'fs'; +import {existsSync, readFileSync, writeFileSync} from 'node:fs'; import chalk from 'chalk'; diff --git a/src/constants/required.ts b/src/constants/required.ts index aef9122..6e9bc41 100644 --- a/src/constants/required.ts +++ b/src/constants/required.ts @@ -1,4 +1,4 @@ -import {existsSync} from 'fs'; +import {existsSync} from 'node:fs'; import fg from 'fast-glob'; diff --git a/src/helpers/check.ts b/src/helpers/check.ts index 244b220..b7ca635 100644 --- a/src/helpers/check.ts +++ b/src/helpers/check.ts @@ -1,7 +1,7 @@ import type {RequiredKey, SAFE_ANY} from './type'; import type {ProblemRecord} from 'src/actions/doctor-action'; -import {readFileSync} from 'fs'; +import {readFileSync} from 'node:fs'; import chalk from 'chalk'; diff --git a/src/helpers/package.ts b/src/helpers/package.ts index ab3dd56..635a3c5 100644 --- a/src/helpers/package.ts +++ b/src/helpers/package.ts @@ -1,4 +1,4 @@ -import {readFileSync} from 'fs'; +import {readFileSync} from 'node:fs'; import {type NextUIComponents} from 'src/constants/component'; import {NEXT_UI} from 'src/constants/required'; diff --git a/src/helpers/remove.ts b/src/helpers/remove.ts index 2cf0953..423e5ce 100644 --- a/src/helpers/remove.ts +++ b/src/helpers/remove.ts @@ -1,6 +1,6 @@ import type {NextUIComponents} from 'src/constants/component'; -import {existsSync, readFileSync, writeFileSync} from 'fs'; +import {existsSync, readFileSync, writeFileSync} from 'node:fs'; import {tailwindRequired} from 'src/constants/required'; diff --git a/src/scripts/helpers.ts b/src/scripts/helpers.ts index e0de668..47eea3f 100644 --- a/src/scripts/helpers.ts +++ b/src/scripts/helpers.ts @@ -1,5 +1,5 @@ import {exec} from 'child_process'; -import {existsSync, readFileSync, writeFileSync} from 'fs'; +import {existsSync, readFileSync, writeFileSync} from 'node:fs'; import retry from 'async-retry'; diff --git a/src/scripts/path.ts b/src/scripts/path.ts index 69a6079..22f1351 100644 --- a/src/scripts/path.ts +++ b/src/scripts/path.ts @@ -1,5 +1,5 @@ -import {resolve} from 'path'; -import {fileURLToPath} from 'url'; +import {resolve} from 'node:path'; +import {fileURLToPath} from 'node:url'; export const ROOT = resolve(fileURLToPath(import.meta.url), '../..');