From f18f2a8c81ba8d2452b4cf3bb871d5e448e77d2d Mon Sep 17 00:00:00 2001 From: Victor Garcia Date: Tue, 20 Feb 2024 15:38:17 +0100 Subject: [PATCH] fix imports --- src/core/createTypedRouter.ts | 2 +- .../output/generators/blocks/routes/routes-paths.block.ts | 8 ++++---- src/core/output/generators/files/index.file.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/createTypedRouter.ts b/src/core/createTypedRouter.ts index a5a67d6..234f031 100644 --- a/src/core/createTypedRouter.ts +++ b/src/core/createTypedRouter.ts @@ -2,9 +2,9 @@ import { extendPages } from '@nuxt/kit'; import type { Nuxt, NuxtPage } from '@nuxt/schema/dist/index'; import chalk from 'chalk'; import logSymbols from 'log-symbols'; -import { moduleOptionStore } from '$$/core/stores'; import { handleAddPlugin, saveGeneratedFiles } from './output'; import { buildRoutesSchemas } from './parser'; +import { moduleOptionStore } from './stores'; // Cache to avoid over-logging let hasLoggedNoPages = false; diff --git a/src/core/output/generators/blocks/routes/routes-paths.block.ts b/src/core/output/generators/blocks/routes/routes-paths.block.ts index 4f1db47..2d733f1 100644 --- a/src/core/output/generators/blocks/routes/routes-paths.block.ts +++ b/src/core/output/generators/blocks/routes/routes-paths.block.ts @@ -1,8 +1,8 @@ -import type { DestructuredPath } from '../../../../parser/pathControl'; -import type { RoutePathsDecl } from '../../../../../types'; +import { camelCase, startCase } from 'lodash-es'; import { returnIfTrue } from '../../../../../../src/utils'; -import { moduleOptionStore } from '$$/core/stores'; -import { camelCase, capitalize, startCase } from 'lodash-es'; +import type { RoutePathsDecl } from '../../../../../types'; +import type { DestructuredPath } from '../../../../parser/pathControl'; +import { moduleOptionStore } from '../../../../stores'; function pascalCase(str?: string) { return startCase(camelCase(str)).replace(/ /g, ''); diff --git a/src/core/output/generators/files/index.file.ts b/src/core/output/generators/files/index.file.ts index 21caa5e..7a2fea1 100644 --- a/src/core/output/generators/files/index.file.ts +++ b/src/core/output/generators/files/index.file.ts @@ -1,5 +1,5 @@ -import { returnIfTrue } from '../../../../utils'; import { moduleOptionStore } from '$$/core/stores'; +import { returnIfTrue } from '../../../../utils'; export function createIndexFile(): string { const { i18n, i18nOptions, pathCheck } = moduleOptionStore;