From 331b3d216f5904615e1ea467842603c5d78fcf59 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Sun, 24 Jun 2018 21:02:56 +1000 Subject: [PATCH 01/10] Correct the Typescript defs for turf.voronoi. Fixes #1422. --- packages/turf-voronoi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/turf-voronoi/index.d.ts b/packages/turf-voronoi/index.d.ts index ed756838d2..f33c2b6b0f 100644 --- a/packages/turf-voronoi/index.d.ts +++ b/packages/turf-voronoi/index.d.ts @@ -5,5 +5,5 @@ import { FeatureCollection, BBox, Point, Polygon } from '@turf/helpers'; */ export default function voronoi( points: FeatureCollection, - bbox: BBox + options: {bbox: BBox} ): FeatureCollection; From 2c96f6ade33eeec45fcd381f935281456469d0e6 Mon Sep 17 00:00:00 2001 From: Justas Brazauskas Date: Thu, 16 May 2019 13:29:10 +0300 Subject: [PATCH 02/10] =?UTF-8?q?=F0=9F=93=9D=20segmentInex=20=3D>=20segme?= =?UTF-8?q?ntIndex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/turf-meta/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/turf-meta/index.mjs b/packages/turf-meta/index.mjs index 8700d99c69..69573ba7c1 100644 --- a/packages/turf-meta/index.mjs +++ b/packages/turf-meta/index.mjs @@ -786,7 +786,7 @@ export function segmentEach(geojson, callback) { * //= featureIndex * //= multiFeatureIndex * //= geometryIndex - * //= segmentInex + * //= segmentIndex * return currentSegment * }); * From 9466c8018779aa84456ce13b36058948e2039b37 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 13 Sep 2019 16:09:24 -0400 Subject: [PATCH 03/10] Remove unused isObject import --- packages/turf-distance/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/turf-distance/index.ts b/packages/turf-distance/index.ts index 2f4b84bf82..efaeacc072 100644 --- a/packages/turf-distance/index.ts +++ b/packages/turf-distance/index.ts @@ -1,6 +1,6 @@ import { getCoord } from '@turf/invariant'; import { - radiansToLength, isObject, degreesToRadians, + radiansToLength, degreesToRadians, Coord, Units } from '@turf/helpers'; From c9ebb4ff7d7e48231f2901bb4f312fa7b8620e5b Mon Sep 17 00:00:00 2001 From: Rugen Heidbuchel Date: Thu, 26 Sep 2019 15:48:27 +0200 Subject: [PATCH 04/10] Improve TypeScript declaration of @turf/points-within-polygon --- packages/turf-points-within-polygon/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/turf-points-within-polygon/index.d.ts b/packages/turf-points-within-polygon/index.d.ts index 7729ec19ec..efc6083a02 100644 --- a/packages/turf-points-within-polygon/index.d.ts +++ b/packages/turf-points-within-polygon/index.d.ts @@ -1,9 +1,9 @@ -import { Feature, FeatureCollection, Polygon, MultiPolygon, Point } from '@turf/helpers' +import { Feature, FeatureCollection, Polygon, MultiPolygon, Point, Properties } from '@turf/helpers' /** * http://turfjs.org/docs/#pointswithinpolygon */ -export default function pointsWithinPolygon( - points: Feature | FeatureCollection, +export default function pointsWithinPolygon( + points: Feature | FeatureCollection, polygons: Feature | FeatureCollection | G -): FeatureCollection; +): FeatureCollection; From 7b44169bfe78120ef5b6e95b3ae2c0a847ce0a25 Mon Sep 17 00:00:00 2001 From: derekacosta Date: Mon, 28 Oct 2019 21:13:48 -0400 Subject: [PATCH 05/10] updated create-react-app package.json to at least appear as a boilerplate run --- examples/create-react-app/package.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/create-react-app/package.json b/examples/create-react-app/package.json index 397be24eee..2dd512c270 100644 --- a/examples/create-react-app/package.json +++ b/examples/create-react-app/package.json @@ -1,14 +1,16 @@ { "private": true, "name": "create-react-app", - "main": "src/index.js", "scripts": { - "test": "react-scripts build" - }, - "devDependencies": { - "react-scripts": "*" + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject" }, "dependencies": { + "react": "*", + "react-dom": "*", + "react-scripts": "*", "@turf/turf": "*" } } From a02273a650ef0a23c1dabb5dbe0cbbbf35e91814 Mon Sep 17 00:00:00 2001 From: Jonny Cornwell Date: Sat, 9 Nov 2019 18:54:53 +0000 Subject: [PATCH 06/10] Fix type definition for rewind --- packages/turf-rewind/index.d.ts | 2 +- packages/turf-rewind/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/turf-rewind/index.d.ts b/packages/turf-rewind/index.d.ts index d81fe8829a..4f7e72b60e 100644 --- a/packages/turf-rewind/index.d.ts +++ b/packages/turf-rewind/index.d.ts @@ -6,7 +6,7 @@ import { AllGeoJSON } from '@turf/helpers'; export default function rewind( geojson: T, options?: { - reversed?: boolean, + reverse?: boolean, mutate?: boolean } ): T; diff --git a/packages/turf-rewind/types.ts b/packages/turf-rewind/types.ts index 92ca655614..3386ea07cc 100644 --- a/packages/turf-rewind/types.ts +++ b/packages/turf-rewind/types.ts @@ -12,4 +12,4 @@ rewind(poly) rewind(multiPoly) rewind(multiLine) rewind(poly, {mutate: true}) -rewind(poly, {mutate: true, reversed: true}) +rewind(poly, {mutate: true, reverse: true}) From ec070cfc69559cfc0f56eb25272220e145444981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Magalh=C3=A3es?= Date: Fri, 3 Jan 2020 19:57:36 +0000 Subject: [PATCH 07/10] npm package link fix in README (#1810) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e08c64777b..df8310bbdc 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ - - - -[Turf](https://turfjs.org) is a [JavaScript library](https://en.wikipedia.org/wiki/JavaScript_library) for [spatial analysis](http://en.wikipedia.org/wiki/Spatial_analysis). It includes traditional spatial operations, helper functions for creating [GeoJSON](http://geojson.org) data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can [run Turf server-side](https://www.npmjs.com/package/turf) with [Node.js](http://nodejs.org/) (see below). +[Turf](https://turfjs.org) is a [JavaScript library](https://en.wikipedia.org/wiki/JavaScript_library) for [spatial analysis](http://en.wikipedia.org/wiki/Spatial_analysis). It includes traditional spatial operations, helper functions for creating [GeoJSON](http://geojson.org) data, and data classification and statistics tools. Turf can be added to your website as a client-side plugin, or you can [run Turf server-side](https://www.npmjs.com/package/@turf/turf) with [Node.js](http://nodejs.org/) (see below). ## Installation From 79982408a888aee4f48b33c03fb3e44d14c4e5a4 Mon Sep 17 00:00:00 2001 From: Matt Fedderly Date: Mon, 9 Mar 2020 10:00:54 -0400 Subject: [PATCH 08/10] Update yarn.lock to be consistent --- yarn.lock | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 3edf25b690..c3ab4d68ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -159,6 +159,13 @@ dependencies: "@turf/helpers" "^5.1.5" +"@turf/kinks@5.1.x", "@turf/kinks@^5.1.5": + version "5.1.5" + resolved "https://registry.yarnpkg.com/@turf/kinks/-/kinks-5.1.5.tgz#8abb6961d9bb0107213baddf2c2c2640d0256980" + integrity sha1-irtpYdm7AQchO63fLCwmQNAlaYA= + dependencies: + "@turf/helpers" "^5.1.5" + "@turf/line-arc@5.1.x", "@turf/line-arc@^5.1.5": version "5.1.5" resolved "https://registry.yarnpkg.com/@turf/line-arc/-/line-arc-5.1.5.tgz#0078a7447835a12ae414a211f9a64d1186150e15" @@ -3812,9 +3819,10 @@ markdown-table@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.1.tgz#4b3dd3a133d1518b8ef0dbc709bf2a1b4824bc8c" -martinez-polygon-clipping@*: +martinez-polygon-clipping@^0.4.3: version "0.4.3" resolved "https://registry.yarnpkg.com/martinez-polygon-clipping/-/martinez-polygon-clipping-0.4.3.tgz#a3971ddf1da147104b5d0fbbf68f728bb62885c1" + integrity sha512-3ZNS0ksKhWTLsmCUkNf+/UimndZ5U2cVOS0I+IjiwF+M23E77TmeOZSmbRJbfCoQUog/vcQ42s3DXrhgOhgPqw== dependencies: splaytree "^0.1.4" tinyqueue "^1.2.0" From 657c9faa4b5df36ad3643f7c5448e2ae78acb40d Mon Sep 17 00:00:00 2001 From: Matt Fedderly Date: Mon, 9 Mar 2020 10:14:36 -0400 Subject: [PATCH 09/10] Update from @std/esm to esm - @std/esm has been deprecated in favor of just esm, this fixes building on newer node versions. - Moved the dependency from every package.json into the root package.json --- package.json | 1 + packages/turf-buffer/package.json | 11 +++-------- packages/turf-dissolve/package.json | 11 +++-------- packages/turf-ellipse/package.json | 11 +++-------- packages/turf-envelope/package.json | 11 +++-------- packages/turf-explode/package.json | 11 +++-------- packages/turf-flatten/package.json | 11 +++-------- packages/turf-flip/package.json | 11 +++-------- packages/turf-great-circle/package.json | 11 +++-------- packages/turf-interpolate/package.json | 11 +++-------- packages/turf-isobands/package.json | 11 +++-------- packages/turf-isolines/package.json | 9 ++------- packages/turf-line-chunk/package.json | 11 +++-------- packages/turf-line-offset/package.json | 12 +++--------- packages/turf-line-slice-along/package.json | 11 +++-------- packages/turf-line-slice/package.json | 11 +++-------- packages/turf-line-split/package.json | 11 +++-------- packages/turf-mask/package.json | 11 +++-------- packages/turf-midpoint/package.json | 11 +++-------- packages/turf-planepoint/package.json | 11 +++-------- packages/turf-point-on-feature/package.json | 11 +++-------- packages/turf-points-within-polygon/package.json | 11 +++-------- packages/turf-polygon-smooth/package.json | 11 +++-------- packages/turf-polygon-tangents/package.json | 11 +++-------- packages/turf-polygonize/package.json | 11 +++-------- packages/turf-rectangle-grid/package.json | 1 - packages/turf-rewind/package.json | 11 +++-------- packages/turf-sample/package.json | 11 +++-------- packages/turf-sector/package.json | 11 +++-------- packages/turf-shortest-path/package.json | 11 +++-------- packages/turf-simplify/package.json | 11 +++-------- packages/turf-square/package.json | 11 +++-------- .../turf-standard-deviational-ellipse/package.json | 11 +++-------- packages/turf-tag/package.json | 11 +++-------- packages/turf-tesselate/package.json | 11 +++-------- packages/turf-transform-rotate/package.json | 11 +++-------- packages/turf-transform-scale/package.json | 11 +++-------- packages/turf-transform-translate/package.json | 11 +++-------- packages/turf-unkink-polygon/package.json | 11 +++-------- packages/turf-voronoi/package.json | 11 +++-------- yarn.lock | 9 +++++---- 41 files changed, 119 insertions(+), 309 deletions(-) diff --git a/package.json b/package.json index 6d5237b1a4..6332e2cecc 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "documentation": "*", "eslint": "*", "eslint-config-mourner": "*", + "esm": "^3.2.25", "fs-extra": "*", "lerna": "2.8.0", "load-json-file": "*", diff --git a/packages/turf-buffer/package.json b/packages/turf-buffer/package.json index 3873d72b48..2670002dbe 100644 --- a/packages/turf-buffer/package.json +++ b/packages/turf-buffer/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -43,7 +43,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "*", "benchmark": "*", "load-json-file": "*", @@ -59,9 +58,5 @@ "@turf/projection": "6.x", "d3-geo": "1.7.1", "turf-jsts": "*" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-dissolve/package.json b/packages/turf-dissolve/package.json index db23737ee5..5cbc122ca9 100644 --- a/packages/turf-dissolve/package.json +++ b/packages/turf-dissolve/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -37,7 +37,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -54,9 +53,5 @@ "@turf/union": "^5.1.5", "geojson-rbush": "3.x", "get-closest": "*" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-ellipse/package.json b/packages/turf-ellipse/package.json index 97735faace..f3b4d4b7d6 100644 --- a/packages/turf-ellipse/package.json +++ b/packages/turf-ellipse/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -37,7 +37,6 @@ "homepage": "https://github.com/Turfjs/turf", "devDependencies": { "@mapbox/geojsonhint": "*", - "@std/esm": "*", "@turf/bbox-polygon": "6.x", "@turf/circle": "6.x", "@turf/destination": "6.x", @@ -54,9 +53,5 @@ "@turf/invariant": "6.x", "@turf/rhumb-destination": "6.x", "@turf/transform-rotate": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-envelope/package.json b/packages/turf-envelope/package.json index 327ee11214..6897a2e021 100644 --- a/packages/turf-envelope/package.json +++ b/packages/turf-envelope/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -36,7 +36,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -46,9 +45,5 @@ "@turf/bbox": "6.x", "@turf/bbox-polygon": "6.x", "@turf/helpers": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-explode/package.json b/packages/turf-explode/package.json index 490befdbf0..ab0fee5f3b 100644 --- a/packages/turf-explode/package.json +++ b/packages/turf-explode/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -35,7 +35,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "geojson-fixtures": "*", "load-json-file": "*", @@ -46,9 +45,5 @@ "dependencies": { "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-flatten/package.json b/packages/turf-flatten/package.json index 835527fb86..3ad8e2a781 100644 --- a/packages/turf-flatten/package.json +++ b/packages/turf-flatten/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -40,7 +40,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -50,9 +49,5 @@ "dependencies": { "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-flip/package.json b/packages/turf-flip/package.json index b0714bf152..4ae09f0dec 100644 --- a/packages/turf-flip/package.json +++ b/packages/turf-flip/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -35,7 +35,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -46,9 +45,5 @@ "@turf/clone": "6.x", "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-great-circle/package.json b/packages/turf-great-circle/package.json index 9d02028001..5acd547efd 100644 --- a/packages/turf-great-circle/package.json +++ b/packages/turf-great-circle/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -42,7 +42,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -53,9 +52,5 @@ "dependencies": { "@turf/helpers": "6.x", "@turf/invariant": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-interpolate/package.json b/packages/turf-interpolate/package.json index a71ccbc48b..874d59535b 100644 --- a/packages/turf-interpolate/package.json +++ b/packages/turf-interpolate/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -37,7 +37,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "chromatism": "*", @@ -58,9 +57,5 @@ "@turf/point-grid": "6.x", "@turf/square-grid": "^5.1.5", "@turf/triangle-grid": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-isobands/package.json b/packages/turf-isobands/package.json index 739b3f0bcf..ebe1c4b648 100644 --- a/packages/turf-isobands/package.json +++ b/packages/turf-isobands/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -42,7 +42,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/envelope": "^5.1.5", "@turf/point-grid": "6.x", "@turf/random": "6.x", @@ -65,9 +64,5 @@ "@turf/invariant": "6.x", "@turf/meta": "6.x", "object-assign": "*" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-isolines/package.json b/packages/turf-isolines/package.json index 2abdabb0a4..3e7c49e4be 100644 --- a/packages/turf-isolines/package.json +++ b/packages/turf-isolines/package.json @@ -14,8 +14,8 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -40,7 +40,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "0.21.x", "@turf/envelope": "^5.1.5", "@turf/point-grid": "6.x", "@turf/random": "6.x", @@ -59,9 +58,5 @@ "@turf/invariant": "6.x", "@turf/meta": "6.x", "object-assign": "*" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-line-chunk/package.json b/packages/turf-line-chunk/package.json index 9194ccae21..722a715ade 100644 --- a/packages/turf-line-chunk/package.json +++ b/packages/turf-line-chunk/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -42,7 +42,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -55,9 +54,5 @@ "@turf/length": "6.x", "@turf/line-slice-along": "^5.1.5", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-line-offset/package.json b/packages/turf-line-offset/package.json index b5dc8b8a7d..18060fe99f 100644 --- a/packages/turf-line-offset/package.json +++ b/packages/turf-line-offset/package.json @@ -1,4 +1,3 @@ - { "name": "@turf/line-offset", "version": "5.1.5", @@ -15,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -42,7 +41,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -54,9 +52,5 @@ "@turf/helpers": "6.x", "@turf/invariant": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-line-slice-along/package.json b/packages/turf-line-slice-along/package.json index 7a39dcfbc8..e37dd2ffa5 100644 --- a/packages/turf-line-slice-along/package.json +++ b/packages/turf-line-slice-along/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -34,7 +34,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/along": "*", "benchmark": "*", "load-json-file": "*", @@ -46,9 +45,5 @@ "@turf/destination": "6.x", "@turf/distance": "6.x", "@turf/helpers": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-line-slice/package.json b/packages/turf-line-slice/package.json index 2d277a8924..bc666612cd 100644 --- a/packages/turf-line-slice/package.json +++ b/packages/turf-line-slice/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -38,7 +38,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -50,9 +49,5 @@ "@turf/helpers": "6.x", "@turf/invariant": "6.x", "@turf/nearest-point-on-line": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-line-split/package.json b/packages/turf-line-split/package.json index 313c474bc7..e1b94eed83 100644 --- a/packages/turf-line-split/package.json +++ b/packages/turf-line-split/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -39,7 +39,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -57,9 +56,5 @@ "@turf/square": "^5.1.5", "@turf/truncate": "6.x", "geojson-rbush": "3.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-mask/package.json b/packages/turf-mask/package.json index 2597d99b69..e67f335d9e 100644 --- a/packages/turf-mask/package.json +++ b/packages/turf-mask/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -34,7 +34,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "mkdirp": "*", @@ -48,9 +47,5 @@ "@turf/meta": "6.x", "@turf/union": "^5.1.5", "rbush": "^2.0.1" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-midpoint/package.json b/packages/turf-midpoint/package.json index e73cd0985e..6472dc4eae 100644 --- a/packages/turf-midpoint/package.json +++ b/packages/turf-midpoint/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -36,7 +36,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "rollup": "*", "tape": "*" @@ -46,9 +45,5 @@ "@turf/destination": "6.x", "@turf/distance": "6.x", "@turf/helpers": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-planepoint/package.json b/packages/turf-planepoint/package.json index f130aee17c..846ee6e4fb 100644 --- a/packages/turf-planepoint/package.json +++ b/packages/turf-planepoint/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -36,7 +36,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "rollup": "*", "tape": "*" @@ -44,9 +43,5 @@ "dependencies": { "@turf/helpers": "6.x", "@turf/invariant": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-point-on-feature/package.json b/packages/turf-point-on-feature/package.json index 47e9681f61..42a24dcfcc 100644 --- a/packages/turf-point-on-feature/package.json +++ b/packages/turf-point-on-feature/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -37,7 +37,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/meta": "6.x", "@turf/truncate": "6.x", "benchmark": "*", @@ -50,9 +49,5 @@ "@turf/explode": "^5.1.5", "@turf/helpers": "6.x", "@turf/nearest-point": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-points-within-polygon/package.json b/packages/turf-points-within-polygon/package.json index c1776a6375..37f8513074 100644 --- a/packages/turf-points-within-polygon/package.json +++ b/packages/turf-points-within-polygon/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -36,7 +36,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "rollup": "*", "tape": "*" @@ -45,9 +44,5 @@ "@turf/boolean-point-in-polygon": "6.x", "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-polygon-smooth/package.json b/packages/turf-polygon-smooth/package.json index b3c2829174..ccb3648976 100644 --- a/packages/turf-polygon-smooth/package.json +++ b/packages/turf-polygon-smooth/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -37,7 +37,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "glob": "*", "load-json-file": "*", @@ -48,9 +47,5 @@ "dependencies": { "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-polygon-tangents/package.json b/packages/turf-polygon-tangents/package.json index 82ed925b53..7aebc71136 100644 --- a/packages/turf-polygon-tangents/package.json +++ b/packages/turf-polygon-tangents/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -41,7 +41,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -55,9 +54,5 @@ "@turf/helpers": "6.x", "@turf/invariant": "6.x", "@turf/nearest-point": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-polygonize/package.json b/packages/turf-polygonize/package.json index 5c9bc9ea26..efc47a4b42 100644 --- a/packages/turf-polygonize/package.json +++ b/packages/turf-polygonize/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -40,7 +40,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -53,9 +52,5 @@ "@turf/helpers": "6.x", "@turf/invariant": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-rectangle-grid/package.json b/packages/turf-rectangle-grid/package.json index 3bb8fac4d0..ac474ca8da 100644 --- a/packages/turf-rectangle-grid/package.json +++ b/packages/turf-rectangle-grid/package.json @@ -38,7 +38,6 @@ "devDependencies": { "@turf/bbox-polygon": "*", "@turf/truncate": "*", - "@std/esm": "*", "benchmark": "*", "rollup": "*", "write-json-file": "*", diff --git a/packages/turf-rewind/package.json b/packages/turf-rewind/package.json index 0060f8bab4..34719a8c40 100644 --- a/packages/turf-rewind/package.json +++ b/packages/turf-rewind/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -41,7 +41,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -54,9 +53,5 @@ "@turf/helpers": "6.x", "@turf/invariant": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-sample/package.json b/packages/turf-sample/package.json index 9eb8c0b966..61f55bd6b4 100644 --- a/packages/turf-sample/package.json +++ b/packages/turf-sample/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -35,16 +35,11 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "rollup": "*", "tape": "*" }, "dependencies": { "@turf/helpers": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-sector/package.json b/packages/turf-sector/package.json index a3dd76d95b..0c5cc0ca5c 100644 --- a/packages/turf-sector/package.json +++ b/packages/turf-sector/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -33,7 +33,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -47,9 +46,5 @@ "@turf/invariant": "6.x", "@turf/line-arc": "^5.1.5", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-shortest-path/package.json b/packages/turf-shortest-path/package.json index 820dff39f0..6cbe6ab8a9 100644 --- a/packages/turf-shortest-path/package.json +++ b/packages/turf-shortest-path/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -39,7 +39,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -57,9 +56,5 @@ "@turf/invariant": "6.x", "@turf/meta": "6.x", "@turf/transform-scale": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-simplify/package.json b/packages/turf-simplify/package.json index dc71f58ee0..8d320d8a93 100644 --- a/packages/turf-simplify/package.json +++ b/packages/turf-simplify/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -42,7 +42,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -55,9 +54,5 @@ "@turf/clone": "6.x", "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-square/package.json b/packages/turf-square/package.json index 2008586c09..639356853c 100644 --- a/packages/turf-square/package.json +++ b/packages/turf-square/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -35,7 +35,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "rollup": "*", "tape": "*" @@ -43,9 +42,5 @@ "dependencies": { "@turf/distance": "6.x", "@turf/helpers": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-standard-deviational-ellipse/package.json b/packages/turf-standard-deviational-ellipse/package.json index a9bad1dbfb..0493d72c08 100644 --- a/packages/turf-standard-deviational-ellipse/package.json +++ b/packages/turf-standard-deviational-ellipse/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -38,7 +38,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/random": "6.x", "@turf/truncate": "6.x", "benchmark": "*", @@ -54,9 +53,5 @@ "@turf/invariant": "6.x", "@turf/meta": "6.x", "@turf/points-within-polygon": "^5.1.5" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-tag/package.json b/packages/turf-tag/package.json index d0e678614d..cf3d1825ea 100644 --- a/packages/turf-tag/package.json +++ b/packages/turf-tag/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -39,7 +39,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "load-json-file": "*", "rollup": "*", @@ -50,9 +49,5 @@ "@turf/clone": "6.x", "@turf/helpers": "6.x", "@turf/meta": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-tesselate/package.json b/packages/turf-tesselate/package.json index 2c216e2054..6457a2b973 100644 --- a/packages/turf-tesselate/package.json +++ b/packages/turf-tesselate/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -43,7 +43,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "rollup": "*", "tape": "*" @@ -51,9 +50,5 @@ "dependencies": { "@turf/helpers": "6.x", "earcut": "^2.0.0" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-transform-rotate/package.json b/packages/turf-transform-rotate/package.json index 14c32b7e05..5d46924480 100644 --- a/packages/turf-transform-rotate/package.json +++ b/packages/turf-transform-rotate/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -39,7 +39,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -56,9 +55,5 @@ "@turf/rhumb-bearing": "6.x", "@turf/rhumb-destination": "6.x", "@turf/rhumb-distance": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-transform-scale/package.json b/packages/turf-transform-scale/package.json index d8242e6de8..5f94651f1e 100644 --- a/packages/turf-transform-scale/package.json +++ b/packages/turf-transform-scale/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -43,7 +43,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/bbox-polygon": "6.x", "@turf/hex-grid": "^5.1.5", "@turf/truncate": "6.x", @@ -64,9 +63,5 @@ "@turf/rhumb-bearing": "6.x", "@turf/rhumb-destination": "6.x", "@turf/rhumb-distance": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-transform-translate/package.json b/packages/turf-transform-translate/package.json index c0632e85c6..5750d5d7f6 100644 --- a/packages/turf-transform-translate/package.json +++ b/packages/turf-transform-translate/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -41,7 +41,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/truncate": "6.x", "benchmark": "*", "load-json-file": "*", @@ -55,9 +54,5 @@ "@turf/invariant": "6.x", "@turf/meta": "6.x", "@turf/rhumb-destination": "6.x" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-unkink-polygon/package.json b/packages/turf-unkink-polygon/package.json index 57d7005779..26bd46ee49 100644 --- a/packages/turf-unkink-polygon/package.json +++ b/packages/turf-unkink-polygon/package.json @@ -14,9 +14,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -37,7 +37,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "@turf/kinks": "^5.1.5", "benchmark": "*", "load-json-file": "*", @@ -51,9 +50,5 @@ "@turf/helpers": "6.x", "@turf/meta": "6.x", "rbush": "^2.0.1" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/packages/turf-voronoi/package.json b/packages/turf-voronoi/package.json index 9a1c6a452e..7b704fb73d 100644 --- a/packages/turf-voronoi/package.json +++ b/packages/turf-voronoi/package.json @@ -13,9 +13,9 @@ ], "scripts": { "pretest": "rollup -c ../../rollup.config.js", - "test": "node -r @std/esm test.js", - "posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", - "bench": "node -r @std/esm bench.js", + "test": "node -r esm test.js", + "posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", + "bench": "node -r esm bench.js", "docs": "node ../../scripts/generate-readmes" }, "repository": { @@ -42,7 +42,6 @@ }, "homepage": "https://github.com/Turfjs/turf", "devDependencies": { - "@std/esm": "*", "benchmark": "*", "glob": "*", "load-json-file": "*", @@ -54,9 +53,5 @@ "@turf/helpers": "6.x", "@turf/invariant": "6.x", "d3-voronoi": "1.1.2" - }, - "@std/esm": { - "esm": "js", - "cjs": true } } diff --git a/yarn.lock b/yarn.lock index c3ab4d68ad..f2d090323a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,10 +12,6 @@ vfile "2.0.0" vfile-reporter "3.0.0" -"@std/esm@*", "@std/esm@0.21.x": - version "0.21.7" - resolved "https://registry.yarnpkg.com/@std/esm/-/esm-0.21.7.tgz#492d7931aed03e91a133deac4d9062fbfce5fd6b" - "@turf/area@^5.1.5": version "5.1.5" resolved "https://registry.yarnpkg.com/@turf/area/-/area-5.1.5.tgz#efd899bfd260cdbd1541b2a3c155f8a5d2eefa1d" @@ -2324,6 +2320,11 @@ eslint@*: table "^4.0.1" text-table "~0.2.0" +esm@^3.2.25: + version "3.2.25" + resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10" + integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA== + espree@^3.5.2: version "3.5.3" resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.3.tgz#931e0af64e7fbbed26b050a29daad1fc64799fa6" From 84e98e885604be321a66c4fc6a4d1a5546643542 Mon Sep 17 00:00:00 2001 From: Matt Fedderly Date: Mon, 9 Mar 2020 10:16:24 -0400 Subject: [PATCH 10/10] Whitespace cleanup --- packages/turf-polygon-tangents/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/turf-polygon-tangents/package.json b/packages/turf-polygon-tangents/package.json index 7aebc71136..fc82675289 100644 --- a/packages/turf-polygon-tangents/package.json +++ b/packages/turf-polygon-tangents/package.json @@ -1,4 +1,3 @@ - { "name": "@turf/polygon-tangents", "version": "5.1.5",