Skip to content

Commit

Permalink
refactor: migrate to cwd from rootDir (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuusheng committed Mar 16, 2024
1 parent 9515064 commit 4daf11f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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

0 comments on commit 4daf11f

Please sign in to comment.