refactor(core): use renamed util
This commit is contained in:
parent
c6c3fc608a
commit
87c6cffb2f
3 changed files with 3 additions and 3 deletions
|
@ -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...')
|
||||||
|
|
|
@ -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...')
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue