Skip to content

Commit

Permalink
chore: Workspace fixes (#533)
Browse files Browse the repository at this point in the history
* Add prefer-workspace-packages

* Remove unnecessary Nx config and packages

* Remove unnecessary TS paths/references

* Remove jest/babel files

* Remove babel/rollup deps

* Fix solid-form vitest config

* Remove composite setting

* Merge tsconfig.json and tsconfig.eslint.json

* Add composite back to solid examples

* Remove tsup patch

* Update tsup

* Add @types/eslint

* Tweak Nx named inputs

* Remove unused field variable

* Remove code messing with example dependencies
  • Loading branch information
lachlancollins authored Dec 28, 2023
1 parent 8aad135 commit 250a7fe
Show file tree
Hide file tree
Showing 51 changed files with 611 additions and 1,352 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prefer-workspace-packages=true
49 changes: 0 additions & 49 deletions babel.config.cjs

This file was deleted.

21 changes: 1 addition & 20 deletions examples/react/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
"dependencies": {
"@tanstack/react-form": "0.11.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/form-core": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"react-dom": "^18.0.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.4",
Expand All @@ -34,18 +28,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/react-form"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
23 changes: 2 additions & 21 deletions examples/react/valibot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
},
"dependencies": {
"@tanstack/react-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"valibot": "^0.20.1",
"@tanstack/valibot-form-adapter": "0.11.0",
"@tanstack/form-core": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/solid-form": "0.11.0"
"valibot": "^0.20.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.4",
Expand All @@ -35,19 +30,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/react-form",
"@tanstack/zod-form-adapter"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
23 changes: 2 additions & 21 deletions examples/react/yup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
},
"dependencies": {
"@tanstack/react-form": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"yup": "^1.3.2",
"@tanstack/form-core": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"yup": "^1.3.2"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.4",
Expand All @@ -35,19 +30,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/react-form",
"@tanstack/yup-form-adapter"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
23 changes: 2 additions & 21 deletions examples/react/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
},
"dependencies": {
"@tanstack/react-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"zod": "^3.21.4",
"@tanstack/form-core": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"zod": "^3.21.4"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.4",
Expand All @@ -35,19 +30,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/react-form",
"@tanstack/zod-form-adapter"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
21 changes: 1 addition & 20 deletions examples/solid/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,12 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/form-core": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"solid-js": "^1.7.8",
"@tanstack/react-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"solid-js": "^1.7.8"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-solid": "^2.7.0"
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/solid-form"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
21 changes: 1 addition & 20 deletions examples/solid/valibot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/form-core": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0",
"solid-js": "^1.7.8",
"valibot": "^0.20.1",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/react-form": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0"
"valibot": "^0.20.1"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-solid": "^2.7.0"
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/solid-form",
"@tanstack/zod-form-adapter"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
21 changes: 1 addition & 20 deletions examples/solid/yup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/form-core": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"solid-js": "^1.7.8",
"yup": "^1.3.2",
"@tanstack/react-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"yup": "^1.3.2"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-solid": "^2.7.0"
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/solid-form",
"@tanstack/yup-form-adapter"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
21 changes: 1 addition & 20 deletions examples/solid/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/form-core": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"solid-js": "^1.7.8",
"zod": "^3.21.4",
"@tanstack/react-form": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"zod": "^3.21.4"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-solid": "^2.7.0"
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/solid-form",
"@tanstack/zod-form-adapter"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
21 changes: 1 addition & 20 deletions examples/vue/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,13 @@
"serve": "vite preview"
},
"dependencies": {
"@tanstack/form-core": "0.11.0",
"@tanstack/vue-form": "0.11.0",
"vue": "^3.3.4",
"@tanstack/react-form": "0.11.0",
"@tanstack/zod-form-adapter": "0.11.0",
"@tanstack/yup-form-adapter": "0.11.0",
"@tanstack/solid-form": "0.11.0",
"@tanstack/valibot-form-adapter": "0.11.0"
"vue": "^3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.3.4",
"typescript": "^5.0.4",
"vite": "^4.4.9",
"vue-tsc": "^1.8.10"
},
"nx": {
"implicitDependencies": [
"@tanstack/form-core",
"@tanstack/vue-form"
],
"targets": {
"test:types": {
"dependsOn": [
"build"
]
}
}
}
}
Loading

0 comments on commit 250a7fe

Please sign in to comment.