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": {
".": "./src/mod.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",
"./compat": "./src/compat.ts",
"./internal": "./src/internals.ts",
+1 -1
View File
@@ -297,7 +297,7 @@ export class Builder<State = any> {
const runtimePath = dev
? "../runtime/client/dev.ts"
: "../runtime/client/mod.tsx";
: "../runtime/client/mod.ts";
const entryPoints: Record<string, string> = {
"fresh-runtime": new URL(runtimePath, import.meta.url).href,
+1 -1
View File
@@ -1,7 +1,7 @@
import { globToRegExp, isGlob } from "@std/path";
import type { FsAdapter } from "../fs.ts";
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";
+1 -1
View File
@@ -1,5 +1,5 @@
import "preact/debug";
export * from "./mod.tsx";
export * from "./mod.ts";
import { IS_BROWSER } from "../shared.ts";
let ws: WebSocket;
@@ -6,7 +6,7 @@ import {
matchesUrl,
PartialMode,
UrlMatchKind,
} from "../shared_internal.tsx";
} from "../shared_internal.ts";
import {
ACTIVE_PARTIALS,
copyOldChildren,
@@ -4,7 +4,7 @@ import {
CLIENT_NAV_ATTR,
type InternalPreactOptions,
OptionsType,
} from "../shared_internal.tsx";
} from "../shared_internal.ts";
import { BUILD_ID } from "@fresh/build-id";
import { renderToString } from "preact-render-to-string";
import { useEffect } from "preact/hooks";
+1 -1
View File
@@ -9,7 +9,7 @@ import {
} from "preact";
import { type CustomParser, parse } from "../../jsonify/parse.ts";
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 {
Island,
@@ -22,7 +22,7 @@ import {
OptionsType,
PartialMode,
setActiveUrl,
} from "../shared_internal.tsx";
} from "../shared_internal.ts";
import type { BuildCache } from "../../build_cache.ts";
import { BUILD_ID } from "@fresh/build-id";
import {
+1 -1
View File
@@ -1,6 +1,6 @@
import type { ComponentChildren, VNode } from "preact";
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.