Skip to content

Commit c1cd2c3

Browse files
committed
fix: log relative path for hub dir
1 parent 66a50e5 commit c1cd2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { writeFile, readFile } from 'node:fs/promises'
22
import { argv } from 'node:process'
33
import { defineNuxtModule, createResolver, logger, installModule, addServerHandler, addServerPlugin } from '@nuxt/kit'
4-
import { join } from 'pathe'
4+
import { join, relative } from 'pathe'
55
import { defu } from 'defu'
66
import { findWorkspaceDir } from 'pkg-types'
77
import { parseArgs } from 'citty'
@@ -197,7 +197,7 @@ export default defineNuxtModule<ModuleOptions>({
197197
// Local development
198198
if (nuxt.options.dev) {
199199
if (!hub.remote) {
200-
log.info(`Using local storage from \`${hub.dir}\``)
200+
log.info(`Using local storage from \`${relative(nuxt.options.rootDir, hub.dir)}\``)
201201
}
202202

203203
const workspaceDir = await findWorkspaceDir(rootDir)

0 commit comments

Comments
 (0)