Skip to content

Commit

Permalink
fix: update Pergel configuration file name
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Feb 14, 2024
1 parent cbdb950 commit 6dd2ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages-core/cli/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export async function definePergelLoadConfig(input?: {
}) {
const file = await loadConfig({
cwd: input?.cwd ?? process.cwd(),
configFile: 'pergel.config.ts',
configFile: 'pergel.config',
defaultConfig: {
dir: {
pergel: 'pergel',
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/src/runtime/core/setupPergel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export async function setupPergel(
) {
const file = await loadConfig({
cwd: data.nuxt.options.rootDir,
configFile: 'pergel.config.ts',
configFile: 'pergel.config',
defaultConfig: {
// TODO: add cwd
dir: {
Expand All @@ -52,7 +52,7 @@ export async function setupPergel(

let exitPergelFolder = false

if (file)
if (!file.configFile?.startsWith('pergel.config'))
exitPergelFolder = true

const { options, nuxt, resolver, version } = data
Expand Down

0 comments on commit 6dd2ce4

Please sign in to comment.