From 9d4564714a2358a2a4b6fc1239e9d11dbb266aab Mon Sep 17 00:00:00 2001 From: Robin Van den Broeck Date: Fri, 3 May 2024 00:18:41 +0200 Subject: [PATCH] Use tsup to build. This also updates ts to 4.7, since this is the minimum required version for the correct node resolution. --- .monorepolint.config.ts | 74 +- package.json | 4 +- packages/turf-along/package.json | 22 +- packages/turf-angle/package.json | 22 +- packages/turf-area/package.json | 22 +- packages/turf-bbox-clip/package.json | 22 +- packages/turf-bbox-polygon/package.json | 22 +- packages/turf-bbox/package.json | 22 +- packages/turf-bearing/package.json | 22 +- packages/turf-bezier-spline/package.json | 22 +- packages/turf-boolean-clockwise/package.json | 22 +- packages/turf-boolean-concave/package.json | 22 +- packages/turf-boolean-contains/package.json | 22 +- packages/turf-boolean-crosses/package.json | 22 +- packages/turf-boolean-disjoint/package.json | 22 +- packages/turf-boolean-equal/package.json | 22 +- packages/turf-boolean-intersects/package.json | 22 +- packages/turf-boolean-overlap/package.json | 22 +- packages/turf-boolean-parallel/package.json | 22 +- .../package.json | 22 +- .../turf-boolean-point-on-line/package.json | 22 +- packages/turf-boolean-touches/package.json | 22 +- packages/turf-boolean-valid/package.json | 22 +- packages/turf-boolean-within/package.json | 22 +- packages/turf-buffer/package.json | 21 +- packages/turf-center-mean/package.json | 22 +- packages/turf-center-median/package.json | 22 +- packages/turf-center-of-mass/package.json | 22 +- packages/turf-center/package.json | 22 +- packages/turf-centroid/package.json | 22 +- packages/turf-circle/package.json | 22 +- packages/turf-clean-coords/package.json | 22 +- packages/turf-clone/package.json | 22 +- packages/turf-clusters-dbscan/package.json | 22 +- packages/turf-clusters-kmeans/package.json | 22 +- packages/turf-clusters/package.json | 22 +- packages/turf-collect/package.json | 22 +- packages/turf-combine/package.json | 22 +- packages/turf-concave/package.json | 22 +- packages/turf-convex/package.json | 22 +- packages/turf-destination/package.json | 22 +- packages/turf-difference/package.json | 21 +- packages/turf-directional-mean/package.json | 22 +- packages/turf-dissolve/package.json | 21 +- packages/turf-distance-weight/package.json | 22 +- packages/turf-distance/package.json | 22 +- packages/turf-ellipse/package.json | 21 +- packages/turf-envelope/package.json | 23 +- packages/turf-explode/package.json | 21 +- packages/turf-flatten/package.json | 21 +- packages/turf-flip/package.json | 21 +- packages/turf-great-circle/package.json | 21 +- packages/turf-helpers/package.json | 22 +- packages/turf-helpers/tsconfig.json | 8 +- packages/turf-hex-grid/package.json | 22 +- packages/turf-interpolate/package.json | 21 +- packages/turf-intersect/package.json | 22 +- packages/turf-invariant/package.json | 22 +- packages/turf-isobands/package.json | 21 +- packages/turf-isolines/package.json | 21 +- packages/turf-kinks/package.json | 22 +- packages/turf-length/package.json | 22 +- packages/turf-line-arc/package.json | 22 +- packages/turf-line-chunk/package.json | 21 +- packages/turf-line-intersect/package.json | 22 +- packages/turf-line-offset/package.json | 21 +- packages/turf-line-overlap/package.json | 22 +- packages/turf-line-segment/package.json | 22 +- packages/turf-line-slice-along/package.json | 23 +- packages/turf-line-slice/package.json | 21 +- packages/turf-line-split/package.json | 21 +- packages/turf-line-to-polygon/package.json | 22 +- packages/turf-mask/package.json | 21 +- packages/turf-meta/package.json | 23 +- packages/turf-midpoint/package.json | 23 +- packages/turf-moran-index/package.json | 22 +- .../package.json | 22 +- .../turf-nearest-point-on-line/package.json | 22 +- .../turf-nearest-point-to-line/package.json | 22 +- packages/turf-nearest-point/package.json | 22 +- packages/turf-planepoint/package.json | 23 +- packages/turf-point-grid/package.json | 22 +- packages/turf-point-on-feature/package.json | 23 +- .../turf-point-to-line-distance/package.json | 22 +- .../turf-points-within-polygon/package.json | 23 +- packages/turf-polygon-smooth/package.json | 21 +- packages/turf-polygon-tangents/package.json | 21 +- packages/turf-polygon-to-line/package.json | 22 +- packages/turf-polygonize/package.json | 23 +- packages/turf-projection/package.json | 22 +- packages/turf-quadrat-analysis/package.json | 22 +- packages/turf-random/package.json | 22 +- packages/turf-rectangle-grid/package.json | 23 +- packages/turf-rewind/package.json | 21 +- packages/turf-rhumb-bearing/package.json | 22 +- packages/turf-rhumb-destination/package.json | 22 +- packages/turf-rhumb-distance/package.json | 22 +- packages/turf-sample/package.json | 23 +- packages/turf-sector/package.json | 21 +- packages/turf-shortest-path/package.json | 21 +- packages/turf-simplify/package.json | 21 +- packages/turf-square-grid/package.json | 22 +- packages/turf-square/package.json | 23 +- .../package.json | 21 +- packages/turf-tag/package.json | 23 +- packages/turf-tesselate/package.json | 23 +- packages/turf-tin/package.json | 22 +- packages/turf-transform-rotate/package.json | 21 +- packages/turf-transform-scale/package.json | 21 +- .../turf-transform-translate/package.json | 21 +- packages/turf-triangle-grid/package.json | 22 +- packages/turf-truncate/package.json | 22 +- packages/turf-union/package.json | 22 +- packages/turf-unkink-polygon/package.json | 21 +- packages/turf-voronoi/package.json | 21 +- packages/turf/package.json | 3 +- tsconfig.shared.json | 6 +- tsup.config.ts | 31 + yarn.lock | 739 +++++++++++++++++- 119 files changed, 2377 insertions(+), 937 deletions(-) create mode 100644 tsup.config.ts diff --git a/.monorepolint.config.ts b/.monorepolint.config.ts index f1753e4bbb..2300c54238 100644 --- a/.monorepolint.config.ts +++ b/.monorepolint.config.ts @@ -1,20 +1,20 @@ -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) => { +glob.sync(path.join(__dirname, "packages", "turf-*")).forEach((pk: string) => { const name = JSON.parse( fs.readFileSync(path.join(pk, "package.json"), "utf8") - ).name; + ).name as string; if (fs.existsSync(path.join(pk, "index.ts"))) { TS_PACKAGES.push(name); @@ -107,8 +107,10 @@ module.exports = { { options: { entries: { - main: "dist/js/index.js", - module: "dist/es/index.js", + type: "commonjs", + main: "dist/cjs/index.js", + module: "dist/esm/index.mjs", + types: "dist/cjs/index.d.ts", sideEffects: false, publishConfig: { access: "public", @@ -116,32 +118,20 @@ module.exports = { exports: { "./package.json": "./package.json", ".": { - import: "./dist/es/index.js", - require: "./dist/js/index.js", + import: { + types: "./dist/esm/index.d.mts", + default: "./dist/esm/index.mjs", + }, + require: { + types: "./dist/cjs/index.d.ts", + default: "./dist/cjs/index.js", + }, }, }, }, }, includePackages: [...TS_PACKAGES, ...JS_PACKAGES], }, - { - options: { - entries: { - types: "dist/js/index.d.ts", - files: ["dist"], - }, - }, - includePackages: TS_PACKAGES, - }, - { - options: { - entries: { - types: "index.d.ts", - files: ["dist", "index.d.ts"], - }, - }, - includePackages: JS_PACKAGES, - }, { options: { entries: { @@ -164,22 +154,10 @@ module.exports = { { options: { scripts: { - build: "npm-run-all build:*", - "build:js": "tsc", - "build:es": - 'tsc --outDir dist/es --module esnext --declaration false && echo \'{"type":"module"}\' > dist/es/package.json', - }, - }, - includePackages: TS_PACKAGES, - }, - { - options: { - scripts: { - build: - 'rollup -c ../../rollup.config.js && echo \'{"type":"module"}\' > dist/es/package.json', + build: "tsup --config ../../tsup.config.ts", }, }, - includePackages: JS_PACKAGES, + includePackages: [...JS_PACKAGES, ...TS_PACKAGES], }, { options: { @@ -257,10 +235,10 @@ module.exports = { { options: { devDependencies: { - rollup: "*", + tsup: "^8.0.1", }, }, - includePackages: JS_PACKAGES, + includePackages: [...JS_PACKAGES, ...TS_PACKAGES], }, ], }, diff --git a/package.json b/package.json index 4d339e7e8e..4e6dd53dd5 100644 --- a/package.json +++ b/package.json @@ -58,8 +58,8 @@ "progress": "*", "rollup": "^2.34.2", "tape": "*", - "ts-node": "^9.0.0", - "typescript": "^3.8.3", + "ts-node": "^10.9.0", + "typescript": "~4.7.2", "yamljs": "*" } } diff --git a/packages/turf-along/package.json b/packages/turf-along/package.json index c84936b9da..ae685479fe 100644 --- a/packages/turf-along/package.json +++ b/packages/turf-along/package.json @@ -23,14 +23,21 @@ "turf", "distance" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-angle/package.json b/packages/turf-angle/package.json index d401bdc1a6..f30194a3d1 100644 --- a/packages/turf-angle/package.json +++ b/packages/turf-angle/package.json @@ -23,14 +23,21 @@ "turf", "angle" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-area/package.json b/packages/turf-area/package.json index 1667c234d9..f7383df823 100644 --- a/packages/turf-area/package.json +++ b/packages/turf-area/package.json @@ -22,14 +22,21 @@ "polygon", "multipolygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -38,9 +45,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -53,6 +58,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-bbox-clip/package.json b/packages/turf-bbox-clip/package.json index 0f6b008b2c..95cec0eaca 100644 --- a/packages/turf-bbox-clip/package.json +++ b/packages/turf-bbox-clip/package.json @@ -28,14 +28,21 @@ "bbox", "clip" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,9 +51,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -60,6 +65,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-bbox-polygon/package.json b/packages/turf-bbox-polygon/package.json index 4c82ec6e4a..a43ca1a2f4 100644 --- a/packages/turf-bbox-polygon/package.json +++ b/packages/turf-bbox-polygon/package.json @@ -23,14 +23,21 @@ "extent", "bbox" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -53,6 +58,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-bbox/package.json b/packages/turf-bbox/package.json index 1f497da53f..3a34c8df39 100644 --- a/packages/turf-bbox/package.json +++ b/packages/turf-bbox/package.json @@ -24,14 +24,21 @@ "featurecollection", "geojson" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-bearing/package.json b/packages/turf-bearing/package.json index b276235359..166f5b5ba2 100644 --- a/packages/turf-bearing/package.json +++ b/packages/turf-bearing/package.json @@ -20,14 +20,21 @@ "turf", "bearing" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -36,9 +43,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -51,6 +56,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-bezier-spline/package.json b/packages/turf-bezier-spline/package.json index da69ce0c10..cf70c4d35b 100644 --- a/packages/turf-bezier-spline/package.json +++ b/packages/turf-bezier-spline/package.json @@ -23,14 +23,21 @@ "curve", "linestring" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-boolean-clockwise/package.json b/packages/turf-boolean-clockwise/package.json index f3a6349d67..555a5ef4c7 100755 --- a/packages/turf-boolean-clockwise/package.json +++ b/packages/turf-boolean-clockwise/package.json @@ -27,14 +27,21 @@ "clockwise", "boolean" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,9 +50,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-concave/package.json b/packages/turf-boolean-concave/package.json index 85070de9cd..78d4efbb24 100644 --- a/packages/turf-boolean-concave/package.json +++ b/packages/turf-boolean-concave/package.json @@ -26,14 +26,21 @@ "convex", "boolean" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-contains/package.json b/packages/turf-boolean-contains/package.json index 724db2978a..2029a06f9c 100644 --- a/packages/turf-boolean-contains/package.json +++ b/packages/turf-boolean-contains/package.json @@ -26,14 +26,21 @@ "boolean", "de-9im" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -60,6 +65,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-crosses/package.json b/packages/turf-boolean-crosses/package.json index 226f36f9c4..a825fa75c8 100644 --- a/packages/turf-boolean-crosses/package.json +++ b/packages/turf-boolean-crosses/package.json @@ -26,14 +26,21 @@ "boolean", "de-9im" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-disjoint/package.json b/packages/turf-boolean-disjoint/package.json index ebc7afbe04..d447ec65a7 100644 --- a/packages/turf-boolean-disjoint/package.json +++ b/packages/turf-boolean-disjoint/package.json @@ -26,14 +26,21 @@ "boolean", "de-9im" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-equal/package.json b/packages/turf-boolean-equal/package.json index 638263415e..a6829f3b6a 100644 --- a/packages/turf-boolean-equal/package.json +++ b/packages/turf-boolean-equal/package.json @@ -29,14 +29,21 @@ "equal", "boolean-equal" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,9 +52,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -63,6 +68,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-intersects/package.json b/packages/turf-boolean-intersects/package.json index 9796f8002d..eb5ba2191b 100644 --- a/packages/turf-boolean-intersects/package.json +++ b/packages/turf-boolean-intersects/package.json @@ -26,14 +26,21 @@ "boolean", "de-9im" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-overlap/package.json b/packages/turf-boolean-overlap/package.json index ac885b1775..6c0a6f3635 100755 --- a/packages/turf-boolean-overlap/package.json +++ b/packages/turf-boolean-overlap/package.json @@ -28,14 +28,21 @@ "overlap", "boolean-overlap" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,9 +51,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -62,6 +67,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-parallel/package.json b/packages/turf-boolean-parallel/package.json index 3e8542571d..9a512e9b02 100644 --- a/packages/turf-boolean-parallel/package.json +++ b/packages/turf-boolean-parallel/package.json @@ -25,14 +25,21 @@ "boolean", "boolean-parallel" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -41,9 +48,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -56,6 +61,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-boolean-point-in-polygon/package.json b/packages/turf-boolean-point-in-polygon/package.json index b97a91d471..2127d55e02 100644 --- a/packages/turf-boolean-point-in-polygon/package.json +++ b/packages/turf-boolean-point-in-polygon/package.json @@ -24,14 +24,21 @@ "bin", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-point-on-line/package.json b/packages/turf-boolean-point-on-line/package.json index 5028eb60e6..1ad4aac347 100644 --- a/packages/turf-boolean-point-on-line/package.json +++ b/packages/turf-boolean-point-on-line/package.json @@ -23,14 +23,21 @@ "turf", "booleanPointOnLine" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-boolean-touches/package.json b/packages/turf-boolean-touches/package.json index 80e30b9476..e720483471 100644 --- a/packages/turf-boolean-touches/package.json +++ b/packages/turf-boolean-touches/package.json @@ -27,14 +27,21 @@ "touches", "boolean-touches" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,9 +50,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -62,6 +67,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-valid/package.json b/packages/turf-boolean-valid/package.json index 4d27016bb5..9cbb271999 100644 --- a/packages/turf-boolean-valid/package.json +++ b/packages/turf-boolean-valid/package.json @@ -26,14 +26,21 @@ "boolean", "ogc" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -60,6 +65,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-boolean-within/package.json b/packages/turf-boolean-within/package.json index f62a377273..956427b5a0 100644 --- a/packages/turf-boolean-within/package.json +++ b/packages/turf-boolean-within/package.json @@ -27,14 +27,21 @@ "within", "boolean-within" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,9 +50,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -62,6 +67,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-buffer/package.json b/packages/turf-buffer/package.json index 52b3a0daea..1a38ad949c 100644 --- a/packages/turf-buffer/package.json +++ b/packages/turf-buffer/package.json @@ -30,14 +30,21 @@ "geojson", "turf" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -47,7 +54,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -58,8 +65,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-center-mean/package.json b/packages/turf-center-mean/package.json index b7317b129a..73402f3776 100644 --- a/packages/turf-center-mean/package.json +++ b/packages/turf-center-mean/package.json @@ -28,14 +28,21 @@ "geo", "turf" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,9 +51,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -63,6 +68,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-center-median/package.json b/packages/turf-center-median/package.json index a17c271919..6c7c4b16d3 100644 --- a/packages/turf-center-median/package.json +++ b/packages/turf-center-median/package.json @@ -23,14 +23,21 @@ "turf", "center-median" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-center-of-mass/package.json b/packages/turf-center-of-mass/package.json index a45e153607..3b34bbb0ed 100644 --- a/packages/turf-center-of-mass/package.json +++ b/packages/turf-center-of-mass/package.json @@ -20,14 +20,21 @@ "turf", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -36,9 +43,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -53,6 +58,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-center/package.json b/packages/turf-center/package.json index 8874bb06f9..6f5f249877 100644 --- a/packages/turf-center/package.json +++ b/packages/turf-center/package.json @@ -24,14 +24,21 @@ "geo", "turf" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-centroid/package.json b/packages/turf-centroid/package.json index 9bee4c7245..3e3561eb43 100644 --- a/packages/turf-centroid/package.json +++ b/packages/turf-centroid/package.json @@ -22,14 +22,21 @@ "geo", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -38,9 +45,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -56,6 +61,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-circle/package.json b/packages/turf-circle/package.json index a1891d6cd1..677167d91d 100644 --- a/packages/turf-circle/package.json +++ b/packages/turf-circle/package.json @@ -24,14 +24,21 @@ "miles", "km" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-clean-coords/package.json b/packages/turf-clean-coords/package.json index b63aa13972..296ef68359 100644 --- a/packages/turf-clean-coords/package.json +++ b/packages/turf-clean-coords/package.json @@ -24,14 +24,21 @@ "gis", "clean-coords" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -57,6 +62,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-clone/package.json b/packages/turf-clone/package.json index 53db2efac3..273f4a7639 100644 --- a/packages/turf-clone/package.json +++ b/packages/turf-clone/package.json @@ -23,14 +23,21 @@ "turf", "clone" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-clusters-dbscan/package.json b/packages/turf-clusters-dbscan/package.json index 88f447f217..fce121d0db 100644 --- a/packages/turf-clusters-dbscan/package.json +++ b/packages/turf-clusters-dbscan/package.json @@ -30,14 +30,21 @@ "density", "dbscan" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -46,9 +53,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -67,6 +72,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-clusters-kmeans/package.json b/packages/turf-clusters-kmeans/package.json index bbe40583e4..455cacc075 100644 --- a/packages/turf-clusters-kmeans/package.json +++ b/packages/turf-clusters-kmeans/package.json @@ -29,14 +29,21 @@ "clustering", "k-means" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,9 +52,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -68,6 +73,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-clusters/package.json b/packages/turf-clusters/package.json index 35f30f1e6b..7faf7c1911 100644 --- a/packages/turf-clusters/package.json +++ b/packages/turf-clusters/package.json @@ -26,14 +26,21 @@ "clusters", "clustering" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -57,6 +62,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-collect/package.json b/packages/turf-collect/package.json index f2e5e5d345..47962c6b95 100644 --- a/packages/turf-collect/package.json +++ b/packages/turf-collect/package.json @@ -27,14 +27,21 @@ "polygons", "stats" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,9 +50,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-combine/package.json b/packages/turf-combine/package.json index cf97f462c5..3ce2ef415c 100644 --- a/packages/turf-combine/package.json +++ b/packages/turf-combine/package.json @@ -23,14 +23,21 @@ "multipolygon", "combine" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -53,6 +58,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-concave/package.json b/packages/turf-concave/package.json index 9fc078e588..620f06b07f 100644 --- a/packages/turf-concave/package.json +++ b/packages/turf-concave/package.json @@ -33,14 +33,21 @@ "concave", "geometry" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -49,9 +56,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -66,6 +71,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-convex/package.json b/packages/turf-convex/package.json index 1f23080ff4..84611a2834 100644 --- a/packages/turf-convex/package.json +++ b/packages/turf-convex/package.json @@ -20,14 +20,21 @@ "turf", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -36,9 +43,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -53,6 +58,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-destination/package.json b/packages/turf-destination/package.json index 67694f5146..67b09bed09 100644 --- a/packages/turf-destination/package.json +++ b/packages/turf-destination/package.json @@ -24,14 +24,21 @@ "miles", "km" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -57,6 +62,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-difference/package.json b/packages/turf-difference/package.json index 45610f432a..3e53c36ac2 100644 --- a/packages/turf-difference/package.json +++ b/packages/turf-difference/package.json @@ -20,14 +20,21 @@ "turf", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -37,7 +44,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -47,8 +54,8 @@ "glob": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-directional-mean/package.json b/packages/turf-directional-mean/package.json index 997cad1f17..b5162ec9b4 100644 --- a/packages/turf-directional-mean/package.json +++ b/packages/turf-directional-mean/package.json @@ -23,14 +23,21 @@ "turf", "directional-mean" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-dissolve/package.json b/packages/turf-dissolve/package.json index 152266c86d..cdd1971ae0 100644 --- a/packages/turf-dissolve/package.json +++ b/packages/turf-dissolve/package.json @@ -23,14 +23,21 @@ "geojson", "polygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -49,8 +56,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-distance-weight/package.json b/packages/turf-distance-weight/package.json index 87cc6a911e..5bf11e041a 100644 --- a/packages/turf-distance-weight/package.json +++ b/packages/turf-distance-weight/package.json @@ -23,14 +23,21 @@ "turf", "distance-weight" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-distance/package.json b/packages/turf-distance/package.json index 416b100ec4..4b6c6f7e59 100644 --- a/packages/turf-distance/package.json +++ b/packages/turf-distance/package.json @@ -22,14 +22,21 @@ "miles", "km" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -38,9 +45,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -53,6 +58,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-ellipse/package.json b/packages/turf-ellipse/package.json index 0d0547da38..2bfd42d580 100644 --- a/packages/turf-ellipse/package.json +++ b/packages/turf-ellipse/package.json @@ -23,14 +23,21 @@ "turf", "ellipse" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -55,8 +62,8 @@ "glob": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-envelope/package.json b/packages/turf-envelope/package.json index 7bcc9679fa..7f78441377 100644 --- a/packages/turf-envelope/package.json +++ b/packages/turf-envelope/package.json @@ -23,14 +23,21 @@ "polygon", "extent" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -49,8 +56,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/bbox": "^6.5.0", diff --git a/packages/turf-explode/package.json b/packages/turf-explode/package.json index a029c5fd71..894b8dbf1c 100644 --- a/packages/turf-explode/package.json +++ b/packages/turf-explode/package.json @@ -22,14 +22,21 @@ "geospatial", "coordinates" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,7 +46,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -49,8 +56,8 @@ "geojson-fixtures": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-flatten/package.json b/packages/turf-flatten/package.json index cfeda1b6ad..b2db73ab5f 100644 --- a/packages/turf-flatten/package.json +++ b/packages/turf-flatten/package.json @@ -27,14 +27,21 @@ "gis", "featurecollection" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,7 +51,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -54,8 +61,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-flip/package.json b/packages/turf-flip/package.json index 38ecf204fb..1b0fea30a8 100644 --- a/packages/turf-flip/package.json +++ b/packages/turf-flip/package.json @@ -22,14 +22,21 @@ "coordinate", "flip" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,7 +46,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -49,8 +56,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-great-circle/package.json b/packages/turf-great-circle/package.json index 151d2cace4..78372d9a16 100644 --- a/packages/turf-great-circle/package.json +++ b/packages/turf-great-circle/package.json @@ -28,14 +28,21 @@ "great", "circle" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,7 +52,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -56,8 +63,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-helpers/package.json b/packages/turf-helpers/package.json index 8257fd0cbf..40e9e868d2 100644 --- a/packages/turf-helpers/package.json +++ b/packages/turf-helpers/package.json @@ -28,14 +28,21 @@ "turf", "geojson" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,9 +51,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" } } diff --git a/packages/turf-helpers/tsconfig.json b/packages/turf-helpers/tsconfig.json index 1100f70e6c..db60909e5b 100644 --- a/packages/turf-helpers/tsconfig.json +++ b/packages/turf-helpers/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "../../tsconfig.shared.json", - "compilerOptions": { - "outDir": "dist/js" - }, - "files": ["index.ts", "lib/geojson.ts"] + "files": [ + "index.ts", + "lib/geojson.ts" + ] } diff --git a/packages/turf-hex-grid/package.json b/packages/turf-hex-grid/package.json index f56d65f2b6..a43a9d8fb0 100644 --- a/packages/turf-hex-grid/package.json +++ b/packages/turf-hex-grid/package.json @@ -32,14 +32,21 @@ "points", "geojson" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -48,9 +55,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -66,6 +71,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-interpolate/package.json b/packages/turf-interpolate/package.json index 3e31b8063a..5262e118a2 100644 --- a/packages/turf-interpolate/package.json +++ b/packages/turf-interpolate/package.json @@ -24,14 +24,21 @@ "idw", "interpolate" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -41,7 +48,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -53,8 +60,8 @@ "chromatism": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-intersect/package.json b/packages/turf-intersect/package.json index 2a6ed19974..72b6c81229 100644 --- a/packages/turf-intersect/package.json +++ b/packages/turf-intersect/package.json @@ -21,14 +21,21 @@ "gis", "intersect" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -37,9 +44,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-invariant/package.json b/packages/turf-invariant/package.json index 15746e13f5..71131791be 100644 --- a/packages/turf-invariant/package.json +++ b/packages/turf-invariant/package.json @@ -25,14 +25,21 @@ "invariant", "expectations" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -41,9 +48,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-isobands/package.json b/packages/turf-isobands/package.json index 2bd24cb9c6..900236fc45 100644 --- a/packages/turf-isobands/package.json +++ b/packages/turf-isobands/package.json @@ -28,14 +28,21 @@ "topography", "filled" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,7 +52,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -61,8 +68,8 @@ "load-json-file": "*", "matrix-to-grid": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-isolines/package.json b/packages/turf-isolines/package.json index 81cf4580c0..4204b5d979 100644 --- a/packages/turf-isolines/package.json +++ b/packages/turf-isolines/package.json @@ -27,14 +27,21 @@ "elevation", "topography" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,7 +51,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -60,8 +67,8 @@ "load-json-file": "*", "matrix-to-grid": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-kinks/package.json b/packages/turf-kinks/package.json index a57d676f89..e244954d45 100644 --- a/packages/turf-kinks/package.json +++ b/packages/turf-kinks/package.json @@ -21,14 +21,21 @@ "kinks", "self-intersection" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -37,9 +44,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -52,6 +57,7 @@ "npm-run-all": "*", "tape": "*", "ts-node": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-length/package.json b/packages/turf-length/package.json index 4f3de40834..574cb62258 100644 --- a/packages/turf-length/package.json +++ b/packages/turf-length/package.json @@ -28,14 +28,21 @@ "units", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,9 +51,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-line-arc/package.json b/packages/turf-line-arc/package.json index 4d16d49a5a..9b9673b86f 100644 --- a/packages/turf-line-arc/package.json +++ b/packages/turf-line-arc/package.json @@ -20,14 +20,21 @@ "turf", "gif" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -36,9 +43,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -51,6 +56,7 @@ "npm-run-all": "*", "tape": "*", "ts-node": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-line-chunk/package.json b/packages/turf-line-chunk/package.json index bc49a36a67..6e1b40434a 100644 --- a/packages/turf-line-chunk/package.json +++ b/packages/turf-line-chunk/package.json @@ -29,14 +29,21 @@ "linestring", "line segment" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -46,7 +53,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -57,8 +64,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-intersect/package.json b/packages/turf-line-intersect/package.json index cede23fbd8..2a5d69b0cb 100644 --- a/packages/turf-line-intersect/package.json +++ b/packages/turf-line-intersect/package.json @@ -27,14 +27,21 @@ "line", "intersect" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,9 +50,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-line-offset/package.json b/packages/turf-line-offset/package.json index 9e6341e7ac..1d900b55cc 100644 --- a/packages/turf-line-offset/package.json +++ b/packages/turf-line-offset/package.json @@ -27,14 +27,21 @@ "turf", "offset" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,7 +51,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -55,8 +62,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-overlap/package.json b/packages/turf-line-overlap/package.json index 46c514c850..0584758083 100644 --- a/packages/turf-line-overlap/package.json +++ b/packages/turf-line-overlap/package.json @@ -26,14 +26,21 @@ "line", "overlap" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-line-segment/package.json b/packages/turf-line-segment/package.json index 45522f9b66..15d57b6a35 100644 --- a/packages/turf-line-segment/package.json +++ b/packages/turf-line-segment/package.json @@ -21,14 +21,21 @@ "line", "segment" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -37,9 +44,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -52,6 +57,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-line-slice-along/package.json b/packages/turf-line-slice-along/package.json index 1a3ee20edd..21b7d4c78e 100644 --- a/packages/turf-line-slice-along/package.json +++ b/packages/turf-line-slice-along/package.json @@ -21,14 +21,21 @@ "along", "line-slice" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -38,7 +45,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -48,8 +55,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/bearing": "^6.5.0", diff --git a/packages/turf-line-slice/package.json b/packages/turf-line-slice/package.json index e5b7b948e1..2bc5de1623 100644 --- a/packages/turf-line-slice/package.json +++ b/packages/turf-line-slice/package.json @@ -25,14 +25,21 @@ "line", "distance" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,7 +49,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -52,8 +59,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-split/package.json b/packages/turf-line-split/package.json index 53448e2dca..a4ebcce342 100644 --- a/packages/turf-line-split/package.json +++ b/packages/turf-line-split/package.json @@ -26,14 +26,21 @@ "line", "split" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,7 +50,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -52,8 +59,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-to-polygon/package.json b/packages/turf-line-to-polygon/package.json index 4d0be3e015..6dd7cfa560 100644 --- a/packages/turf-line-to-polygon/package.json +++ b/packages/turf-line-to-polygon/package.json @@ -26,14 +26,21 @@ "linestring", "line" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-mask/package.json b/packages/turf-mask/package.json index bb18812ab3..df3836cbfe 100644 --- a/packages/turf-mask/package.json +++ b/packages/turf-mask/package.json @@ -21,14 +21,21 @@ "mask", "polygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -38,7 +45,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -49,8 +56,8 @@ "load-json-file": "*", "mkdirp": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-meta/package.json b/packages/turf-meta/package.json index e164dc63ba..fa3c1d40c6 100644 --- a/packages/turf-meta/package.json +++ b/packages/turf-meta/package.json @@ -43,14 +43,21 @@ "lineEeach", "lineReduce" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -60,7 +67,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -70,8 +77,8 @@ "@turf/random": "^6.5.0", "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/helpers": "^6.5.0" diff --git a/packages/turf-midpoint/package.json b/packages/turf-midpoint/package.json index eb971a0d68..b408084fb1 100644 --- a/packages/turf-midpoint/package.json +++ b/packages/turf-midpoint/package.json @@ -23,14 +23,21 @@ "geojson", "line" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -48,8 +55,8 @@ "devDependencies": { "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/bearing": "^6.5.0", diff --git a/packages/turf-moran-index/package.json b/packages/turf-moran-index/package.json index cd6e75c621..b22768282e 100644 --- a/packages/turf-moran-index/package.json +++ b/packages/turf-moran-index/package.json @@ -23,14 +23,21 @@ "turf", "moran-index" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-nearest-neighbor-analysis/package.json b/packages/turf-nearest-neighbor-analysis/package.json index cad532e3bb..d96db73ff7 100644 --- a/packages/turf-nearest-neighbor-analysis/package.json +++ b/packages/turf-nearest-neighbor-analysis/package.json @@ -23,14 +23,21 @@ "turf", "nearest-neighbor" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-nearest-point-on-line/package.json b/packages/turf-nearest-point-on-line/package.json index 816c5a6708..a2e8329824 100644 --- a/packages/turf-nearest-point-on-line/package.json +++ b/packages/turf-nearest-point-on-line/package.json @@ -16,14 +16,21 @@ "publishConfig": { "access": "public" }, - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -32,9 +39,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -51,6 +56,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-nearest-point-to-line/package.json b/packages/turf-nearest-point-to-line/package.json index cb9803d407..1479bc281b 100644 --- a/packages/turf-nearest-point-to-line/package.json +++ b/packages/turf-nearest-point-to-line/package.json @@ -26,14 +26,21 @@ "near", "nearest-point-to-line" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -61,6 +66,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-nearest-point/package.json b/packages/turf-nearest-point/package.json index 12e001e5b3..ccb84f5e52 100644 --- a/packages/turf-nearest-point/package.json +++ b/packages/turf-nearest-point/package.json @@ -24,14 +24,21 @@ "nearest", "point" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-planepoint/package.json b/packages/turf-planepoint/package.json index 56093251a7..0a97d219b7 100644 --- a/packages/turf-planepoint/package.json +++ b/packages/turf-planepoint/package.json @@ -23,14 +23,21 @@ "point", "interpolation" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -49,8 +56,8 @@ "devDependencies": { "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/helpers": "^6.5.0", diff --git a/packages/turf-point-grid/package.json b/packages/turf-point-grid/package.json index b53a80f038..cd00817336 100644 --- a/packages/turf-point-grid/package.json +++ b/packages/turf-point-grid/package.json @@ -26,14 +26,21 @@ "points", "geojson" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -60,6 +65,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-point-on-feature/package.json b/packages/turf-point-on-feature/package.json index 0b597fb3f4..1ed90c22a4 100644 --- a/packages/turf-point-on-feature/package.json +++ b/packages/turf-point-on-feature/package.json @@ -24,14 +24,21 @@ "surface", "polygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -41,7 +48,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -51,8 +58,8 @@ "@turf/truncate": "^6.5.0", "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/boolean-point-in-polygon": "^6.5.0", diff --git a/packages/turf-point-to-line-distance/package.json b/packages/turf-point-to-line-distance/package.json index 1d4b73df74..11281ba141 100644 --- a/packages/turf-point-to-line-distance/package.json +++ b/packages/turf-point-to-line-distance/package.json @@ -24,14 +24,21 @@ "point-to-line-distance", "distance" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -57,6 +62,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-points-within-polygon/package.json b/packages/turf-points-within-polygon/package.json index a81f5c723c..abb4961a37 100644 --- a/packages/turf-points-within-polygon/package.json +++ b/packages/turf-points-within-polygon/package.json @@ -23,14 +23,21 @@ "polygon", "featurecollection" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -49,8 +56,8 @@ "devDependencies": { "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/boolean-point-in-polygon": "^6.5.0", diff --git a/packages/turf-polygon-smooth/package.json b/packages/turf-polygon-smooth/package.json index a468b198e1..6712695dfd 100644 --- a/packages/turf-polygon-smooth/package.json +++ b/packages/turf-polygon-smooth/package.json @@ -24,14 +24,21 @@ "geojson", "polygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -41,7 +48,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -52,8 +59,8 @@ "glob": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-polygon-tangents/package.json b/packages/turf-polygon-tangents/package.json index 917cf838a4..6091a6023c 100644 --- a/packages/turf-polygon-tangents/package.json +++ b/packages/turf-polygon-tangents/package.json @@ -27,14 +27,21 @@ "tangent", "polygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,7 +51,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -54,8 +61,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-polygon-to-line/package.json b/packages/turf-polygon-to-line/package.json index 0fac75912a..de99d91fc1 100644 --- a/packages/turf-polygon-to-line/package.json +++ b/packages/turf-polygon-to-line/package.json @@ -23,14 +23,21 @@ "linestring", "polygon" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-polygonize/package.json b/packages/turf-polygonize/package.json index 37c9225709..096eba5977 100644 --- a/packages/turf-polygonize/package.json +++ b/packages/turf-polygonize/package.json @@ -26,14 +26,21 @@ "gis", "polygonize" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -54,9 +59,9 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", "ts-node": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-projection/package.json b/packages/turf-projection/package.json index 3133d0a5b0..affec762be 100644 --- a/packages/turf-projection/package.json +++ b/packages/turf-projection/package.json @@ -34,14 +34,21 @@ "EPSG:900913", "EPSG:102113" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -50,9 +57,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -68,6 +73,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-quadrat-analysis/package.json b/packages/turf-quadrat-analysis/package.json index 25f82c058e..ed77c04ec9 100644 --- a/packages/turf-quadrat-analysis/package.json +++ b/packages/turf-quadrat-analysis/package.json @@ -23,14 +23,21 @@ "turf", "quadrat-analysis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-random/package.json b/packages/turf-random/package.json index 59c654c14a..a356de1a43 100644 --- a/packages/turf-random/package.json +++ b/packages/turf-random/package.json @@ -20,14 +20,21 @@ "turf", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -36,9 +43,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -51,6 +56,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-rectangle-grid/package.json b/packages/turf-rectangle-grid/package.json index fffa652434..56d25dcf16 100644 --- a/packages/turf-rectangle-grid/package.json +++ b/packages/turf-rectangle-grid/package.json @@ -26,14 +26,21 @@ "regular", "cartesian" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,9 +49,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -55,9 +60,9 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", "ts-node": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-rewind/package.json b/packages/turf-rewind/package.json index 0cf9938c90..38748c95c6 100644 --- a/packages/turf-rewind/package.json +++ b/packages/turf-rewind/package.json @@ -28,14 +28,21 @@ "polygon", "rewind" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,7 +52,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -55,8 +62,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-rhumb-bearing/package.json b/packages/turf-rhumb-bearing/package.json index b614ea19b3..a683522342 100644 --- a/packages/turf-rhumb-bearing/package.json +++ b/packages/turf-rhumb-bearing/package.json @@ -28,14 +28,21 @@ "rhumb", "rhumb line" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -44,9 +51,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -59,6 +64,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-rhumb-destination/package.json b/packages/turf-rhumb-destination/package.json index 1bef1bbd51..d543effee1 100644 --- a/packages/turf-rhumb-destination/package.json +++ b/packages/turf-rhumb-destination/package.json @@ -32,14 +32,21 @@ "miles", "km" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -48,9 +55,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -64,6 +69,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-rhumb-distance/package.json b/packages/turf-rhumb-distance/package.json index 6e422007eb..5ed5893e67 100644 --- a/packages/turf-rhumb-distance/package.json +++ b/packages/turf-rhumb-distance/package.json @@ -30,14 +30,21 @@ "miles", "km" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -46,9 +53,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -62,6 +67,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-sample/package.json b/packages/turf-sample/package.json index 63beb30c72..31eab7797c 100644 --- a/packages/turf-sample/package.json +++ b/packages/turf-sample/package.json @@ -22,14 +22,21 @@ "sample", "turf" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,7 +46,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -47,8 +54,8 @@ "devDependencies": { "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/helpers": "^6.5.0" diff --git a/packages/turf-sector/package.json b/packages/turf-sector/package.json index 28e65d964c..e09310653d 100644 --- a/packages/turf-sector/package.json +++ b/packages/turf-sector/package.json @@ -20,14 +20,21 @@ "turf", "gif" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -37,7 +44,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -48,8 +55,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-shortest-path/package.json b/packages/turf-shortest-path/package.json index 20c87138a2..0d1ebb87ff 100644 --- a/packages/turf-shortest-path/package.json +++ b/packages/turf-shortest-path/package.json @@ -25,14 +25,21 @@ "shortest-path", "path" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,7 +49,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -53,8 +60,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-simplify/package.json b/packages/turf-simplify/package.json index 82afec2e55..c1d5b3f935 100644 --- a/packages/turf-simplify/package.json +++ b/packages/turf-simplify/package.json @@ -28,14 +28,21 @@ "algorithm", "peucker" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,7 +52,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -56,8 +63,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-square-grid/package.json b/packages/turf-square-grid/package.json index 95adc29b71..a347dd5c10 100644 --- a/packages/turf-square-grid/package.json +++ b/packages/turf-square-grid/package.json @@ -23,14 +23,21 @@ "cartesian", "grid" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,9 +46,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js" @@ -55,6 +60,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-square/package.json b/packages/turf-square/package.json index 365b423092..5fef7c0cda 100644 --- a/packages/turf-square/package.json +++ b/packages/turf-square/package.json @@ -22,14 +22,21 @@ "geojson", "extent" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -39,7 +46,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -47,8 +54,8 @@ "devDependencies": { "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/distance": "^6.5.0", diff --git a/packages/turf-standard-deviational-ellipse/package.json b/packages/turf-standard-deviational-ellipse/package.json index be51b26161..f54d7b689b 100644 --- a/packages/turf-standard-deviational-ellipse/package.json +++ b/packages/turf-standard-deviational-ellipse/package.json @@ -25,14 +25,21 @@ "geostatistics", "directional distribution" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -42,7 +49,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -54,8 +61,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-tag/package.json b/packages/turf-tag/package.json index 3fc3e3c9f1..8415ef39c9 100644 --- a/packages/turf-tag/package.json +++ b/packages/turf-tag/package.json @@ -26,14 +26,21 @@ "data", "analysis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,7 +50,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -52,8 +59,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/boolean-point-in-polygon": "^6.5.0", diff --git a/packages/turf-tesselate/package.json b/packages/turf-tesselate/package.json index 5875c917dd..72d8c8edd0 100644 --- a/packages/turf-tesselate/package.json +++ b/packages/turf-tesselate/package.json @@ -30,14 +30,21 @@ "polygon", "triangles" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -47,7 +54,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -55,8 +62,8 @@ "devDependencies": { "benchmark": "*", "npm-run-all": "*", - "rollup": "*", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/helpers": "^6.5.0", diff --git a/packages/turf-tin/package.json b/packages/turf-tin/package.json index e3609f1959..ee71ca3c74 100644 --- a/packages/turf-tin/package.json +++ b/packages/turf-tin/package.json @@ -21,14 +21,21 @@ "tin", "triangulate" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -37,9 +44,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -52,6 +57,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*" }, "dependencies": { diff --git a/packages/turf-transform-rotate/package.json b/packages/turf-transform-rotate/package.json index 19b79a4dba..9d4ae4effb 100644 --- a/packages/turf-transform-rotate/package.json +++ b/packages/turf-transform-rotate/package.json @@ -26,14 +26,21 @@ "transformation", "rotate" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -43,7 +50,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -54,8 +61,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-transform-scale/package.json b/packages/turf-transform-scale/package.json index 229217bba3..ed295e86e2 100644 --- a/packages/turf-transform-scale/package.json +++ b/packages/turf-transform-scale/package.json @@ -30,14 +30,21 @@ "zoom-in", "zoom-out" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -47,7 +54,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -60,8 +67,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-transform-translate/package.json b/packages/turf-transform-translate/package.json index f79eeafe0b..9b5b99f7ec 100644 --- a/packages/turf-transform-translate/package.json +++ b/packages/turf-transform-translate/package.json @@ -28,14 +28,21 @@ "move", "shift" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -45,7 +52,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -56,8 +63,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-triangle-grid/package.json b/packages/turf-triangle-grid/package.json index 9bae2c24c6..35fafdc7ae 100644 --- a/packages/turf-triangle-grid/package.json +++ b/packages/turf-triangle-grid/package.json @@ -24,14 +24,21 @@ "analysis", "gis" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,9 +47,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -58,6 +63,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-truncate/package.json b/packages/turf-truncate/package.json index db38955bc7..6c23ad09b1 100644 --- a/packages/turf-truncate/package.json +++ b/packages/turf-truncate/package.json @@ -25,14 +25,21 @@ "gis", "truncate" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -41,9 +48,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -57,6 +62,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-union/package.json b/packages/turf-union/package.json index f3465ba39e..bd956523e0 100644 --- a/packages/turf-union/package.json +++ b/packages/turf-union/package.json @@ -20,14 +20,21 @@ "turf", "gif" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "dist/js/index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -36,9 +43,7 @@ ], "scripts": { "bench": "ts-node bench.js", - "build": "npm-run-all build:*", - "build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json", - "build:js": "tsc", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "ts-node -r esm test.js", @@ -54,6 +59,7 @@ "tape": "*", "ts-node": "*", "tslint": "*", + "tsup": "^8.0.1", "typescript": "*", "write-json-file": "*" }, diff --git a/packages/turf-unkink-polygon/package.json b/packages/turf-unkink-polygon/package.json index 883ce87f57..67ee619f5d 100644 --- a/packages/turf-unkink-polygon/package.json +++ b/packages/turf-unkink-polygon/package.json @@ -23,14 +23,21 @@ "polygon", "self-intersection" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -40,7 +47,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js", @@ -51,8 +58,8 @@ "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-voronoi/package.json b/packages/turf-voronoi/package.json index 1cdab4c243..aa1086478a 100644 --- a/packages/turf-voronoi/package.json +++ b/packages/turf-voronoi/package.json @@ -29,14 +29,21 @@ "polygons", "points" ], - "main": "dist/js/index.js", - "module": "dist/es/index.js", - "types": "index.d.ts", + "type": "commonjs", + "main": "dist/cjs/index.js", + "module": "dist/esm/index.mjs", + "types": "dist/cjs/index.d.ts", "exports": { "./package.json": "./package.json", ".": { - "import": "./dist/es/index.js", - "require": "./dist/js/index.js" + "import": { + "types": "./dist/esm/index.d.mts", + "default": "./dist/esm/index.mjs" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } } }, "sideEffects": false, @@ -46,7 +53,7 @@ ], "scripts": { "bench": "node -r esm bench.js", - "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", + "build": "tsup --config ../../tsup.config.ts", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", "test:tape": "node -r esm test.js" @@ -56,8 +63,8 @@ "glob": "*", "load-json-file": "*", "npm-run-all": "*", - "rollup": "*", "tape": "*", + "tsup": "^8.0.1", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf/package.json b/packages/turf/package.json index 767b75201e..cfaca356da 100644 --- a/packages/turf/package.json +++ b/packages/turf/package.json @@ -75,7 +75,8 @@ "glob": "*", "rollup": "^2.34.2", "rollup-plugin-terser": "^7.0.2", - "tape": "*" + "tape": "*", + "tsup": "^8.0.1" }, "dependencies": { "@turf/along": "^6.5.0", diff --git a/tsconfig.shared.json b/tsconfig.shared.json index e351d2abb2..bd304fff02 100644 --- a/tsconfig.shared.json +++ b/tsconfig.shared.json @@ -1,10 +1,10 @@ { "compilerOptions": { - "target": "es5", - "module": "commonjs", + "target": "es2017", + "module": "es2022", "declaration": true, "esModuleInterop": true, "strict": true, - "moduleResolution": "node" + "moduleResolution": "node16" } } diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000000..2f4528c8e1 --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,31 @@ +import { defineConfig, Options } from "tsup"; +import path from "path"; + +const baseOptions: Options = { + clean: true, + dts: true, + entry: ["index.?s"], // while we have a mix of TS and JS packages + minify: false, + skipNodeModulesBundle: true, + sourcemap: true, + target: "es2017", + // If this file is missing, compilation fails. Seems to work fine without + tsconfig: path.resolve(__dirname, "./tsconfig.shared.json"), + keepNames: true, + // treeshake: true, causes "chunk.default" warning, breaks CJS exports? + cjsInterop: true, + splitting: true, +}; + +export default [ + defineConfig({ + ...baseOptions, + outDir: "dist/cjs", + format: "cjs", + }), + defineConfig({ + ...baseOptions, + outDir: "dist/esm", + format: "esm", + }), +]; diff --git a/yarn.lock b/yarn.lock index ee122113b2..21060e95ef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -196,6 +196,121 @@ "@babel/helper-validator-identifier" "^7.14.5" to-fast-properties "^2.0.0" +"@esbuild/aix-ppc64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" + integrity sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA== + +"@esbuild/android-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz#7ad65a36cfdb7e0d429c353e00f680d737c2aed4" + integrity sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA== + +"@esbuild/android-arm@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.12.tgz#b0c26536f37776162ca8bde25e42040c203f2824" + integrity sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w== + +"@esbuild/android-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.12.tgz#cb13e2211282012194d89bf3bfe7721273473b3d" + integrity sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew== + +"@esbuild/darwin-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz#cbee41e988020d4b516e9d9e44dd29200996275e" + integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== + +"@esbuild/darwin-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz#e37d9633246d52aecf491ee916ece709f9d5f4cd" + integrity sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A== + +"@esbuild/freebsd-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz#1ee4d8b682ed363b08af74d1ea2b2b4dbba76487" + integrity sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA== + +"@esbuild/freebsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz#37a693553d42ff77cd7126764b535fb6cc28a11c" + integrity sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg== + +"@esbuild/linux-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz#be9b145985ec6c57470e0e051d887b09dddb2d4b" + integrity sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA== + +"@esbuild/linux-arm@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz#207ecd982a8db95f7b5279207d0ff2331acf5eef" + integrity sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w== + +"@esbuild/linux-ia32@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz#d0d86b5ca1562523dc284a6723293a52d5860601" + integrity sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA== + +"@esbuild/linux-loong64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz#9a37f87fec4b8408e682b528391fa22afd952299" + integrity sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA== + +"@esbuild/linux-mips64el@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz#4ddebd4e6eeba20b509d8e74c8e30d8ace0b89ec" + integrity sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w== + +"@esbuild/linux-ppc64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz#adb67dadb73656849f63cd522f5ecb351dd8dee8" + integrity sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg== + +"@esbuild/linux-riscv64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz#11bc0698bf0a2abf8727f1c7ace2112612c15adf" + integrity sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg== + +"@esbuild/linux-s390x@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz#e86fb8ffba7c5c92ba91fc3b27ed5a70196c3cc8" + integrity sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg== + +"@esbuild/linux-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz#5f37cfdc705aea687dfe5dfbec086a05acfe9c78" + integrity sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg== + +"@esbuild/netbsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz#29da566a75324e0d0dd7e47519ba2f7ef168657b" + integrity sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA== + +"@esbuild/openbsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz#306c0acbdb5a99c95be98bdd1d47c916e7dc3ff0" + integrity sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw== + +"@esbuild/sunos-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz#0933eaab9af8b9b2c930236f62aae3fc593faf30" + integrity sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA== + +"@esbuild/win32-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz#773bdbaa1971b36db2f6560088639ccd1e6773ae" + integrity sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A== + +"@esbuild/win32-ia32@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz#000516cad06354cc84a73f0943a4aa690ef6fd67" + integrity sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ== + +"@esbuild/win32-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz#c57c8afbb4054a3ab8317591a0b7320360b444ae" + integrity sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA== + "@eslint/eslintrc@^0.2.1": version "0.2.2" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.2.2.tgz#d01fc791e2fc33e88a29d6f3dc7e93d0cd784b76" @@ -212,6 +327,18 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@isaacs/cliui@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" + integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== + dependencies: + string-width "^5.1.2" + string-width-cjs "npm:string-width@^4.2.0" + strip-ansi "^7.0.1" + strip-ansi-cjs "npm:strip-ansi@^6.0.1" + wrap-ansi "^8.1.0" + wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" + "@jest/types@^24.9.0": version "24.9.0" resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" @@ -221,6 +348,38 @@ "@types/istanbul-reports" "^1.1.1" "@types/yargs" "^13.0.0" +"@jridgewell/gen-mapping@^0.3.2": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + +"@jridgewell/trace-mapping@^0.3.24": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@lerna/add@4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-4.0.0.tgz#c36f57d132502a57b9e7058d1548b7a565ef183f" @@ -1128,6 +1287,11 @@ dependencies: "@octokit/openapi-types" "^7.3.2" +"@pkgjs/parseargs@^0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" + integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== + "@rollup/plugin-commonjs@^17.0.0": version "17.0.0" resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-17.0.0.tgz#2ae2228354cf0fbba6cf9f06f30b2c66a974324c" @@ -1162,6 +1326,86 @@ estree-walker "^1.0.1" picomatch "^2.2.2" +"@rollup/rollup-android-arm-eabi@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.17.2.tgz#1a32112822660ee104c5dd3a7c595e26100d4c2d" + integrity sha512-NM0jFxY8bB8QLkoKxIQeObCaDlJKewVlIEkuyYKm5An1tdVZ966w2+MPQ2l8LBZLjR+SgyV+nRkTIunzOYBMLQ== + +"@rollup/rollup-android-arm64@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.17.2.tgz#5aeef206d65ff4db423f3a93f71af91b28662c5b" + integrity sha512-yeX/Usk7daNIVwkq2uGoq2BYJKZY1JfyLTaHO/jaiSwi/lsf8fTFoQW/n6IdAsx5tx+iotu2zCJwz8MxI6D/Bw== + +"@rollup/rollup-darwin-arm64@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.17.2.tgz#6b66aaf003c70454c292cd5f0236ebdc6ffbdf1a" + integrity sha512-kcMLpE6uCwls023+kknm71ug7MZOrtXo+y5p/tsg6jltpDtgQY1Eq5sGfHcQfb+lfuKwhBmEURDga9N0ol4YPw== + +"@rollup/rollup-darwin-x64@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.17.2.tgz#f64fc51ed12b19f883131ccbcea59fc68cbd6c0b" + integrity sha512-AtKwD0VEx0zWkL0ZjixEkp5tbNLzX+FCqGG1SvOu993HnSz4qDI6S4kGzubrEJAljpVkhRSlg5bzpV//E6ysTQ== + +"@rollup/rollup-linux-arm-gnueabihf@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.17.2.tgz#1a7641111be67c10111f7122d1e375d1226cbf14" + integrity sha512-3reX2fUHqN7sffBNqmEyMQVj/CKhIHZd4y631duy0hZqI8Qoqf6lTtmAKvJFYa6bhU95B1D0WgzHkmTg33In0A== + +"@rollup/rollup-linux-arm-musleabihf@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.17.2.tgz#c93fd632923e0fee25aacd2ae414288d0b7455bb" + integrity sha512-uSqpsp91mheRgw96xtyAGP9FW5ChctTFEoXP0r5FAzj/3ZRv3Uxjtc7taRQSaQM/q85KEKjKsZuiZM3GyUivRg== + +"@rollup/rollup-linux-arm64-gnu@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.17.2.tgz#fa531425dd21d058a630947527b4612d9d0b4a4a" + integrity sha512-EMMPHkiCRtE8Wdk3Qhtciq6BndLtstqZIroHiiGzB3C5LDJmIZcSzVtLRbwuXuUft1Cnv+9fxuDtDxz3k3EW2A== + +"@rollup/rollup-linux-arm64-musl@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.17.2.tgz#8acc16f095ceea5854caf7b07e73f7d1802ac5af" + integrity sha512-NMPylUUZ1i0z/xJUIx6VUhISZDRT+uTWpBcjdv0/zkp7b/bQDF+NfnfdzuTiB1G6HTodgoFa93hp0O1xl+/UbA== + +"@rollup/rollup-linux-powerpc64le-gnu@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.17.2.tgz#94e69a8499b5cf368911b83a44bb230782aeb571" + integrity sha512-T19My13y8uYXPw/L/k0JYaX1fJKFT/PWdXiHr8mTbXWxjVF1t+8Xl31DgBBvEKclw+1b00Chg0hxE2O7bTG7GQ== + +"@rollup/rollup-linux-riscv64-gnu@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.17.2.tgz#7ef1c781c7e59e85a6ce261cc95d7f1e0b56db0f" + integrity sha512-BOaNfthf3X3fOWAB+IJ9kxTgPmMqPPH5f5k2DcCsRrBIbWnaJCgX2ll77dV1TdSy9SaXTR5iDXRL8n7AnoP5cg== + +"@rollup/rollup-linux-s390x-gnu@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.17.2.tgz#f15775841c3232fca9b78cd25a7a0512c694b354" + integrity sha512-W0UP/x7bnn3xN2eYMql2T/+wpASLE5SjObXILTMPUBDB/Fg/FxC+gX4nvCfPBCbNhz51C+HcqQp2qQ4u25ok6g== + +"@rollup/rollup-linux-x64-gnu@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.17.2.tgz#b521d271798d037ad70c9f85dd97d25f8a52e811" + integrity sha512-Hy7pLwByUOuyaFC6mAr7m+oMC+V7qyifzs/nW2OJfC8H4hbCzOX07Ov0VFk/zP3kBsELWNFi7rJtgbKYsav9QQ== + +"@rollup/rollup-linux-x64-musl@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.17.2.tgz#9254019cc4baac35800991315d133cc9fd1bf385" + integrity sha512-h1+yTWeYbRdAyJ/jMiVw0l6fOOm/0D1vNLui9iPuqgRGnXA0u21gAqOyB5iHjlM9MMfNOm9RHCQ7zLIzT0x11Q== + +"@rollup/rollup-win32-arm64-msvc@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.17.2.tgz#27f65a89f6f52ee9426ec11e3571038e4671790f" + integrity sha512-tmdtXMfKAjy5+IQsVtDiCfqbynAQE/TQRpWdVataHmhMb9DCoJxp9vLcCBjEQWMiUYxO1QprH/HbY9ragCEFLA== + +"@rollup/rollup-win32-ia32-msvc@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.17.2.tgz#a2fbf8246ed0bb014f078ca34ae6b377a90cb411" + integrity sha512-7II/QCSTAHuE5vdZaQEwJq2ZACkBpQDOmQsE6D6XUbnBHW8IAhm4eTufL6msLJorzrHDFv3CF8oCA/hSIRuZeQ== + +"@rollup/rollup-win32-x64-msvc@4.17.2": + version "4.17.2" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.17.2.tgz#5a2d08b81e8064b34242d5cc9973ef8dd1e60503" + integrity sha512-TGGO7v7qOq4CYmSBVEYpI1Y5xDuCEnbVC5Vth8mOsW0gDSzxNrVERPc790IGHsrT2dQSimgMr9Ub3Y1Jci5/8w== + "@samverschueren/stream-to-observable@^0.3.0": version "0.3.0" resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f" @@ -1174,6 +1418,26 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + "@turf/helpers@5.x", "@turf/helpers@^5.1.5": version "5.1.5" resolved "https://registry.yarnpkg.com/@turf/helpers/-/helpers-5.1.5.tgz#153405227ab933d004a5bb9641a9ed999fcbe0cf" @@ -1215,6 +1479,11 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" integrity sha1-4Xfmme4bjCLSMXTKqnQiZEOJUJ8= +"@types/estree@1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" + integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== + "@types/events@*": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" @@ -1522,6 +1791,11 @@ acorn-walk@^7.0.0: resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== +acorn-walk@^8.1.1: + version "8.3.2" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.2.tgz#7703af9415f1b6db9315d6895503862e231d34aa" + integrity sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A== + acorn@^6.4.1: version "6.4.2" resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.2.tgz#35866fd710528e92de10cf06016498e47e39e1e6" @@ -1613,6 +1887,16 @@ ansi-regex@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" @@ -1631,6 +1915,11 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0: dependencies: color-convert "^2.0.1" +ansi-styles@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + ansi-styles@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178" @@ -1645,6 +1934,11 @@ any-observable@^0.3.0: resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.3.0.tgz#af933475e5806a67d0d7df090dd5e8bef65d119b" integrity sha512-/FQM1EDkTsf63Ub2C6O7GuYFDsSXUwsaZDurV0np41ocwq0jthUAYCmhBX9f+KwlaCgIuWyr/4WlUQUBfKfZog== +any-promise@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f" + integrity sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== + anymatch@~3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" @@ -1884,6 +2178,13 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + braces@^2.3.0: version "2.3.2" resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" @@ -1900,7 +2201,7 @@ braces@^2.3.0: split-string "^3.0.2" to-regex "^3.0.1" -braces@^3.0.1, braces@~3.0.2: +braces@^3.0.1, braces@^3.0.2, braces@~3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -1940,6 +2241,13 @@ builtins@^1.0.3: resolved "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" integrity sha1-y5T662HIaWRR2zZTThQi+U8K7og= +bundle-require@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bundle-require/-/bundle-require-4.1.0.tgz#3d5fcd19d5160d4cbac5e95ed5a394d1ecd40ce6" + integrity sha512-FeArRFM+ziGkRViKRnSTbHZc35dgmR9yNog05Kn0+ItI59pOAISGvnnIwW1WgFZQW59IxD9QpJnUPkdIPfZuXg== + dependencies: + load-tsconfig "^0.2.3" + byline@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/byline/-/byline-5.0.0.tgz#741c5216468eadc457b03410118ad77de8c1ddb1" @@ -1953,6 +2261,11 @@ bytes@1: version "1.0.0" resolved "https://registry.yarnpkg.com/bytes/-/bytes-1.0.0.tgz#3569ede8ba34315fab99c3e92cb04c7220de1fa8" +cac@^6.7.12: + version "6.7.14" + resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959" + integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ== + cacache@^15.0.5, cacache@^15.2.0: version "15.2.0" resolved "https://registry.yarnpkg.com/cacache/-/cacache-15.2.0.tgz#73af75f77c58e72d8c630a7a2858cb18ef523389" @@ -2128,6 +2441,21 @@ chokidar@^3.4.0: optionalDependencies: fsevents "~2.3.2" +chokidar@^3.5.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + chownr@^1.1.1: version "1.1.4" resolved "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" @@ -2349,7 +2677,7 @@ commander@2, commander@^2.12.1, commander@^2.20.0, commander@~2.20.3: resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== -commander@^4.0.1: +commander@^4.0.0, commander@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== @@ -2665,6 +2993,11 @@ cosmiconfig@^7.0.0: path-type "^4.0.0" yaml "^1.10.0" +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" @@ -2759,6 +3092,13 @@ debug@^2.2.0, debug@^2.3.3, debug@~2.6.7: dependencies: ms "2.0.0" +debug@^4.3.1: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + debuglog@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" @@ -3032,6 +3372,11 @@ earcut@^2.0.0: version "2.1.3" resolved "https://registry.yarnpkg.com/earcut/-/earcut-2.1.3.tgz#ca579545f351941af7c3d0df49c9f7d34af99b0c" +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== + ecc-jsbn@~0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" @@ -3059,6 +3404,11 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + emojis-list@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" @@ -3147,6 +3497,35 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" +esbuild@^0.19.2: + version "0.19.12" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04" + integrity sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg== + optionalDependencies: + "@esbuild/aix-ppc64" "0.19.12" + "@esbuild/android-arm" "0.19.12" + "@esbuild/android-arm64" "0.19.12" + "@esbuild/android-x64" "0.19.12" + "@esbuild/darwin-arm64" "0.19.12" + "@esbuild/darwin-x64" "0.19.12" + "@esbuild/freebsd-arm64" "0.19.12" + "@esbuild/freebsd-x64" "0.19.12" + "@esbuild/linux-arm" "0.19.12" + "@esbuild/linux-arm64" "0.19.12" + "@esbuild/linux-ia32" "0.19.12" + "@esbuild/linux-loong64" "0.19.12" + "@esbuild/linux-mips64el" "0.19.12" + "@esbuild/linux-ppc64" "0.19.12" + "@esbuild/linux-riscv64" "0.19.12" + "@esbuild/linux-s390x" "0.19.12" + "@esbuild/linux-x64" "0.19.12" + "@esbuild/netbsd-x64" "0.19.12" + "@esbuild/openbsd-x64" "0.19.12" + "@esbuild/sunos-x64" "0.19.12" + "@esbuild/win32-arm64" "0.19.12" + "@esbuild/win32-ia32" "0.19.12" + "@esbuild/win32-x64" "0.19.12" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -3425,6 +3804,17 @@ fast-glob@^3.0.3, fast-glob@^3.1.1: micromatch "^4.0.2" picomatch "^2.2.1" +fast-glob@^3.2.9: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" @@ -3567,6 +3957,14 @@ for-in@^1.0.2: resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= +foreground-child@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.1.1.tgz#1d173e776d75d2772fed08efe4a0de1ea1b12d0d" + integrity sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^4.0.1" + forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" @@ -3844,7 +4242,7 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" -glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@^5.1.1, glob-parent@~5.1.2: +glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@^5.1.1, glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== @@ -3878,6 +4276,17 @@ glob@*, glob@^7.0.0, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7 once "^1.3.0" path-is-absolute "^1.0.0" +glob@^10.3.10: + version "10.3.12" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.12.tgz#3a65c363c2e9998d220338e88a5f6ac97302960b" + integrity sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg== + dependencies: + foreground-child "^3.1.0" + jackspeak "^2.3.6" + minimatch "^9.0.1" + minipass "^7.0.4" + path-scurry "^1.10.2" + globals-docs@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/globals-docs/-/globals-docs-2.4.0.tgz#f2c647544eb6161c7c38452808e16e693c2dafbb" @@ -3920,6 +4329,18 @@ globby@^11.0.1, globby@^11.0.2: merge2 "^1.3.0" slash "^3.0.0" +globby@^11.0.3: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.3: version "4.2.6" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee" @@ -4192,6 +4613,11 @@ ignore@^5.1.1, ignore@^5.1.4: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== +ignore@^5.2.0: + version "5.3.1" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" + integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== + import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1: version "3.2.2" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.2.tgz#fc129c160c5d68235507f4331a6baad186bdbc3e" @@ -4662,6 +5088,15 @@ isstream@0.1.x, isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" +jackspeak@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8" + integrity sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + jest-diff@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.9.0.tgz#931b7d0d5778a1baf7452cb816e325e3724055da" @@ -4686,6 +5121,11 @@ jest-worker@^26.2.1: merge-stream "^2.0.0" supports-color "^7.0.0" +joycon@^3.0.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/joycon/-/joycon-3.1.1.tgz#bce8596d6ae808f8b68168f5fc69280996894f03" + integrity sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw== + js-tokens@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" @@ -4892,6 +5332,11 @@ libnpmpublish@^4.0.0: semver "^7.1.3" ssri "^8.0.1" +lilconfig@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.1.tgz#9d8a246fa753106cfc205fd2d77042faca56e5e3" + integrity sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ== + lines-and-columns@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" @@ -4993,6 +5438,11 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" +load-tsconfig@^0.2.3: + version "0.2.5" + resolved "https://registry.yarnpkg.com/load-tsconfig/-/load-tsconfig-0.2.5.tgz#453b8cd8961bfb912dea77eb6c168fe8cca3d3a1" + integrity sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg== + loader-utils@^1.1.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" @@ -5065,6 +5515,11 @@ lodash.padstart@^4.1.0: resolved "https://registry.yarnpkg.com/lodash.padstart/-/lodash.padstart-4.6.1.tgz#d2e3eebff0d9d39ad50f5cbd1b52a7bce6bb611b" integrity sha1-0uPuv/DZ05rVD1y9G1KnvOa7YRs= +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + lodash.template@^4.5.0: version "4.5.0" resolved "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" @@ -5123,6 +5578,11 @@ loud-rejection@^1.0.0: currently-unhandled "^0.4.1" signal-exit "^3.0.0" +lru-cache@^10.2.0: + version "10.2.2" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.2.tgz#48206bc114c1252940c41b25b41af5b545aca878" + integrity sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -5423,6 +5883,11 @@ merge2@^1.2.3, merge2@^1.3.0: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz#5b366ee83b2f1582c48f87e47cf1a9352103ca81" integrity sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw== +merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + mgrs@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/mgrs/-/mgrs-1.0.0.tgz#fb91588e78c90025672395cb40b25f7cd6ad1829" @@ -5506,6 +5971,14 @@ micromatch@^4.0.2: braces "^3.0.1" picomatch "^2.0.5" +micromatch@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + micromist@1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/micromist/-/micromist-1.1.0.tgz#a490bcf9a4b918ad9eed8e52d0ec98b9c3b2d3c8" @@ -5549,6 +6022,13 @@ minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" +minimatch@^9.0.1: + version "9.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.4.tgz#8e49c731d1749cbec05050ee5145147b32496a51" + integrity sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw== + dependencies: + brace-expansion "^2.0.1" + minimist-options@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" @@ -5633,6 +6113,11 @@ minipass@^3.0.0, minipass@^3.1.0, minipass@^3.1.1, minipass@^3.1.3: dependencies: yallist "^4.0.0" +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.0.4.tgz#dbce03740f50a4786ba994c1fb908844d27b038c" + integrity sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ== + minizlib@^1.2.1: version "1.3.3" resolved "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d" @@ -5750,6 +6235,15 @@ mute-stream@0.0.8, mute-stream@~0.0.4: resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== +mz@^2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" + integrity sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== + dependencies: + any-promise "^1.0.0" + object-assign "^4.0.1" + thenify-all "^1.0.0" + nanoid@^3.1.23: version "3.1.23" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81" @@ -6420,6 +6914,14 @@ path-root@^0.1.1: dependencies: path-root-regex "^0.1.0" +path-scurry@^1.10.2: + version "1.10.2" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.2.tgz#8f6357eb1239d5fa1da8b9f70e9c080675458ba7" + integrity sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA== + dependencies: + lru-cache "^10.2.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + path-type@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" @@ -6449,6 +6951,11 @@ picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1, picomatch@^2.2.2: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== +picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + pidtree@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.3.0.tgz#f6fada10fccc9f99bf50e90d0b23d72c9ebc2e6b" @@ -6482,6 +6989,11 @@ pinkie@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" +pirates@^4.0.1: + version "4.0.6" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" + integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== + pkg-dir@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" @@ -6521,6 +7033,14 @@ posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" +postcss-load-config@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-4.0.2.tgz#7159dcf626118d33e299f485d6afe4aff7c4a3e3" + integrity sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ== + dependencies: + lilconfig "^3.0.0" + yaml "^2.3.4" + postcss-modules-extract-imports@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d" @@ -7241,13 +7761,38 @@ rollup-plugin-terser@^7.0.2: serialize-javascript "^4.0.0" terser "^5.0.0" -rollup@*, rollup@^2.34.2: +rollup@^2.34.2: version "2.34.2" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.34.2.tgz#fa73e05c64df587e9ed4dc80d7d4e7d4a43f8908" integrity sha1-+nPgXGTfWH6e1NyA19Tn1KQ/iQg= optionalDependencies: fsevents "~2.1.2" +rollup@^4.0.2: + version "4.17.2" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.17.2.tgz#26d1785d0144122277fdb20ab3a24729ae68301f" + integrity sha512-/9ClTJPByC0U4zNLowV1tMBe8yMEAxewtR3cUNX5BoEpGH3dQEWpJLr6CLp0fPdYRF/fzVOgvDb1zXuakwF5kQ== + dependencies: + "@types/estree" "1.0.5" + optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.17.2" + "@rollup/rollup-android-arm64" "4.17.2" + "@rollup/rollup-darwin-arm64" "4.17.2" + "@rollup/rollup-darwin-x64" "4.17.2" + "@rollup/rollup-linux-arm-gnueabihf" "4.17.2" + "@rollup/rollup-linux-arm-musleabihf" "4.17.2" + "@rollup/rollup-linux-arm64-gnu" "4.17.2" + "@rollup/rollup-linux-arm64-musl" "4.17.2" + "@rollup/rollup-linux-powerpc64le-gnu" "4.17.2" + "@rollup/rollup-linux-riscv64-gnu" "4.17.2" + "@rollup/rollup-linux-s390x-gnu" "4.17.2" + "@rollup/rollup-linux-x64-gnu" "4.17.2" + "@rollup/rollup-linux-x64-musl" "4.17.2" + "@rollup/rollup-win32-arm64-msvc" "4.17.2" + "@rollup/rollup-win32-ia32-msvc" "4.17.2" + "@rollup/rollup-win32-x64-msvc" "4.17.2" + fsevents "~2.3.2" + run-async@^2.2.0, run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" @@ -7395,6 +7940,11 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== +signal-exit@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + skmeans@0.9.7: version "0.9.7" resolved "https://registry.yarnpkg.com/skmeans/-/skmeans-0.9.7.tgz#72670cebb728508f56e29c0e10d11e623529ce5d" @@ -7517,6 +8067,13 @@ source-map-url@^0.4.0: resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== +source-map@0.8.0-beta.0: + version "0.8.0-beta.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.8.0-beta.0.tgz#d4c1bb42c3f7ee925f005927ba10709e0d1d1f11" + integrity sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA== + dependencies: + whatwg-url "^7.0.0" + source-map@^0.5.0, source-map@^0.5.6: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" @@ -7692,6 +8249,15 @@ string-template@~0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add" +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + string-width@^1.0.0, string-width@^1.0.1, string-width@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" @@ -7725,6 +8291,15 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" +string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== + dependencies: + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" + string.prototype.padend@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/string.prototype.padend/-/string.prototype.padend-3.1.0.tgz#dc08f57a8010dc5c153550318f67e13adbb72ac3" @@ -7798,6 +8373,13 @@ stringify-package@^1.0.1: resolved "https://registry.yarnpkg.com/stringify-package/-/stringify-package-1.0.1.tgz#e5aa3643e7f74d0f28628b72f3dad5cecfc3ba85" integrity sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg== +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + strip-ansi@^3.0.0, strip-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" @@ -7824,6 +8406,20 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" +strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.0.1: + version "7.1.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" + strip-ansi@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.1.1.tgz#39e8a98d044d150660abe4a6808acf70bb7bc991" @@ -7885,6 +8481,19 @@ subarg@^1.0.0: dependencies: minimist "^1.1.0" +sucrase@^3.20.3: + version "3.35.0" + resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.35.0.tgz#57f17a3d7e19b36d8995f06679d121be914ae263" + integrity sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA== + dependencies: + "@jridgewell/gen-mapping" "^0.3.2" + commander "^4.0.0" + glob "^10.3.10" + lines-and-columns "^1.1.6" + mz "^2.7.0" + pirates "^4.0.1" + ts-interface-checker "^0.1.9" + supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" @@ -8014,6 +8623,20 @@ text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" +thenify-all@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726" + integrity sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA== + dependencies: + thenify ">= 3.1.0 < 4" + +"thenify@>= 3.1.0 < 4": + version "3.3.1" + resolved "https://registry.yarnpkg.com/thenify/-/thenify-3.3.1.tgz#8932e686a4066038a016dd9e2ca46add9838a95f" + integrity sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw== + dependencies: + any-promise "^1.0.0" + through2-filter@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/through2-filter/-/through2-filter-2.0.0.tgz#60bc55a0dacb76085db1f9dae99ab43f83d622ec" @@ -8139,6 +8762,13 @@ tough-cookie@~2.5.0: psl "^1.1.28" punycode "^2.1.1" +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== + dependencies: + punycode "^2.1.0" + tr46@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" @@ -8146,6 +8776,11 @@ tr46@^2.1.0: dependencies: punycode "^2.1.1" +tree-kill@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" + integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== + trim-newlines@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" @@ -8167,7 +8802,12 @@ trough@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.1.tgz#a9fd8b0394b0ae8fff82e0633a0a36ccad5b5f86" -ts-node@*, ts-node@^9.0.0: +ts-interface-checker@^0.1.9: + version "0.1.13" + resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" + integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== + +ts-node@*: version "9.0.0" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.0.0.tgz#e7699d2a110cc8c0d3b831715e417688683460b3" integrity sha1-52mdKhEMyMDTuDFxXkF2iGg0YLM= @@ -8178,6 +8818,25 @@ ts-node@*, ts-node@^9.0.0: source-map-support "^0.5.17" yn "3.1.1" +ts-node@^10.9.0: + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: version "1.11.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.11.1.tgz#eb15d128827fbee2841549e171f45ed338ac7e35" @@ -8200,6 +8859,26 @@ tslint@*: tslib "^1.8.0" tsutils "^2.12.1" +tsup@^8.0.1: + version "8.0.2" + resolved "https://registry.yarnpkg.com/tsup/-/tsup-8.0.2.tgz#c63192a08386515103e2c44ac5a23bdff75c5fa1" + integrity sha512-NY8xtQXdH7hDUAZwcQdY/Vzlw9johQsaqf7iwZ6g1DOUlFYQ5/AtVAjTvihhEyeRlGo4dLRVHtrRaL35M1daqQ== + dependencies: + bundle-require "^4.0.0" + cac "^6.7.12" + chokidar "^3.5.1" + debug "^4.3.1" + esbuild "^0.19.2" + execa "^5.0.0" + globby "^11.0.3" + joycon "^3.0.1" + postcss-load-config "^4.0.1" + resolve-from "^5.0.0" + rollup "^4.0.2" + source-map "0.8.0-beta.0" + sucrase "^3.20.3" + tree-kill "^1.2.2" + tsutils@^2.12.1: version "2.22.2" resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.22.2.tgz#0b9f3d87aa3eb95bd32d26ce2b88aa329a657951" @@ -8279,10 +8958,10 @@ typedarray@^0.0.6, typedarray@~0.0.5: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" -typescript@*, typescript@^3.8.3: - version "3.8.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061" - integrity sha1-QJ64VE6gM1cRIFhp7EWKsQnuEGE= +typescript@*, typescript@~4.7.2: + version "4.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" + integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== uglify-js@^3.1.4: version "3.8.0" @@ -8455,6 +9134,11 @@ uuid@^3.3.2: resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + v8-compile-cache@^2.0.3: version "2.2.0" resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz#9471efa3ef9128d2f7c6a7ca39c4dd6b5055b132" @@ -8608,6 +9292,11 @@ wcwidth@^1.0.0: dependencies: defaults "^1.0.3" +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + webidl-conversions@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" @@ -8625,6 +9314,15 @@ websocket-extensions@>=0.1.1: resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== +whatwg-url@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06" + integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-url@^8.4.0: version "8.6.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.6.0.tgz#27c0205a4902084b872aecb97cf0f2a7a3011f4c" @@ -8689,6 +9387,15 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + wrap-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-3.0.1.tgz#288a04d87eda5c286e060dfe8f135ce8d007f8ba" @@ -8724,6 +9431,15 @@ wrap-ansi@^7.0.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" + integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" @@ -8825,6 +9541,11 @@ yaml@^1.10.0, yaml@^1.7.2: resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== +yaml@^2.3.4: + version "2.4.2" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.4.2.tgz#7a2b30f2243a5fc299e1f14ca58d475ed4bc5362" + integrity sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA== + yamljs@*: version "0.3.0" resolved "https://registry.yarnpkg.com/yamljs/-/yamljs-0.3.0.tgz#dc060bf267447b39f7304e9b2bfbe8b5a7ddb03b"