chore(cli): import from 'node:' prefix

This commit is contained in:
Ayo 2023-11-06 22:06:31 +01:00
parent 3b5b541689
commit 09d55e65f3
4 changed files with 9 additions and 8 deletions

11
package-lock.json generated
View file

@ -3970,7 +3970,7 @@
},
"packages/cli": {
"name": "@mcflyjs/cli",
"version": "0.0.20",
"version": "0.0.22",
"license": "MIT",
"dependencies": {
"citty": "^0.1.4",
@ -4044,12 +4044,13 @@
}
},
"templates/basic/node_modules/@mcflyjs/cli": {
"version": "0.0.19",
"resolved": "https://registry.npmjs.org/@mcflyjs/cli/-/cli-0.0.19.tgz",
"integrity": "sha512-dVicZeoL9Gkggbj2qQhXd7dzK7ZOLvh/fBwGVeHoCGEDzZAOIxgaqXl3wYrGcZIGTO6wGmLIqnaO3y3ZykLzPg==",
"version": "0.0.20",
"resolved": "https://registry.npmjs.org/@mcflyjs/cli/-/cli-0.0.20.tgz",
"integrity": "sha512-KmI0CYK3K5t2GRzv6WlXkTbTUiMi/+FZRwUHmeOkEFwmm4AyWVmh6UnDmNIGSpV61whxe2omDaO6Wz0g6nuUaQ==",
"dependencies": {
"citty": "^0.1.4",
"consola": "^3.2.3"
"consola": "^3.2.3",
"pathe": "^1.1.1"
},
"bin": {
"mcfly": "index.js"

View file

@ -2,7 +2,7 @@
import { consola } from "consola";
import { defineCommand } from "citty";
import { execSync as exec } from "child_process";
import { execSync as exec } from "node:child_process";
export default defineCommand({
meta: {

View file

@ -2,7 +2,7 @@
import { consola } from "consola";
import { defineCommand } from "citty";
import { execSync as exec } from "child_process";
import { execSync as exec } from "node:child_process";
export default defineCommand({
meta: {

View file

@ -1,6 +1,6 @@
{
"name": "@mcflyjs/cli",
"version": "0.0.20",
"version": "0.0.22",
"description": "McFly CLI tools",
"type": "module",
"main": "index.js",