Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 6, 2025
1 parent 9de7a29 commit 52a1c21
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/templates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ function applySuffix(
return suffix
}

export { templates, applySuffix, Template }
export { applySuffix, Template, templates }
2 changes: 1 addition & 1 deletion src/utils/templates/server-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { resolve } from 'pathe'
import type { Template } from '.'
import { resolve } from 'pathe'

const serverPlugin: Template = ({ name, nuxtOptions }) => ({
path: nuxtOptions.future.compatibilityVersion === 3
Expand Down
6 changes: 3 additions & 3 deletions src/utils/templates/server-route.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { resolve } from 'pathe'
import type { Template } from '.'
import { resolve } from 'pathe'

const serverRoute: Template = ({ name, args, nuxtOptions }) => ({
path: nuxtOptions.future.compatibilityVersion === 3
? resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, args['api'] ? 'api' : 'routes', `${name}.ts`)
: resolve(nuxtOptions.serverDir, args['api'] ? 'api' : 'routes', `${name}.ts`),
? resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, args.api ? 'api' : 'routes', `${name}.ts`)
: resolve(nuxtOptions.serverDir, args.api ? 'api' : 'routes', `${name}.ts`),
contents: `
export default defineEventHandler((event) => {})
`,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/templates/server-util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { resolve } from 'pathe'
import type { Template } from '.'
import { resolve } from 'pathe'
import { pascalCase } from 'scule'

const serverUtil: Template = ({ name, nuxtOptions }) => ({
Expand Down

0 comments on commit 52a1c21

Please sign in to comment.