Skip to content

Commit

Permalink
feat: migrate to cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
yuusheng committed Feb 26, 2024
1 parent 5cdb2f5 commit 004c5d0
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 004c5d0

Please sign in to comment.