diff --git a/deno.json b/deno.json index f51c6eb2..6cf330a1 100644 --- a/deno.json +++ b/deno.json @@ -8,7 +8,8 @@ "check:types": "deno check **/*.ts && deno check **/*.tsx", "ok": "deno fmt --check && deno lint && deno task check:types && deno task test", "install-puppeteer": "PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@16.2.0/install.ts && PUPPETEER_PRODUCT=firefox deno run -A --unstable https://deno.land/x/puppeteer@16.2.0/install.ts", - "test:www": "deno test -A tests/www/" + "test:www": "deno test -A tests/www/", + "manifests": "deno run -A genAllManifest.ts" }, "exclude": [ "**/_fresh/*", diff --git a/genAllManifest.ts b/genAllManifest.ts new file mode 100644 index 00000000..713f4285 --- /dev/null +++ b/genAllManifest.ts @@ -0,0 +1,42 @@ +import { walk } from "./src/dev/deps.ts"; +import { manifest } from "./src/dev/mod.ts"; +import type { FreshConfig } from "./src/server/mod.ts"; + +const skippedFixtures: string[] = [ + "fixture_invalid_handlers", + "fixture_update_check", +]; + +async function runGenerateInFixtures() { + for await (const entry of walk(Deno.cwd(), { maxDepth: 10 })) { + if (entry.isDirectory && entry.name.startsWith("fixture")) { + if (skippedFixtures.includes(entry.name)) { + console.log(`Skipping ${entry.path}\n`); + continue; + } + console.log(`Processing ${entry.path}`); + + try { + const configPath = `${entry.path}/fresh.config.ts`; + + let config: FreshConfig; + try { + config = (await import(configPath)).default; + } catch { + console.warn( + `No fresh.config.ts found or error in reading it at ${configPath}, using empty config.`, + ); + config = {}; + } + + await manifest(entry.path, config.router?.ignoreFilePattern); + console.log(`Manifest generated successfully in ${entry.path}\n`); + } catch (error) { + console.error(`Failed to process ${entry.path}:`, error); + console.log(); + } + } + } +} + +runGenerateInFixtures(); diff --git a/src/dev/mod.ts b/src/dev/mod.ts index 830a1e9b..68fc6a85 100644 --- a/src/dev/mod.ts +++ b/src/dev/mod.ts @@ -1,6 +1,6 @@ import { gte, join, relative, semverParse, walk, WalkEntry } from "./deps.ts"; export { generate, type Manifest } from "./manifest.ts"; -import type { Manifest } from "./manifest.ts"; +import { generate, type Manifest } from "./manifest.ts"; import { error } from "./error.ts"; const MIN_DENO_VERSION = "1.31.0"; const TEST_FILE_PATTERN = /[._]test\.(?:[tj]sx?|[mc][tj]s)$/; @@ -92,3 +92,8 @@ export async function collect( return { routes, islands }; } + +export async function manifest(path: string, ignoreFilePattern?: RegExp) { + const manifest = await collect(path, ignoreFilePattern); + await generate(path, manifest); +} diff --git a/tests/fixture_async_app/fresh.gen.ts b/tests/fixture_async_app/fresh.gen.ts index ecc15aba..e902f3b0 100644 --- a/tests/fixture_async_app/fresh.gen.ts +++ b/tests/fixture_async_app/fresh.gen.ts @@ -6,7 +6,7 @@ import * as $_app from "./routes/_app.tsx"; import * as $_layout from "./routes/_layout.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_base_path/fresh.gen.ts b/tests/fixture_base_path/fresh.gen.ts index 540efcfd..61226c6a 100644 --- a/tests/fixture_base_path/fresh.gen.ts +++ b/tests/fixture_base_path/fresh.gen.ts @@ -14,8 +14,8 @@ import * as $error_boundary from "./routes/error_boundary.tsx"; import * as $html from "./routes/html.tsx"; import * as $index from "./routes/index.tsx"; import * as $islands from "./routes/islands.tsx"; -import * as $$Counter from "./islands/Counter.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Counter from "./islands/Counter.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -33,7 +33,7 @@ const manifest = { "./routes/islands.tsx": $islands, }, islands: { - "./islands/Counter.tsx": $$Counter, + "./islands/Counter.tsx": $Counter, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_build_out_dir_sub/fresh.gen.ts b/tests/fixture_build_out_dir_sub/fresh.gen.ts new file mode 100644 index 00000000..45819fd0 --- /dev/null +++ b/tests/fixture_build_out_dir_sub/fresh.gen.ts @@ -0,0 +1,13 @@ +// DO NOT EDIT. This file is generated by Fresh. +// This file SHOULD be checked into source version control. +// This file is automatically updated during development when running `dev.ts`. + +import { type Manifest } from "$fresh/server.ts"; + +const manifest = { + routes: {}, + islands: {}, + baseUrl: import.meta.url, +} satisfies Manifest; + +export default manifest; diff --git a/tests/fixture_build_out_dir_sub2/fresh.gen.ts b/tests/fixture_build_out_dir_sub2/fresh.gen.ts new file mode 100644 index 00000000..45819fd0 --- /dev/null +++ b/tests/fixture_build_out_dir_sub2/fresh.gen.ts @@ -0,0 +1,13 @@ +// DO NOT EDIT. This file is generated by Fresh. +// This file SHOULD be checked into source version control. +// This file is automatically updated during development when running `dev.ts`. + +import { type Manifest } from "$fresh/server.ts"; + +const manifest = { + routes: {}, + islands: {}, + baseUrl: import.meta.url, +} satisfies Manifest; + +export default manifest; diff --git a/tests/fixture_build_static/fresh.gen.ts b/tests/fixture_build_static/fresh.gen.ts index 6999d64a..b5bfec72 100644 --- a/tests/fixture_build_static/fresh.gen.ts +++ b/tests/fixture_build_static/fresh.gen.ts @@ -4,7 +4,7 @@ import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_build_sub_dir/fresh.gen.ts b/tests/fixture_build_sub_dir/fresh.gen.ts new file mode 100644 index 00000000..45819fd0 --- /dev/null +++ b/tests/fixture_build_sub_dir/fresh.gen.ts @@ -0,0 +1,13 @@ +// DO NOT EDIT. This file is generated by Fresh. +// This file SHOULD be checked into source version control. +// This file is automatically updated during development when running `dev.ts`. + +import { type Manifest } from "$fresh/server.ts"; + +const manifest = { + routes: {}, + islands: {}, + baseUrl: import.meta.url, +} satisfies Manifest; + +export default manifest; diff --git a/tests/fixture_custom_500/fresh.gen.ts b/tests/fixture_custom_500/fresh.gen.ts index d5d91dc7..666a0cdb 100644 --- a/tests/fixture_custom_500/fresh.gen.ts +++ b/tests/fixture_custom_500/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $_500 from "./routes/_500.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_define_helpers/fresh.gen.ts b/tests/fixture_define_helpers/fresh.gen.ts index ecc15aba..e902f3b0 100644 --- a/tests/fixture_define_helpers/fresh.gen.ts +++ b/tests/fixture_define_helpers/fresh.gen.ts @@ -6,7 +6,7 @@ import * as $_app from "./routes/_app.tsx"; import * as $_layout from "./routes/_layout.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_dev_codeframe/fresh.gen.ts b/tests/fixture_dev_codeframe/fresh.gen.ts index d5d91dc7..666a0cdb 100644 --- a/tests/fixture_dev_codeframe/fresh.gen.ts +++ b/tests/fixture_dev_codeframe/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $_500 from "./routes/_500.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_dev_config/fresh.gen.ts b/tests/fixture_dev_config/fresh.gen.ts index 898f7917..a2421385 100644 --- a/tests/fixture_dev_config/fresh.gen.ts +++ b/tests/fixture_dev_config/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $codeframe from "./routes/codeframe.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_dev_legacy/fresh.gen.ts b/tests/fixture_dev_legacy/fresh.gen.ts index 898f7917..a2421385 100644 --- a/tests/fixture_dev_legacy/fresh.gen.ts +++ b/tests/fixture_dev_legacy/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $codeframe from "./routes/codeframe.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_error/fresh.gen.ts b/tests/fixture_error/fresh.gen.ts index 57bdb8fc..a30ad6b3 100644 --- a/tests/fixture_error/fresh.gen.ts +++ b/tests/fixture_error/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $_all_ from "./routes/[...all].ts"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_explicit_app/fresh.gen.ts b/tests/fixture_explicit_app/fresh.gen.ts index 4669c3d9..e8eb8e6c 100644 --- a/tests/fixture_explicit_app/fresh.gen.ts +++ b/tests/fixture_explicit_app/fresh.gen.ts @@ -7,7 +7,7 @@ import * as $head from "./routes/head.tsx"; import * as $index from "./routes/index.tsx"; import * as $title from "./routes/title.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_group_index/fresh.gen.ts b/tests/fixture_group_index/fresh.gen.ts index 7fbf7f8e..d2700fdd 100644 --- a/tests/fixture_group_index/fresh.gen.ts +++ b/tests/fixture_group_index/fresh.gen.ts @@ -4,7 +4,7 @@ import * as $_group_index from "./routes/(group)/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_hmr/fresh.gen.ts b/tests/fixture_hmr/fresh.gen.ts index 8740e7f8..c5634738 100644 --- a/tests/fixture_hmr/fresh.gen.ts +++ b/tests/fixture_hmr/fresh.gen.ts @@ -5,8 +5,8 @@ import * as $index from "./routes/index.tsx"; import * as $island from "./routes/island.tsx"; import * as $no_island from "./routes/no_island.tsx"; -import * as $$Counter from "./islands/Counter.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Counter from "./islands/Counter.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -15,7 +15,7 @@ const manifest = { "./routes/no_island.tsx": $no_island, }, islands: { - "./islands/Counter.tsx": $$Counter, + "./islands/Counter.tsx": $Counter, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_island_nesting/fresh.gen.ts b/tests/fixture_island_nesting/fresh.gen.ts index 332f1866..6eee68a0 100644 --- a/tests/fixture_island_nesting/fresh.gen.ts +++ b/tests/fixture_island_nesting/fresh.gen.ts @@ -20,19 +20,19 @@ import * as $island_nested_props from "./routes/island_nested_props.tsx"; import * as $island_order from "./routes/island_order.tsx"; import * as $island_siblings from "./routes/island_siblings.tsx"; import * as $island_valid_children from "./routes/island_valid_children.tsx"; -import * as $$BooleanButton from "./islands/BooleanButton.tsx"; -import * as $$Counter from "./islands/Counter.tsx"; -import * as $$Dropdown from "./islands/Dropdown.tsx"; -import * as $$FragmentIsland from "./islands/FragmentIsland.tsx"; -import * as $$Island from "./islands/Island.tsx"; -import * as $$IslandCenter from "./islands/IslandCenter.tsx"; -import * as $$IslandConditional from "./islands/IslandConditional.tsx"; -import * as $$IslandFn from "./islands/IslandFn.tsx"; -import * as $$IslandInsideIsland from "./islands/IslandInsideIsland.tsx"; -import * as $$IslandWithProps from "./islands/IslandWithProps.tsx"; -import * as $$PassThrough from "./islands/PassThrough.tsx"; -import * as $$ReadyMarker from "./islands/ReadyMarker.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $BooleanButton from "./islands/BooleanButton.tsx"; +import * as $Counter from "./islands/Counter.tsx"; +import * as $Dropdown from "./islands/Dropdown.tsx"; +import * as $FragmentIsland from "./islands/FragmentIsland.tsx"; +import * as $Island from "./islands/Island.tsx"; +import * as $IslandCenter from "./islands/IslandCenter.tsx"; +import * as $IslandConditional from "./islands/IslandConditional.tsx"; +import * as $IslandFn from "./islands/IslandFn.tsx"; +import * as $IslandInsideIsland from "./islands/IslandInsideIsland.tsx"; +import * as $IslandWithProps from "./islands/IslandWithProps.tsx"; +import * as $PassThrough from "./islands/PassThrough.tsx"; +import * as $ReadyMarker from "./islands/ReadyMarker.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -57,18 +57,18 @@ const manifest = { "./routes/island_valid_children.tsx": $island_valid_children, }, islands: { - "./islands/BooleanButton.tsx": $$BooleanButton, - "./islands/Counter.tsx": $$Counter, - "./islands/Dropdown.tsx": $$Dropdown, - "./islands/FragmentIsland.tsx": $$FragmentIsland, - "./islands/Island.tsx": $$Island, - "./islands/IslandCenter.tsx": $$IslandCenter, - "./islands/IslandConditional.tsx": $$IslandConditional, - "./islands/IslandFn.tsx": $$IslandFn, - "./islands/IslandInsideIsland.tsx": $$IslandInsideIsland, - "./islands/IslandWithProps.tsx": $$IslandWithProps, - "./islands/PassThrough.tsx": $$PassThrough, - "./islands/ReadyMarker.tsx": $$ReadyMarker, + "./islands/BooleanButton.tsx": $BooleanButton, + "./islands/Counter.tsx": $Counter, + "./islands/Dropdown.tsx": $Dropdown, + "./islands/FragmentIsland.tsx": $FragmentIsland, + "./islands/Island.tsx": $Island, + "./islands/IslandCenter.tsx": $IslandCenter, + "./islands/IslandConditional.tsx": $IslandConditional, + "./islands/IslandFn.tsx": $IslandFn, + "./islands/IslandInsideIsland.tsx": $IslandInsideIsland, + "./islands/IslandWithProps.tsx": $IslandWithProps, + "./islands/PassThrough.tsx": $PassThrough, + "./islands/ReadyMarker.tsx": $ReadyMarker, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_islands_multiple/islands/Multiple.tsx b/tests/fixture_islands_multiple/islands/Multiple.tsx index f5fa3a28..495e7572 100644 --- a/tests/fixture_islands_multiple/islands/Multiple.tsx +++ b/tests/fixture_islands_multiple/islands/Multiple.tsx @@ -1,5 +1,7 @@ import { useSignal } from "@preact/signals"; +export const thisShouldNotCauseProblems = 42; + export function Multiple1() { const sig = useSignal(0); return ( diff --git a/tests/fixture_jsx_pragma/fresh.gen.ts b/tests/fixture_jsx_pragma/fresh.gen.ts index 01c9ea7c..da62588d 100644 --- a/tests/fixture_jsx_pragma/fresh.gen.ts +++ b/tests/fixture_jsx_pragma/fresh.gen.ts @@ -3,15 +3,15 @@ // This file is automatically updated during development when running `dev.ts`. import * as $index from "./routes/index.tsx"; -import * as $$Island from "./islands/Island.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Island from "./islands/Island.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { "./routes/index.tsx": $index, }, islands: { - "./islands/Island.tsx": $$Island, + "./islands/Island.tsx": $Island, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_jsx_precompile/fresh.gen.ts b/tests/fixture_jsx_precompile/fresh.gen.ts index 36a43aa8..a248647d 100644 --- a/tests/fixture_jsx_precompile/fresh.gen.ts +++ b/tests/fixture_jsx_precompile/fresh.gen.ts @@ -4,8 +4,8 @@ import * as $head from "./routes/head.tsx"; import * as $index from "./routes/index.tsx"; -import * as $$Island from "./islands/Island.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Island from "./islands/Island.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -13,7 +13,7 @@ const manifest = { "./routes/index.tsx": $index, }, islands: { - "./islands/Island.tsx": $$Island, + "./islands/Island.tsx": $Island, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_layouts/fresh.gen.ts b/tests/fixture_layouts/fresh.gen.ts index cc6144f4..6d8f81dd 100644 --- a/tests/fixture_layouts/fresh.gen.ts +++ b/tests/fixture_layouts/fresh.gen.ts @@ -34,8 +34,8 @@ import * as $override_no_layout from "./routes/override/no_layout.tsx"; import * as $override_no_layout_no_app from "./routes/override/no_layout_no_app.tsx"; import * as $skip_sub_layout from "./routes/skip/sub/_layout.tsx"; import * as $skip_sub_index from "./routes/skip/sub/index.tsx"; -import * as $$dynamic_tenant_islands_Counter from "./routes/dynamic/[tenant]/(_islands)/Counter.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $dynamic_tenant_islands_Counter from "./routes/dynamic/[tenant]/(_islands)/Counter.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -75,7 +75,7 @@ const manifest = { }, islands: { "./routes/dynamic/[tenant]/(_islands)/Counter.tsx": - $$dynamic_tenant_islands_Counter, + $dynamic_tenant_islands_Counter, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_layouts_2/fresh.gen.ts b/tests/fixture_layouts_2/fresh.gen.ts index ecc15aba..e902f3b0 100644 --- a/tests/fixture_layouts_2/fresh.gen.ts +++ b/tests/fixture_layouts_2/fresh.gen.ts @@ -6,7 +6,7 @@ import * as $_app from "./routes/_app.tsx"; import * as $_layout from "./routes/_layout.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_npm/fresh.gen.ts b/tests/fixture_npm/fresh.gen.ts index 9965d958..2f8ca9f7 100644 --- a/tests/fixture_npm/fresh.gen.ts +++ b/tests/fixture_npm/fresh.gen.ts @@ -3,15 +3,15 @@ // This file is automatically updated during development when running `dev.ts`. import * as $index from "./routes/index.tsx"; -import * as $$Test from "./islands/Test.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Test from "./islands/Test.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { "./routes/index.tsx": $index, }, islands: { - "./islands/Test.tsx": $$Test, + "./islands/Test.tsx": $Test, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_plugin/fresh.gen.ts b/tests/fixture_plugin/fresh.gen.ts index 57fc65c4..a4bc1b4e 100644 --- a/tests/fixture_plugin/fresh.gen.ts +++ b/tests/fixture_plugin/fresh.gen.ts @@ -6,8 +6,8 @@ import * as $lots_of_middleware_index from "./routes/lots-of-middleware/index.ts import * as $static from "./routes/static.tsx"; import * as $test from "./routes/test.tsx"; import * as $with_island from "./routes/with-island.tsx"; -import * as $$Island from "./islands/Island.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Island from "./islands/Island.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -17,7 +17,7 @@ const manifest = { "./routes/with-island.tsx": $with_island, }, islands: { - "./islands/Island.tsx": $$Island, + "./islands/Island.tsx": $Island, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_plugin_error/fresh.gen.ts b/tests/fixture_plugin_error/fresh.gen.ts index 01c9ea7c..da62588d 100644 --- a/tests/fixture_plugin_error/fresh.gen.ts +++ b/tests/fixture_plugin_error/fresh.gen.ts @@ -3,15 +3,15 @@ // This file is automatically updated during development when running `dev.ts`. import * as $index from "./routes/index.tsx"; -import * as $$Island from "./islands/Island.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $Island from "./islands/Island.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { "./routes/index.tsx": $index, }, islands: { - "./islands/Island.tsx": $$Island, + "./islands/Island.tsx": $Island, }, baseUrl: import.meta.url, } satisfies Manifest; diff --git a/tests/fixture_plugin_html/fresh.gen.ts b/tests/fixture_plugin_html/fresh.gen.ts index 800cc24a..b5bfec72 100644 --- a/tests/fixture_plugin_html/fresh.gen.ts +++ b/tests/fixture_plugin_html/fresh.gen.ts @@ -2,13 +2,13 @@ // This file SHOULD be checked into source version control. // This file is automatically updated during development when running `dev.ts`. -import * as $0 from "./routes/index.tsx"; +import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { - "./routes/index.tsx": $0, + "./routes/index.tsx": $index, }, islands: {}, baseUrl: import.meta.url, diff --git a/tests/fixture_plugin_middleware/fresh.gen.ts b/tests/fixture_plugin_middleware/fresh.gen.ts index 2cbaa823..a1be306e 100644 --- a/tests/fixture_plugin_middleware/fresh.gen.ts +++ b/tests/fixture_plugin_middleware/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $_middleware from "./routes/_middleware.ts"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_plugin_resolved_dev/fresh.gen.ts b/tests/fixture_plugin_resolved_dev/fresh.gen.ts index 6999d64a..b5bfec72 100644 --- a/tests/fixture_plugin_resolved_dev/fresh.gen.ts +++ b/tests/fixture_plugin_resolved_dev/fresh.gen.ts @@ -4,7 +4,7 @@ import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_render/fresh.gen.ts b/tests/fixture_render/fresh.gen.ts index 2c4826d5..d21d8729 100644 --- a/tests/fixture_render/fresh.gen.ts +++ b/tests/fixture_render/fresh.gen.ts @@ -8,7 +8,7 @@ import * as $header_instance from "./routes/header_instance.tsx"; import * as $header_obj from "./routes/header_obj.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_render_error/fresh.gen.ts b/tests/fixture_render_error/fresh.gen.ts index 6999d64a..b5bfec72 100644 --- a/tests/fixture_render_error/fresh.gen.ts +++ b/tests/fixture_render_error/fresh.gen.ts @@ -4,7 +4,7 @@ import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_router/fresh.gen.ts b/tests/fixture_router/fresh.gen.ts index 12b458b9..bba8dabe 100644 --- a/tests/fixture_router/fresh.gen.ts +++ b/tests/fixture_router/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $about from "./routes/about.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_router_ignore_files/fresh.gen.ts b/tests/fixture_router_ignore_files/fresh.gen.ts index 6999d64a..b5bfec72 100644 --- a/tests/fixture_router_ignore_files/fresh.gen.ts +++ b/tests/fixture_router_ignore_files/fresh.gen.ts @@ -4,7 +4,7 @@ import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_tailwind/fresh.gen.ts b/tests/fixture_tailwind/fresh.gen.ts index eff1b80e..e6643ad2 100644 --- a/tests/fixture_tailwind/fresh.gen.ts +++ b/tests/fixture_tailwind/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $_app from "./routes/_app.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_tailwind_config/fresh.gen.ts b/tests/fixture_tailwind_config/fresh.gen.ts index eff1b80e..e6643ad2 100644 --- a/tests/fixture_tailwind_config/fresh.gen.ts +++ b/tests/fixture_tailwind_config/fresh.gen.ts @@ -5,7 +5,7 @@ import * as $_app from "./routes/_app.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_twind_app/fresh.gen.ts b/tests/fixture_twind_app/fresh.gen.ts index 44b43efa..0eba3d64 100644 --- a/tests/fixture_twind_app/fresh.gen.ts +++ b/tests/fixture_twind_app/fresh.gen.ts @@ -6,7 +6,7 @@ import * as $_app from "./routes/_app.tsx"; import * as $app_class from "./routes/app_class.tsx"; import * as $index from "./routes/index.tsx"; -import { Manifest } from "$fresh/server.ts"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { diff --git a/tests/fixture_twind_hydrate/fresh.gen.ts b/tests/fixture_twind_hydrate/fresh.gen.ts index 1d3c2858..dd4952a9 100644 --- a/tests/fixture_twind_hydrate/fresh.gen.ts +++ b/tests/fixture_twind_hydrate/fresh.gen.ts @@ -10,9 +10,9 @@ import * as $island_twind_index from "./routes/island_twind/index.tsx"; import * as $static from "./routes/static.tsx"; import * as $unused from "./routes/unused.tsx"; import * as $unused_tw from "./routes/unused_tw.tsx"; -import * as $$CheckDuplication from "./islands/CheckDuplication.tsx"; -import * as $$InsertCssrules from "./islands/InsertCssrules.tsx"; -import { Manifest } from "$fresh/server.ts"; +import * as $CheckDuplication from "./islands/CheckDuplication.tsx"; +import * as $InsertCssrules from "./islands/InsertCssrules.tsx"; +import { type Manifest } from "$fresh/server.ts"; const manifest = { routes: { @@ -26,8 +26,8 @@ const manifest = { "./routes/unused_tw.tsx": $unused_tw, }, islands: { - "./islands/CheckDuplication.tsx": $$CheckDuplication, - "./islands/InsertCssrules.tsx": $$InsertCssrules, + "./islands/CheckDuplication.tsx": $CheckDuplication, + "./islands/InsertCssrules.tsx": $InsertCssrules, }, baseUrl: import.meta.url, } satisfies Manifest;