Skip to content

Commit

Permalink
feat(vite): recognize all vite.config file extensions (nrwl#20971)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Jan 3, 2024
1 parent 423dd3c commit 688b83f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nuxt/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface NuxtPluginOptions {
}

export const createNodes: CreateNodes<NuxtPluginOptions> = [
'**/nuxt.config.{js,ts}',
'**/nuxt.config.{js,ts,mjs,mts,cjs,cts}',
async (configFilePath, options, context) => {
const projectRoot = dirname(configFilePath);
// Do not create a project if package.json and project.json isn't there.
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const createDependencies: CreateDependencies = () => {
};

export const createNodes: CreateNodes<VitePluginOptions> = [
'**/{vite,vitest}.config.{js,ts}',
'**/{vite,vitest}.config.{js,ts,mjs,mts,cjs,cts}',
async (configFilePath, options, context) => {
const projectRoot = dirname(configFilePath);
// Do not create a project if package.json and project.json isn't there.
Expand Down

0 comments on commit 688b83f

Please sign in to comment.