Skip to content

Commit b67882c

Browse files
jhb-devpaulpopus
andauthored
refactor(plugin-seo): rename non-JSX files from .tsx to .ts (#14418)
### What? Renamed three non-JSX source files in `@payloadcms/plugin-seo` from `.tsx` to `.ts` extension and updated `package.json` accordingly. ### Why? These files don't contain any JSX syntax, they only export TypeScript functions and type definitions. Using the `.tsx` extension was incorrect and inconsistent with all other Payload plugins, which use `.ts` for their main entry points. ### How? - Simple file renames with zero code changes - Updated package.json exports to reference `./src/index.ts` instead of `./src/index.tsx` Co-authored-by: Paul Popus <paul@payloadcms.com>
1 parent ebbd6ad commit b67882c

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/plugin-seo/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"type": "module",
3333
"exports": {
3434
".": {
35-
"import": "./src/index.tsx",
36-
"types": "./src/index.tsx",
37-
"default": "./src/index.tsx"
35+
"import": "./src/index.ts",
36+
"types": "./src/index.ts",
37+
"default": "./src/index.ts"
3838
},
3939
"./types": {
4040
"import": "./src/exports/types.ts",
@@ -52,8 +52,8 @@
5252
"default": "./src/exports/client.ts"
5353
}
5454
},
55-
"main": "./src/index.tsx",
56-
"types": "./src/index.tsx",
55+
"main": "./src/index.ts",
56+
"types": "./src/index.ts",
5757
"files": [
5858
"dist"
5959
],
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)