diff --git a/src/commands/prepare.ts b/src/commands/prepare.ts index e652768..0bfff8e 100644 --- a/src/commands/prepare.ts +++ b/src/commands/prepare.ts @@ -1,6 +1,7 @@ import type { NuxtConfig } from '@nuxt/schema' import { defineCommand } from 'citty' import { resolve } from 'pathe' +import { readPackageJSON } from 'pkg-types' export default defineCommand({ meta: { @@ -20,11 +21,13 @@ export default defineCommand({ }, async run(context) { const { runCommand } = await import('@nuxt/cli') + const moduleName = await readPackageJSON(context.args.rootDir, { try: true }).then(r => r.name) const cwd = resolve(context.args.cwd || context.args.rootDir || '.') return runCommand('prepare', [cwd], { overrides: { + alias: moduleName ? { [moduleName]: resolve(cwd, './src/module') } : {}, compatibilityDate: '2024-04-03', typescript: { builder: 'shared', pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy