refactor(core): use renamed util

This commit is contained in:
Ayo Ayco 2025-03-15 20:13:39 +01:00
parent c6c3fc608a
commit 87c6cffb2f
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ import {
prerender, prerender,
} from 'nitropack' } from 'nitropack'
import { fileURLToPath } from 'node:url' import { fileURLToPath } from 'node:url'
import { getMcFlyConfig, getNitroConfig } from '../../get-nitro-config.js' import { getMcFlyConfig, getNitroConfig } from '../../get-config.js'
async function _build(args: ParsedArgs) { async function _build(args: ParsedArgs) {
consola.start('Building project...') consola.start('Building project...')

View file

@ -4,7 +4,7 @@ import { consola } from 'consola'
import { defineCommand, type ParsedArgs } from 'citty' import { defineCommand, type ParsedArgs } from 'citty'
import { resolve } from 'pathe' import { resolve } from 'pathe'
import { createNitro, writeTypes } from 'nitropack' import { createNitro, writeTypes } from 'nitropack'
import { getMcFlyConfig, getNitroConfig } from '../../get-nitro-config.js' import { getMcFlyConfig, getNitroConfig } from '../../get-config.js'
async function prepare(args: ParsedArgs) { async function prepare(args: ParsedArgs) {
consola.start('Preparing McFly workspace...') consola.start('Preparing McFly workspace...')

View file

@ -15,7 +15,7 @@ import {
import { resolve } from 'pathe' import { resolve } from 'pathe'
import { fileURLToPath } from 'node:url' import { fileURLToPath } from 'node:url'
import { dirname } from 'pathe' import { dirname } from 'pathe'
import { getMcFlyConfig, getNitroConfig } from '../../get-nitro-config.js' import { getMcFlyConfig, getNitroConfig } from '../../get-config.js'
const hmrKeyRe = /^runtimeConfig\.|routeRules\./ const hmrKeyRe = /^runtimeConfig\.|routeRules\./
const __filename = fileURLToPath(import.meta.url) const __filename = fileURLToPath(import.meta.url)