Skip to content

Commit b818515

Browse files
committed
Merge remote-tracking branch 'origin/master' into mf/nx-cleanup
2 parents e488e90 + c8f24e0 commit b818515

File tree

233 files changed

+14798
-54940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+14798
-54940
lines changed

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
pnpm lint-staged

.monorepolint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,5 +250,14 @@ export default {
250250
},
251251
includePackages: [MAIN_PACKAGE],
252252
}),
253+
254+
requireDependency({
255+
options: {
256+
dependencies: {
257+
"@types/geojson": "^7946.0.10",
258+
},
259+
},
260+
includePackages: [MAIN_PACKAGE, ...TS_PACKAGES, ...JS_PACKAGES],
261+
}),
253262
],
254263
};

.prettierignore

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
dist
22
*.md
33
node_modules
4-
tsconfig.json
5-
lerna.json
6-
7-
# slow
8-
packages/turf-directional-mean/test/in/bus_route_gps.json
9-
packages/turf-directional-mean/test/in/bus_route_utm.json
104

115
# is actually output
126
packages/turf/turf.min.js
137

14-
# Ignore test fixture json in case intentional line breaks help with coord
15-
# readability.
16-
packages/turf-*/test/in/**
17-
packages/turf-*/test/out/**
18-
packages/turf-*/test/true/**
19-
packages/turf-*/test/false/**
20-
218
pnpm-lock.yaml
229

23-
/.nx/cache
10+
/.nx/cache

.prettierrc.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"trailingComma": "es5"
2+
"trailingComma": "es5",
3+
"overrides": [
4+
{
5+
"files": "*.{geojson,json}",
6+
"options": {
7+
"printWidth": 90
8+
}
9+
}
10+
]
311
}

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,27 @@
1212
"lint:mrl": "mrl check",
1313
"lint:prettier": "prettier --check .",
1414
"preinstall": "npx only-allow pnpm",
15-
"prepare": "lerna run build && husky install",
15+
"prepare": "husky && lerna run build",
1616
"test": "pnpm run lint && lerna run test && lerna run --scope @turf/turf last-checks"
1717
},
1818
"lint-staged": {
1919
"package.json": [
2020
"mrl check --paths"
2121
],
2222
"**/*.{js,ts}": [
23-
"eslint --fix",
24-
"prettier --write"
23+
"eslint --fix"
2524
],
2625
"packages/*/index.{js,ts}": [
2726
"pnpm tsx ./scripts/generate-readmes"
2827
],
29-
"**/*": "prettier --write --ignore-unknown"
28+
"*": "prettier --write --ignore-unknown"
3029
},
3130
"packageManager": "[email protected]+sha512.d1a029e1a447ad90bc96cd58b0fad486d2993d531856396f7babf2d83eb1823bb83c5a3d0fc18f675b2d10321d49eb161fece36fe8134aa5823ecd215feed392",
3231
"devDependencies": {
3332
"@monorepolint/cli": "0.5.0-alpha.132",
3433
"@monorepolint/config": "0.5.0-alpha.132",
3534
"@monorepolint/core": "0.5.0-alpha.132",
3635
"@monorepolint/rules": "0.5.0-alpha.132",
37-
"@types/geojson": "7946.0.8",
3836
"@types/node": "18.11.9",
3937
"@typescript-eslint/eslint-plugin": "^6.10.0",
4038
"@typescript-eslint/parser": "^6.10.0",
@@ -51,13 +49,13 @@
5149
"esm": "^3.2.25",
5250
"fs-extra": "^11.1.1",
5351
"glob": "^10.3.10",
54-
"husky": "^8.0.0",
52+
"husky": "^9.0.0",
5553
"lerna": "^8.1.7",
56-
"lint-staged": "^10.5.4",
54+
"lint-staged": "^15.2.8",
5755
"load-json-file": "^7.0.1",
5856
"meow": "^12.1.1",
5957
"npm-run-all": "^4.1.5",
60-
"prettier": "^3.0.3",
58+
"prettier": "^3.3.3",
6159
"progress": "^2.0.3",
6260
"ts-node": "^9.0.0",
6361
"tsup": "^8.0.1",

packages/turf-along/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"@turf/distance": "workspace:^",
6969
"@turf/helpers": "workspace:^",
7070
"@turf/invariant": "workspace:^",
71+
"@types/geojson": "^7946.0.10",
7172
"tslib": "^2.6.2"
7273
}
7374
}

packages/turf-angle/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"@turf/helpers": "workspace:^",
7373
"@turf/invariant": "workspace:^",
7474
"@turf/rhumb-bearing": "workspace:^",
75+
"@types/geojson": "^7946.0.10",
7576
"tslib": "^2.6.2"
7677
}
7778
}

packages/turf-area/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"dependencies": {
6666
"@turf/helpers": "workspace:^",
6767
"@turf/meta": "workspace:^",
68+
"@types/geojson": "^7946.0.10",
6869
"tslib": "^2.6.2"
6970
}
7071
}

packages/turf-bbox-clip/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"dependencies": {
7373
"@turf/helpers": "workspace:^",
7474
"@turf/invariant": "workspace:^",
75+
"@types/geojson": "^7946.0.10",
7576
"tslib": "^2.6.2"
7677
}
7778
}

packages/turf-bbox-polygon/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
},
6464
"dependencies": {
6565
"@turf/helpers": "workspace:^",
66+
"@types/geojson": "^7946.0.10",
6667
"tslib": "^2.6.2"
6768
}
6869
}

0 commit comments

Comments
 (0)