Skip to content

Commit 07e6512

Browse files
committed
refactor: update imports
1 parent 5ed9e60 commit 07e6512

File tree

14 files changed

+74
-94
lines changed

14 files changed

+74
-94
lines changed
File renamed without changes.

src/module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineNuxtModule, createResolver, addImports } from '@nuxt/kit'
2-
import { generateStyles, parseFormat } from './utils'
3-
import { name, version, configKey, compatibility } from './meta'
4-
import type { ModuleOptions } from './types/module'
2+
import { generateStyles, parseFormat } from './utils/index.js'
3+
import { name, version, configKey, compatibility } from './meta.js'
4+
import type { ModuleOptions } from './types/module.js'
55

66
export default defineNuxtModule<ModuleOptions>({
77
meta: {

src/runtime/composables/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './use-external-font'
2-
export * from './use-local-font'
1+
export * from './use-external-font.js'
2+
export * from './use-local-font.js'

src/runtime/composables/use-external-font.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useHead } from '#imports'
2-
import { generateStyles } from '../../utils'
3-
import type { ExternalOptions } from '../../types/options'
2+
import { generateStyles } from '../../utils/index.js'
3+
import type { ExternalOptions } from '../../types/options/index.js'
44

55
export const useExternalFont = (external: ExternalOptions[]) => {
66
const { classes, root } = generateStyles(external)

src/runtime/composables/use-local-font.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useHead } from '#imports'
2-
import { generateStyles, parseFormat } from '../../utils'
3-
import type { LocalOptions } from '../../types/options'
2+
import { generateStyles, parseFormat } from '../../utils/index.js'
3+
import type { LocalOptions } from '../../types/options/index.js'
44

55
export const useLocalFont = (local: LocalOptions[]) => {
66
const { fontFace, classes, root } = generateStyles(local)

src/types/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { NuxtModule } from '@nuxt/schema'
2-
import type { LocalOptions, ExternalOptions } from './options'
2+
import type { LocalOptions, ExternalOptions } from './options/index.js'
33

44
export interface ModuleOptions {
55
/**

src/types/options/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './external'
2-
export * from './local'
1+
export * from './external.js'
2+
export * from './local.js'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from './use-external-font'
2-
export * from './use-local-font'
1+
export * from './use-external-font.js'
2+
export * from './use-local-font.js'

src/types/runtime/composables/use-external-font.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ExternalOptions } from '../../options'
1+
import type { ExternalOptions } from '../../options/index.js'
22

33
/**
44
* Loads fonts directly from third-party servers.

src/types/runtime/composables/use-local-font.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LocalOptions } from '../../options'
1+
import type { LocalOptions } from '../../options/index.js'
22

33
/**
44
* Loads fonts from the same domain as your deployment.

0 commit comments

Comments
 (0)