Skip to content

Commit

Permalink
chore: Fix windows pathing issues (TanStack#563)
Browse files Browse the repository at this point in the history
* chore: fix prettier run on windows

* chore: support older TSC usage on Windows
  • Loading branch information
crutchcorn authored Jan 9, 2024
1 parent f91519a commit 796c7fb
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"build:all": "nx run-many --target=build --exclude=examples/**",
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
"dev": "pnpm run watch",
"prettier": "prettier --ignore-unknown '**/*'",
"prettier": "prettier --ignore-unknown .",
"prettier:write": "pnpm run prettier --write",
"cipublish": "node scripts/publish.js",
"cipublishforce": "CI=true pnpm cipublish"
Expand Down
6 changes: 3 additions & 3 deletions packages/form-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion packages/form-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function deleteBy(obj: any, _path: any) {
const path = makePathArray(_path)

function doDelete(parent: any): any {
if (!parent) return;
if (!parent) return
if (path.length === 1) {
const finalPath = path[0]!
const { [finalPath]: remove, ...rest } = parent
Expand Down
6 changes: 3 additions & 3 deletions packages/react-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
Expand Down
6 changes: 3 additions & 3 deletions packages/solid-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
Expand Down
6 changes: 3 additions & 3 deletions packages/valibot-form-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
Expand Down
6 changes: 3 additions & 3 deletions packages/vue-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"fixme:test:lib": "pnpm run test:2 && pnpm run test:2.7 && pnpm run test:3",
Expand Down
6 changes: 3 additions & 3 deletions packages/yup-form-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
Expand Down
6 changes: 3 additions & 3 deletions packages/zod-form-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"scripts": {
"clean": "rimraf ./dist && rimraf ./coverage",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
"test:types:versions52": "tsc",
"test:types": "pnpm run \"/^test:types:versions.*/\"",
"test:lib": "vitest",
Expand Down
10 changes: 0 additions & 10 deletions prettier.config.js

This file was deleted.

0 comments on commit 796c7fb

Please sign in to comment.