From 87c6cffb2f1cf9219d623201a8be8a8bd3f68652 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 15 Mar 2025 20:13:39 +0100 Subject: [PATCH] refactor(core): use renamed util --- packages/core/src/cli/commands/build.ts | 2 +- packages/core/src/cli/commands/prepare.ts | 2 +- packages/core/src/cli/commands/serve.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/cli/commands/build.ts b/packages/core/src/cli/commands/build.ts index 5f7d7d8..73746d1 100644 --- a/packages/core/src/cli/commands/build.ts +++ b/packages/core/src/cli/commands/build.ts @@ -11,7 +11,7 @@ import { prerender, } from 'nitropack' 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) { consola.start('Building project...') diff --git a/packages/core/src/cli/commands/prepare.ts b/packages/core/src/cli/commands/prepare.ts index 48dafac..f2763da 100755 --- a/packages/core/src/cli/commands/prepare.ts +++ b/packages/core/src/cli/commands/prepare.ts @@ -4,7 +4,7 @@ import { consola } from 'consola' import { defineCommand, type ParsedArgs } from 'citty' import { resolve } from 'pathe' 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) { consola.start('Preparing McFly workspace...') diff --git a/packages/core/src/cli/commands/serve.ts b/packages/core/src/cli/commands/serve.ts index 58d37c8..3aaced4 100644 --- a/packages/core/src/cli/commands/serve.ts +++ b/packages/core/src/cli/commands/serve.ts @@ -15,7 +15,7 @@ import { import { resolve } from 'pathe' import { fileURLToPath } from 'node:url' import { dirname } from 'pathe' -import { getMcFlyConfig, getNitroConfig } from '../../get-nitro-config.js' +import { getMcFlyConfig, getNitroConfig } from '../../get-config.js' const hmrKeyRe = /^runtimeConfig\.|routeRules\./ const __filename = fileURLToPath(import.meta.url)