diff --git a/packages/cli/bin/index.mjs b/packages/cli/bin/index.mjs index e19616b..dea1991 100755 --- a/packages/cli/bin/index.mjs +++ b/packages/cli/bin/index.mjs @@ -1,5 +1,5 @@ #! /usr/bin/env node -import fs from 'fs'; +import fs from 'node:fs'; import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import chalk from 'chalk'; diff --git a/packages/cli/commands/info.mjs b/packages/cli/commands/info.mjs index 6a5fce1..e7c8804 100644 --- a/packages/cli/commands/info.mjs +++ b/packages/cli/commands/info.mjs @@ -1,4 +1,4 @@ -import fs from 'fs'; +import fs from 'node:fs'; import chalk from 'chalk'; import { packagesInfoPath } from '../config/paths.mjs'; diff --git a/packages/cli/commands/install.mjs b/packages/cli/commands/install.mjs index 3f9f016..cc990f8 100644 --- a/packages/cli/commands/install.mjs +++ b/packages/cli/commands/install.mjs @@ -1,5 +1,5 @@ -import { execSync } from 'child_process'; -import fs from 'fs'; +import { execSync } from 'node:child_process'; +import fs from 'node:fs'; import chalk from 'chalk'; import { packagesInfoPath } from '../config/paths.mjs'; diff --git a/packages/cli/commands/list.mjs b/packages/cli/commands/list.mjs index 9e42174..d1d0ec5 100644 --- a/packages/cli/commands/list.mjs +++ b/packages/cli/commands/list.mjs @@ -1,5 +1,5 @@ +import fs from 'node:fs'; import chalk from 'chalk'; -import fs from 'fs'; import { packagesInfoPath } from '../config/paths.mjs'; diff --git a/packages/cli/commands/publish.mjs b/packages/cli/commands/publish.mjs index b7bf6c8..12b215a 100644 --- a/packages/cli/commands/publish.mjs +++ b/packages/cli/commands/publish.mjs @@ -1,8 +1,8 @@ -import { execSync } from 'child_process'; +import { execSync } from 'node:child_process'; +import fs from 'node:fs'; +import { join } from 'node:path'; +import process from 'node:process'; import chalk from 'chalk'; -import fs from 'fs'; -import { join } from 'path'; -import process from 'process'; import { modulesRoot, packagesInfoPath } from '../config/paths.mjs'; diff --git a/packages/cli/commands/unpublish.mjs b/packages/cli/commands/unpublish.mjs index 7081ce6..a6c59ec 100644 --- a/packages/cli/commands/unpublish.mjs +++ b/packages/cli/commands/unpublish.mjs @@ -1,5 +1,5 @@ +import fs from 'node:fs'; import chalk from 'chalk'; -import fs from 'fs'; import { packagesInfoPath } from '../config/paths.mjs'; diff --git a/packages/cli/config/paths.mjs b/packages/cli/config/paths.mjs index 33f7378..2baf9f4 100644 --- a/packages/cli/config/paths.mjs +++ b/packages/cli/config/paths.mjs @@ -1,6 +1,6 @@ -import path from 'path'; -import os from 'os'; -import { createRequire } from 'module'; +import path from 'node:path'; +import os from 'node:os'; +import { createRequire } from 'node:module'; const require = createRequire(import.meta.url); const { version } = require(path.join('..', 'package.json')); diff --git a/packages/cli/utils/get-workdir-pkg-manager.mjs b/packages/cli/utils/get-workdir-pkg-manager.mjs index a12f2d7..a6ce8d6 100644 --- a/packages/cli/utils/get-workdir-pkg-manager.mjs +++ b/packages/cli/utils/get-workdir-pkg-manager.mjs @@ -1,4 +1,4 @@ -import path from 'path'; +import path from 'node:path'; import chalk from 'chalk'; import { resolvePkgJson } from './resolve-pkg-json.mjs'; diff --git a/packages/cli/utils/resolve-file.mjs b/packages/cli/utils/resolve-file.mjs index f9103f2..2754cb2 100644 --- a/packages/cli/utils/resolve-file.mjs +++ b/packages/cli/utils/resolve-file.mjs @@ -1,4 +1,4 @@ -import process from 'process'; +import process from 'node:process'; import { findUpSync } from 'find-up'; diff --git a/packages/cli/utils/resolve-pkg-json.mjs b/packages/cli/utils/resolve-pkg-json.mjs index d40417b..ec4def0 100644 --- a/packages/cli/utils/resolve-pkg-json.mjs +++ b/packages/cli/utils/resolve-pkg-json.mjs @@ -1,4 +1,4 @@ -import { readFileSync } from 'fs'; +import { readFileSync } from 'node:fs'; import { resolveFile } from './resolve-file.mjs';