mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
fix: rename index.tsx in React project templates to index.ts (#23469)
This commit is contained in:
@@ -1103,7 +1103,7 @@ const Template = enum {
|
||||
.{ .path = "bun-env.d.ts", .contents = @embedFile("../init/react-app/bun-env.d.ts") },
|
||||
.{ .path = "README.md", .contents = InitCommand.Assets.@"README2.md" },
|
||||
.{ .path = ".gitignore", .contents = InitCommand.Assets.@".gitignore", .can_skip_if_exists = true },
|
||||
.{ .path = "src/index.tsx", .contents = @embedFile("../init/react-app/src/index.tsx") },
|
||||
.{ .path = "src/index.ts", .contents = @embedFile("../init/react-app/src/index.ts") },
|
||||
.{ .path = "src/App.tsx", .contents = @embedFile("../init/react-app/src/App.tsx") },
|
||||
.{ .path = "src/index.html", .contents = @embedFile("../init/react-app/src/index.html") },
|
||||
.{ .path = "src/index.css", .contents = @embedFile("../init/react-app/src/index.css") },
|
||||
@@ -1122,7 +1122,7 @@ const Template = enum {
|
||||
.{ .path = "bun-env.d.ts", .contents = @embedFile("../init/react-tailwind/bun-env.d.ts") },
|
||||
.{ .path = "README.md", .contents = InitCommand.Assets.@"README2.md" },
|
||||
.{ .path = ".gitignore", .contents = InitCommand.Assets.@".gitignore", .can_skip_if_exists = true },
|
||||
.{ .path = "src/index.tsx", .contents = @embedFile("../init/react-tailwind/src/index.tsx") },
|
||||
.{ .path = "src/index.ts", .contents = @embedFile("../init/react-tailwind/src/index.ts") },
|
||||
.{ .path = "src/App.tsx", .contents = @embedFile("../init/react-tailwind/src/App.tsx") },
|
||||
.{ .path = "src/index.html", .contents = @embedFile("../init/react-tailwind/src/index.html") },
|
||||
.{ .path = "src/index.css", .contents = @embedFile("../init/react-tailwind/src/index.css") },
|
||||
@@ -1144,7 +1144,7 @@ const Template = enum {
|
||||
.{ .path = "bun-env.d.ts", .contents = @embedFile("../init/react-shadcn/bun-env.d.ts") },
|
||||
.{ .path = "README.md", .contents = InitCommand.Assets.@"README2.md" },
|
||||
.{ .path = ".gitignore", .contents = InitCommand.Assets.@".gitignore", .can_skip_if_exists = true },
|
||||
.{ .path = "src/index.tsx", .contents = @embedFile("../init/react-shadcn/src/index.tsx") },
|
||||
.{ .path = "src/index.ts", .contents = @embedFile("../init/react-shadcn/src/index.ts") },
|
||||
.{ .path = "src/App.tsx", .contents = @embedFile("../init/react-shadcn/src/App.tsx") },
|
||||
.{ .path = "src/index.html", .contents = @embedFile("../init/react-shadcn/src/index.html") },
|
||||
.{ .path = "src/index.css", .contents = @embedFile("../init/react-shadcn/src/index.css") },
|
||||
|
||||
Reference in New Issue
Block a user