Skip to content

Commit

Permalink
Upgrade typescript version to 4.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinVdBroeck committed May 4, 2024
1 parent 7771b2c commit 0ccad69
Show file tree
Hide file tree
Showing 76 changed files with 384 additions and 165 deletions.
20 changes: 10 additions & 10 deletions .monorepolint.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const path = require("path");
const glob = require("glob");
const fs = require("fs");
import path from "path";
import glob from "glob";
import fs from "fs";

const TS_PACKAGES = []; // projects that use typescript to build
const JS_PACKAGES = []; // projects that use javascript/rollup to build
const TS_PACKAGES = [] as string[]; // projects that use typescript to build
const JS_PACKAGES = [] as string[]; // projects that use javascript/rollup to build
const MAIN_PACKAGE = "@turf/turf";

const TAPE_PACKAGES = []; // projects that have tape tests
const TYPES_PACKAGES = []; // projects that have types tests
const BENCH_PACKAGES = []; // projects that have benchmarks
const TAPE_PACKAGES = [] as string[]; // projects that have tape tests
const TYPES_PACKAGES = [] as string[]; // projects that have types tests
const BENCH_PACKAGES = [] as string[]; // projects that have benchmarks

// iterate all the packages and figure out what buckets everything falls into
glob.sync(path.join(__dirname, "packages", "turf-*")).forEach((pk) => {
Expand Down Expand Up @@ -248,8 +248,8 @@ module.exports = {
{
options: {
devDependencies: {
"ts-node": "*",
typescript: "*",
"ts-node": "^10.9.2",
typescript: "~4.7.3",
},
},
includePackages: TS_PACKAGES,
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"devDependencies": {
"@types/geojson": "*",
"@types/glob": "^7.0.0",
"@types/node": "*",
"@typescript-eslint/eslint-plugin": "^4.8.0",
"@typescript-eslint/parser": "^4.8.0",
Expand All @@ -47,6 +48,7 @@
"eslint-config-prettier": "^6.15.0",
"esm": "^3.2.25",
"fs-extra": "*",
"glob": "^7.0.0",
"husky": "^4.2.3",
"lerna": "^4.0.0",
"lint-staged": "^10.0.8",
Expand All @@ -58,8 +60,8 @@
"progress": "*",
"rollup": "^2.34.2",
"tape": "*",
"ts-node": "^9.0.0",
"typescript": "^3.8.3",
"ts-node": "^10.9.2",
"typescript": "~4.7.2",
"yamljs": "*"
}
}
4 changes: 2 additions & 2 deletions packages/turf-along/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/bearing": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-angle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-area/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-bbox-clip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-bbox-polygon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"benchmark": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/helpers": "^6.5.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-bbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"benchmark": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-bearing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"benchmark": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-bezier-spline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-clockwise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-concave/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-contains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/bbox": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-crosses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/boolean-point-in-polygon": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-disjoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/boolean-point-in-polygon": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-equal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/clean-coords": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-intersects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/boolean-disjoint": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-overlap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-parallel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-point-in-polygon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"benchmark": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/helpers": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-point-on-line/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-touches/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/boolean-point-in-polygon": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/bbox": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-boolean-within/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*"
"typescript": "~4.7.3"
},
"dependencies": {
"@turf/bbox": "^6.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-center-mean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-center-median/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-center-of-mass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-center/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-centroid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/turf-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"load-json-file": "*",
"npm-run-all": "*",
"tape": "*",
"ts-node": "*",
"ts-node": "^10.9.2",
"tslint": "*",
"typescript": "*",
"typescript": "~4.7.3",
"write-json-file": "*"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 0ccad69

Please sign in to comment.