chore: rename non-jsx files .tsx -> .ts (#3285)

This commit is contained in:
Marvin Hagemeister
2025-09-01 08:03:04 +02:00
committed by GitHub
parent 33cb164b7d
commit 5d7a4c8e07
11 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"exports": { "exports": {
".": "./src/mod.ts", ".": "./src/mod.ts",
"./runtime": "./src/runtime/shared.ts", "./runtime": "./src/runtime/shared.ts",
"./runtime-client": "./src/runtime/client/mod.tsx", "./runtime-client": "./src/runtime/client/mod.ts",
"./dev": "./src/dev/mod.ts", "./dev": "./src/dev/mod.ts",
"./compat": "./src/compat.ts", "./compat": "./src/compat.ts",
"./internal": "./src/internals.ts", "./internal": "./src/internals.ts",
+1 -1
View File
@@ -297,7 +297,7 @@ export class Builder<State = any> {
const runtimePath = dev const runtimePath = dev
? "../runtime/client/dev.ts" ? "../runtime/client/dev.ts"
: "../runtime/client/mod.tsx"; : "../runtime/client/mod.ts";
const entryPoints: Record<string, string> = { const entryPoints: Record<string, string> = {
"fresh-runtime": new URL(runtimePath, import.meta.url).href, "fresh-runtime": new URL(runtimePath, import.meta.url).href,
+1 -1
View File
@@ -1,7 +1,7 @@
import { globToRegExp, isGlob } from "@std/path"; import { globToRegExp, isGlob } from "@std/path";
import type { FsAdapter } from "../fs.ts"; import type { FsAdapter } from "../fs.ts";
import { BUILD_ID } from "@fresh/build-id"; import { BUILD_ID } from "@fresh/build-id";
import { assetInternal } from "../runtime/shared_internal.tsx"; import { assetInternal } from "../runtime/shared_internal.ts";
export type TransformMode = "development" | "production"; export type TransformMode = "development" | "production";
+1 -1
View File
@@ -1,5 +1,5 @@
import "preact/debug"; import "preact/debug";
export * from "./mod.tsx"; export * from "./mod.ts";
import { IS_BROWSER } from "../shared.ts"; import { IS_BROWSER } from "../shared.ts";
let ws: WebSocket; let ws: WebSocket;
@@ -6,7 +6,7 @@ import {
matchesUrl, matchesUrl,
PartialMode, PartialMode,
UrlMatchKind, UrlMatchKind,
} from "../shared_internal.tsx"; } from "../shared_internal.ts";
import { import {
ACTIVE_PARTIALS, ACTIVE_PARTIALS,
copyOldChildren, copyOldChildren,
@@ -4,7 +4,7 @@ import {
CLIENT_NAV_ATTR, CLIENT_NAV_ATTR,
type InternalPreactOptions, type InternalPreactOptions,
OptionsType, OptionsType,
} from "../shared_internal.tsx"; } from "../shared_internal.ts";
import { BUILD_ID } from "@fresh/build-id"; import { BUILD_ID } from "@fresh/build-id";
import { renderToString } from "preact-render-to-string"; import { renderToString } from "preact-render-to-string";
import { useEffect } from "preact/hooks"; import { useEffect } from "preact/hooks";
+1 -1
View File
@@ -9,7 +9,7 @@ import {
} from "preact"; } from "preact";
import { type CustomParser, parse } from "../../jsonify/parse.ts"; import { type CustomParser, parse } from "../../jsonify/parse.ts";
import { computed, signal } from "@preact/signals"; import { computed, signal } from "@preact/signals";
import { DATA_FRESH_KEY, PartialMode } from "../shared_internal.tsx"; import { DATA_FRESH_KEY, PartialMode } from "../shared_internal.ts";
const enum RootKind { const enum RootKind {
Island, Island,
@@ -22,7 +22,7 @@ import {
OptionsType, OptionsType,
PartialMode, PartialMode,
setActiveUrl, setActiveUrl,
} from "../shared_internal.tsx"; } from "../shared_internal.ts";
import type { BuildCache } from "../../build_cache.ts"; import type { BuildCache } from "../../build_cache.ts";
import { BUILD_ID } from "@fresh/build-id"; import { BUILD_ID } from "@fresh/build-id";
import { import {
+1 -1
View File
@@ -1,6 +1,6 @@
import type { ComponentChildren, VNode } from "preact"; import type { ComponentChildren, VNode } from "preact";
import { BUILD_ID } from "@fresh/build-id"; import { BUILD_ID } from "@fresh/build-id";
import { assetInternal, assetSrcSetInternal } from "./shared_internal.tsx"; import { assetInternal, assetSrcSetInternal } from "./shared_internal.ts";
/** /**
* Returns true when the current runtime is the browser and false otherwise. This is used for guard runtime-dependent code. * Returns true when the current runtime is the browser and false otherwise. This is used for guard runtime-dependent code.