Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate to cwd from rootDir #350

Merged
merged 1 commit into from Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/analyze.ts
Expand Up @@ -41,7 +41,7 @@ export default defineCommand({
const { loadNuxt, buildNuxt } = await loadKit(cwd)

const nuxt = await loadNuxt({
rootDir: cwd,
cwd,
overrides: defu(ctx.data?.overrides, {
build: {
analyze: {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/build.ts
Expand Up @@ -45,7 +45,7 @@ export default defineCommand({
}

const nuxt = await kit.loadNuxt({
rootDir: cwd,
cwd,
dotenv: {
cwd,
fileName: ctx.args.dotenv,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/prepare.ts
Expand Up @@ -29,7 +29,7 @@ export default defineCommand({
writeTypes = writeTypesLegacy,
} = await loadKit(cwd)
const nuxt = await loadNuxt({
rootDir: cwd,
cwd,
overrides: {
_prepare: true,
logLevel: ctx.args.logLevel as 'silent' | 'info' | 'verbose',
Expand Down
2 changes: 1 addition & 1 deletion src/commands/typecheck.ts
Expand Up @@ -29,7 +29,7 @@ export default defineCommand({
writeTypes = writeTypesLegacy,
} = await loadKit(cwd)
const nuxt = await loadNuxt({
rootDir: cwd,
cwd,
overrides: {
_prepare: true,
logLevel: ctx.args.logLevel as 'silent' | 'info' | 'verbose',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/dev.ts
Expand Up @@ -171,7 +171,7 @@ class NuxtDevServer extends EventEmitter {

const kit = await loadKit(this.options.cwd)
this._currentNuxt = await kit.loadNuxt({
rootDir: this.options.cwd,
cwd: this.options.cwd,
dev: true,
ready: false,
overrides: {
Expand Down