From d097de9acc747d57d4d339a7442d8ca0067ae1dc Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 14 Sep 2024 16:43:47 +0900 Subject: [PATCH] tweak --- packages/build/src/adapter/cloudflare-pages/index.ts | 4 ++-- packages/build/src/adapter/cloudflare-workers/index.ts | 4 ++-- packages/build/test/cloudflare-pages.test.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/build/src/adapter/cloudflare-pages/index.ts b/packages/build/src/adapter/cloudflare-pages/index.ts index 467aa78..d632019 100644 --- a/packages/build/src/adapter/cloudflare-pages/index.ts +++ b/packages/build/src/adapter/cloudflare-pages/index.ts @@ -11,7 +11,7 @@ const ROUTES_JSON_NAME = '_routes.json' type StaticRoutes = { version: number; include: string[]; exclude: string[] } -const bunBuildPlugin = (pluginOptions?: CloudflarePagesBuildOptions): Plugin => { +const cloudflarePagesBuildPlugin = (pluginOptions?: CloudflarePagesBuildOptions): Plugin => { let config: ResolvedConfig const staticPaths: string[] = [] @@ -58,4 +58,4 @@ const bunBuildPlugin = (pluginOptions?: CloudflarePagesBuildOptions): Plugin => } } -export default bunBuildPlugin +export default cloudflarePagesBuildPlugin diff --git a/packages/build/src/adapter/cloudflare-workers/index.ts b/packages/build/src/adapter/cloudflare-workers/index.ts index 42d0161..fbce7c0 100644 --- a/packages/build/src/adapter/cloudflare-workers/index.ts +++ b/packages/build/src/adapter/cloudflare-workers/index.ts @@ -4,7 +4,7 @@ import buildPlugin from '../../base.js' export type CloudflareWorkersBuildOptions = BuildOptions -const nodeBuildPlugin = (pluginOptions?: CloudflareWorkersBuildOptions): Plugin => { +const cloudflareWorkersBuildPlugin = (pluginOptions?: CloudflareWorkersBuildOptions): Plugin => { return { ...buildPlugin({ ...pluginOptions, @@ -13,4 +13,4 @@ const nodeBuildPlugin = (pluginOptions?: CloudflareWorkersBuildOptions): Plugin } } -export default nodeBuildPlugin +export default cloudflareWorkersBuildPlugin diff --git a/packages/build/test/cloudflare-pages.test.ts b/packages/build/test/cloudflare-pages.test.ts index 60c3f66..065965e 100644 --- a/packages/build/test/cloudflare-pages.test.ts +++ b/packages/build/test/cloudflare-pages.test.ts @@ -3,7 +3,7 @@ import { build } from 'vite' import { describe, it, expect, afterAll } from 'vitest' import cloudflarePagesPlugin from '../src/adapter/cloudflare-pages' -describe('cloudflarePagesPlugin', () => { +describe('Build Plugin with Cloudflare Pages Adapter', () => { const testDir = './test/mocks/app-static-files' afterAll(() => {