Skip to content

Commit 796c7fb

Browse files
authored
chore: Fix windows pathing issues (#563)
* chore: fix prettier run on windows * chore: support older TSC usage on Windows
1 parent f91519a commit 796c7fb

File tree

11 files changed

+28
-33
lines changed

11 files changed

+28
-33
lines changed

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build:all": "nx run-many --target=build --exclude=examples/**",
2222
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
2323
"dev": "pnpm run watch",
24-
"prettier": "prettier --ignore-unknown '**/*'",
24+
"prettier": "prettier --ignore-unknown .",
2525
"prettier:write": "pnpm run prettier --write",
2626
"cipublish": "node scripts/publish.js",
2727
"cipublishforce": "CI=true pnpm cipublish"

packages/form-core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"scripts": {
3636
"clean": "rimraf ./dist && rimraf ./coverage",
3737
"test:eslint": "eslint --ext .ts,.tsx ./src",
38-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
39-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
40-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
38+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
39+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
40+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
4141
"test:types:versions52": "tsc",
4242
"test:types": "pnpm run \"/^test:types:versions.*/\"",
4343
"test:lib": "vitest",

packages/form-core/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function deleteBy(obj: any, _path: any) {
7676
const path = makePathArray(_path)
7777

7878
function doDelete(parent: any): any {
79-
if (!parent) return;
79+
if (!parent) return
8080
if (path.length === 1) {
8181
const finalPath = path[0]!
8282
const { [finalPath]: remove, ...rest } = parent

packages/react-form/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"scripts": {
1515
"clean": "rimraf ./dist && rimraf ./coverage",
1616
"test:eslint": "eslint --ext .ts,.tsx ./src",
17-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
18-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
19-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
17+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
18+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
19+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
2020
"test:types:versions52": "tsc",
2121
"test:types": "pnpm run \"/^test:types:versions.*/\"",
2222
"test:lib": "vitest",

packages/solid-form/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"scripts": {
1515
"clean": "rimraf ./dist && rimraf ./coverage",
1616
"test:eslint": "eslint --ext .ts,.tsx ./src",
17-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
18-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
19-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
17+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
18+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
19+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
2020
"test:types:versions52": "tsc",
2121
"test:types": "pnpm run \"/^test:types:versions.*/\"",
2222
"test:lib": "vitest",

packages/valibot-form-adapter/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"scripts": {
3636
"clean": "rimraf ./dist && rimraf ./coverage",
3737
"test:eslint": "eslint --ext .ts,.tsx ./src",
38-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
39-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
40-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
38+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
39+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
40+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
4141
"test:types:versions52": "tsc",
4242
"test:types": "pnpm run \"/^test:types:versions.*/\"",
4343
"test:lib": "vitest",

packages/vue-form/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"scripts": {
3232
"clean": "rimraf ./dist && rimraf ./coverage",
3333
"test:eslint": "eslint --ext .ts,.tsx ./src",
34-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
35-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
36-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
34+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
35+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
36+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
3737
"test:types:versions52": "tsc",
3838
"test:types": "pnpm run \"/^test:types:versions.*/\"",
3939
"fixme:test:lib": "pnpm run test:2 && pnpm run test:2.7 && pnpm run test:3",

packages/yup-form-adapter/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"scripts": {
3636
"clean": "rimraf ./dist && rimraf ./coverage",
3737
"test:eslint": "eslint --ext .ts,.tsx ./src",
38-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
39-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
40-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
38+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
39+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
40+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
4141
"test:types:versions52": "tsc",
4242
"test:types": "pnpm run \"/^test:types:versions.*/\"",
4343
"test:lib": "vitest",

packages/zod-form-adapter/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"scripts": {
3636
"clean": "rimraf ./dist && rimraf ./coverage",
3737
"test:eslint": "eslint --ext .ts,.tsx ./src",
38-
"test:types:versions49": "../../node_modules/typescript49/bin/tsc --project tsconfig.legacy.json",
39-
"test:types:versions50": "../../node_modules/typescript50/bin/tsc",
40-
"test:types:versions51": "../../node_modules/typescript51/bin/tsc",
38+
"test:types:versions49": "node ../../node_modules/typescript49/lib/tsc.js --project tsconfig.legacy.json",
39+
"test:types:versions50": "node ../../node_modules/typescript50/lib/tsc.js",
40+
"test:types:versions51": "node ../../node_modules/typescript51/lib/tsc.js",
4141
"test:types:versions52": "tsc",
4242
"test:types": "pnpm run \"/^test:types:versions.*/\"",
4343
"test:lib": "vitest",

prettier.config.js

-10
This file was deleted.

0 commit comments

Comments
 (0)