Skip to content

Commit 1e08fd8

Browse files
SeanCassiereautofix-ci[bot]harry-whorlow
authored
devtools move production exports to dedicated subdirectory (#1989)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Harry Whorlow <79278353+harry-whorlow@users.noreply.github.com>
1 parent f1c23d0 commit 1e08fd8

File tree

7 files changed

+50
-5
lines changed

7 files changed

+50
-5
lines changed

.changeset/green-tips-do.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@tanstack/react-form-devtools': patch
3+
'@tanstack/solid-form-devtools': patch
4+
---
5+
6+
use explicit paths for the devtools production exports
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

3-
export { FormDevtoolsPanel } from './FormDevtools'
3+
export { FormDevtoolsPanel } from './production/FormDevtools'
44

5-
export type { FormDevtoolsReactInit } from './FormDevtools'
5+
export type { FormDevtoolsReactInit } from './production/FormDevtools'
66

7-
export { formDevtoolsPlugin } from './plugin'
7+
export { formDevtoolsPlugin } from './production/plugin'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { createReactPanel } from '@tanstack/devtools-utils/react'
2+
import { FormDevtoolsCore } from '@tanstack/form-devtools/production'
3+
4+
// type
5+
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/react'
6+
7+
export interface FormDevtoolsReactInit extends DevtoolsPanelProps {}
8+
9+
const [FormDevtoolsPanel] = createReactPanel(FormDevtoolsCore)
10+
11+
export { FormDevtoolsPanel }
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { createReactPlugin } from '@tanstack/devtools-utils/react'
2+
import { FormDevtoolsPanel } from './FormDevtools'
3+
4+
const [formDevtoolsPlugin] = createReactPlugin({
5+
name: 'TanStack Form',
6+
Component: FormDevtoolsPanel,
7+
})
8+
9+
export { formDevtoolsPlugin }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { FormDevtoolsPanel } from './FormDevtools'
22

3-
export type { FormDevtoolsSolidInit } from './FormDevtools'
3+
export type { FormDevtoolsSolidInit } from './production/FormDevtools'
44

5-
export { formDevtoolsPlugin } from './plugin'
5+
export { formDevtoolsPlugin } from './production/plugin'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { createSolidPanel } from '@tanstack/devtools-utils/solid'
2+
import { FormDevtoolsCore } from '@tanstack/form-devtools/production'
3+
4+
import type { DevtoolsPanelProps } from '@tanstack/devtools-utils/solid'
5+
6+
const [FormDevtoolsPanel] = createSolidPanel(FormDevtoolsCore)
7+
8+
export interface FormDevtoolsSolidInit extends DevtoolsPanelProps {}
9+
10+
export { FormDevtoolsPanel }
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { createSolidPlugin } from '@tanstack/devtools-utils/solid'
2+
import { FormDevtoolsPanel } from './FormDevtools'
3+
4+
const [formDevtoolsPlugin] = createSolidPlugin({
5+
name: 'TanStack Form',
6+
Component: FormDevtoolsPanel,
7+
})
8+
9+
export { formDevtoolsPlugin }

0 commit comments

Comments
 (0)