diff --git a/.monorepolint.config.ts b/.monorepolint.config.ts index 58ad6d9c5a..a48ec7adfa 100644 --- a/.monorepolint.config.ts +++ b/.monorepolint.config.ts @@ -6,12 +6,10 @@ 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 = [] 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; @@ -22,27 +20,11 @@ glob.sync(path.join(__dirname, "packages", "turf-*")).forEach((pk) => { JS_PACKAGES.push(name); } - if (fs.existsSync(path.join(pk, "test.js"))) { - TAPE_PACKAGES.push(name); - } - if (fs.existsSync(path.join(pk, "types.ts"))) { TYPES_PACKAGES.push(name); } }); - -const TS_BENCH_PACKAGES = BENCH_PACKAGES.filter( - (pkg) => -1 !== TS_PACKAGES.indexOf(pkg) -); -const JS_BENCH_PACKAGES = BENCH_PACKAGES.filter( - (pkg) => -1 !== JS_PACKAGES.indexOf(pkg) -); -const TS_TAPE_PACKAGES = TAPE_PACKAGES.filter( - (pkg) => -1 !== TS_PACKAGES.indexOf(pkg) -); -const JS_TAPE_PACKAGES = TAPE_PACKAGES.filter( - (pkg) => -1 !== JS_PACKAGES.indexOf(pkg) -); +const ALL_PACKAGES = [...JS_PACKAGES, ...TS_PACKAGES]; module.exports = { rules: { @@ -193,34 +175,11 @@ module.exports = { { options: { scripts: { - "test:tape": "node -r esm test.js", - }, - }, - includePackages: JS_TAPE_PACKAGES, - }, - { - options: { - scripts: { - "test:tape": "ts-node -r esm test.js", - }, - }, - includePackages: TS_TAPE_PACKAGES, - }, - { - options: { - scripts: { - bench: "node -r esm bench.js", + bench: "tsx bench.js", + "test:tape": "tsx test.js", }, }, - includePackages: JS_TAPE_PACKAGES, - }, - { - options: { - scripts: { - bench: "ts-node bench.js", - }, - }, - includePackages: TS_TAPE_PACKAGES, + includePackages: ALL_PACKAGES, }, { options: { @@ -241,18 +200,11 @@ module.exports = { options: { devDependencies: { "npm-run-all": "*", - }, - }, - includePackages: [...TS_PACKAGES, ...JS_PACKAGES], - }, - { - options: { - devDependencies: { - "ts-node": "^10.9.2", + tsx: "^4.9.1", typescript: "~4.7.3", }, }, - includePackages: TS_PACKAGES, + includePackages: ALL_PACKAGES, }, { options: { diff --git a/packages/turf-along/package.json b/packages/turf-along/package.json index 08600b111b..8a91feb3fa 100644 --- a/packages/turf-along/package.json +++ b/packages/turf-along/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-along/tsconfig.json b/packages/turf-along/tsconfig.json index fc76991718..55d8ef91b9 100644 --- a/packages/turf-along/tsconfig.json +++ b/packages/turf-along/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"], -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-angle/package.json b/packages/turf-angle/package.json index 2f73dda71d..ba9a85269c 100644 --- a/packages/turf-angle/package.json +++ b/packages/turf-angle/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/distance": "^6.5.0", @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-angle/tsconfig.json b/packages/turf-angle/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-angle/tsconfig.json +++ b/packages/turf-angle/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-area/package.json b/packages/turf-area/package.json index f704abc43e..5fa969dca9 100644 --- a/packages/turf-area/package.json +++ b/packages/turf-area/package.json @@ -37,13 +37,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -53,6 +53,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-area/tsconfig.json b/packages/turf-area/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-area/tsconfig.json +++ b/packages/turf-area/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-bbox-clip/package.json b/packages/turf-bbox-clip/package.json index 60638e9dd2..b660ba736b 100644 --- a/packages/turf-bbox-clip/package.json +++ b/packages/turf-bbox-clip/package.json @@ -43,13 +43,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/bbox": "^6.5.0", @@ -60,6 +60,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-bbox-clip/tsconfig.json b/packages/turf-bbox-clip/tsconfig.json index 60315e941c..55d8ef91b9 100644 --- a/packages/turf-bbox-clip/tsconfig.json +++ b/packages/turf-bbox-clip/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts", "lib/lineclip.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-bbox-polygon/package.json b/packages/turf-bbox-polygon/package.json index 0a488ad597..1dde790cce 100644 --- a/packages/turf-bbox-polygon/package.json +++ b/packages/turf-bbox-polygon/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -53,6 +53,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-bbox-polygon/tsconfig.json b/packages/turf-bbox-polygon/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-bbox-polygon/tsconfig.json +++ b/packages/turf-bbox-polygon/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-bbox/package.json b/packages/turf-bbox/package.json index 0868497362..a72ec6c362 100644 --- a/packages/turf-bbox/package.json +++ b/packages/turf-bbox/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-bbox/tsconfig.json b/packages/turf-bbox/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-bbox/tsconfig.json +++ b/packages/turf-bbox/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-bearing/package.json b/packages/turf-bearing/package.json index 58acf38b33..e053d5f763 100644 --- a/packages/turf-bearing/package.json +++ b/packages/turf-bearing/package.json @@ -35,13 +35,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/destination": "^6.5.0", @@ -51,6 +51,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-bearing/tsconfig.json b/packages/turf-bearing/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-bearing/tsconfig.json +++ b/packages/turf-bearing/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-bezier-spline/package.json b/packages/turf-bezier-spline/package.json index d735d04639..47f576c6cf 100644 --- a/packages/turf-bezier-spline/package.json +++ b/packages/turf-bezier-spline/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-bezier-spline/tsconfig.json b/packages/turf-bezier-spline/tsconfig.json index bb9b800801..55d8ef91b9 100644 --- a/packages/turf-bezier-spline/tsconfig.json +++ b/packages/turf-bezier-spline/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts", "lib/spline.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-clockwise/package.json b/packages/turf-boolean-clockwise/package.json index bac88fab76..a5ac2c4075 100755 --- a/packages/turf-boolean-clockwise/package.json +++ b/packages/turf-boolean-clockwise/package.json @@ -42,13 +42,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-clockwise/tsconfig.json b/packages/turf-boolean-clockwise/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-clockwise/tsconfig.json +++ b/packages/turf-boolean-clockwise/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-concave/package.json b/packages/turf-boolean-concave/package.json index cabd9259e5..61e2f2a558 100644 --- a/packages/turf-boolean-concave/package.json +++ b/packages/turf-boolean-concave/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-concave/tsconfig.json b/packages/turf-boolean-concave/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-concave/tsconfig.json +++ b/packages/turf-boolean-concave/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-contains/package.json b/packages/turf-boolean-contains/package.json index bcff5aa52a..712b409171 100644 --- a/packages/turf-boolean-contains/package.json +++ b/packages/turf-boolean-contains/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -60,6 +60,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-contains/tsconfig.json b/packages/turf-boolean-contains/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-contains/tsconfig.json +++ b/packages/turf-boolean-contains/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-crosses/package.json b/packages/turf-boolean-crosses/package.json index 51d8ee64e9..db5638341f 100644 --- a/packages/turf-boolean-crosses/package.json +++ b/packages/turf-boolean-crosses/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-crosses/tsconfig.json b/packages/turf-boolean-crosses/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-crosses/tsconfig.json +++ b/packages/turf-boolean-crosses/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-disjoint/package.json b/packages/turf-boolean-disjoint/package.json index b54ac29b70..bec030be7f 100644 --- a/packages/turf-boolean-disjoint/package.json +++ b/packages/turf-boolean-disjoint/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-disjoint/tsconfig.json b/packages/turf-boolean-disjoint/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-disjoint/tsconfig.json +++ b/packages/turf-boolean-disjoint/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-equal/package.json b/packages/turf-boolean-equal/package.json index 1bb7591bf8..d76d61f476 100644 --- a/packages/turf-boolean-equal/package.json +++ b/packages/turf-boolean-equal/package.json @@ -44,13 +44,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/geojson-equality": "^0.2.0", @@ -63,6 +63,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-equal/tsconfig.json b/packages/turf-boolean-equal/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-equal/tsconfig.json +++ b/packages/turf-boolean-equal/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-intersects/package.json b/packages/turf-boolean-intersects/package.json index 538dd19ff0..062b9a51a5 100644 --- a/packages/turf-boolean-intersects/package.json +++ b/packages/turf-boolean-intersects/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-intersects/tsconfig.json b/packages/turf-boolean-intersects/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-intersects/tsconfig.json +++ b/packages/turf-boolean-intersects/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-overlap/package.json b/packages/turf-boolean-overlap/package.json index c47d17ef32..6f470a104d 100755 --- a/packages/turf-boolean-overlap/package.json +++ b/packages/turf-boolean-overlap/package.json @@ -43,13 +43,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/geojson-equality": "^0.2.0", @@ -62,6 +62,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-overlap/tsconfig.json b/packages/turf-boolean-overlap/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-overlap/tsconfig.json +++ b/packages/turf-boolean-overlap/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-parallel/package.json b/packages/turf-boolean-parallel/package.json index 0e010cdcf8..8c96dccc47 100644 --- a/packages/turf-boolean-parallel/package.json +++ b/packages/turf-boolean-parallel/package.json @@ -40,13 +40,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -56,6 +56,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-boolean-parallel/tsconfig.json b/packages/turf-boolean-parallel/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-parallel/tsconfig.json +++ b/packages/turf-boolean-parallel/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-point-in-polygon/package.json b/packages/turf-boolean-point-in-polygon/package.json index 072e3a30c7..eaa4239077 100644 --- a/packages/turf-boolean-point-in-polygon/package.json +++ b/packages/turf-boolean-point-in-polygon/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-point-in-polygon/tsconfig.json b/packages/turf-boolean-point-in-polygon/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-point-in-polygon/tsconfig.json +++ b/packages/turf-boolean-point-in-polygon/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-point-on-line/package.json b/packages/turf-boolean-point-on-line/package.json index 653627a963..5afcf9d36e 100644 --- a/packages/turf-boolean-point-on-line/package.json +++ b/packages/turf-boolean-point-on-line/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-boolean-point-on-line/tsconfig.json b/packages/turf-boolean-point-on-line/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-point-on-line/tsconfig.json +++ b/packages/turf-boolean-point-on-line/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-touches/package.json b/packages/turf-boolean-touches/package.json index 67043628b4..d5345c9bf2 100644 --- a/packages/turf-boolean-touches/package.json +++ b/packages/turf-boolean-touches/package.json @@ -42,13 +42,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -62,6 +62,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-touches/tsconfig.json b/packages/turf-boolean-touches/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-touches/tsconfig.json +++ b/packages/turf-boolean-touches/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-valid/package.json b/packages/turf-boolean-valid/package.json index ce48e85fd1..2ab9536d3c 100644 --- a/packages/turf-boolean-valid/package.json +++ b/packages/turf-boolean-valid/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -60,6 +60,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-valid/tsconfig.json b/packages/turf-boolean-valid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-valid/tsconfig.json +++ b/packages/turf-boolean-valid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-boolean-within/package.json b/packages/turf-boolean-within/package.json index 679d4a76b8..adc3c0a772 100644 --- a/packages/turf-boolean-within/package.json +++ b/packages/turf-boolean-within/package.json @@ -42,13 +42,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -62,6 +62,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-boolean-within/tsconfig.json b/packages/turf-boolean-within/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-boolean-within/tsconfig.json +++ b/packages/turf-boolean-within/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-buffer/package.json b/packages/turf-buffer/package.json index 52b3a0daea..f6f75526c9 100644 --- a/packages/turf-buffer/package.json +++ b/packages/turf-buffer/package.json @@ -46,11 +46,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -60,6 +60,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-buffer/tsconfig.json b/packages/turf-buffer/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-buffer/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-center-mean/package.json b/packages/turf-center-mean/package.json index 0129c87f00..4a39b779b5 100644 --- a/packages/turf-center-mean/package.json +++ b/packages/turf-center-mean/package.json @@ -43,13 +43,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -63,6 +63,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-center-mean/tsconfig.json b/packages/turf-center-mean/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-center-mean/tsconfig.json +++ b/packages/turf-center-mean/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-center-median/package.json b/packages/turf-center-median/package.json index abab3ca4cf..ab087f7631 100644 --- a/packages/turf-center-median/package.json +++ b/packages/turf-center-median/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/center": "^6.5.0", @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-center-median/tsconfig.json b/packages/turf-center-median/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-center-median/tsconfig.json +++ b/packages/turf-center-median/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-center-of-mass/package.json b/packages/turf-center-of-mass/package.json index 9f67394fb1..9968a7f1ac 100644 --- a/packages/turf-center-of-mass/package.json +++ b/packages/turf-center-of-mass/package.json @@ -35,13 +35,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -53,6 +53,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-center-of-mass/tsconfig.json b/packages/turf-center-of-mass/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-center-of-mass/tsconfig.json +++ b/packages/turf-center-of-mass/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-center/package.json b/packages/turf-center/package.json index 30abb3b582..73e48065aa 100644 --- a/packages/turf-center/package.json +++ b/packages/turf-center/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-center/tsconfig.json b/packages/turf-center/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-center/tsconfig.json +++ b/packages/turf-center/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-centroid/package.json b/packages/turf-centroid/package.json index bf3ece6c8a..2f8d48abaa 100644 --- a/packages/turf-centroid/package.json +++ b/packages/turf-centroid/package.json @@ -37,13 +37,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -56,6 +56,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-centroid/tsconfig.json b/packages/turf-centroid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-centroid/tsconfig.json +++ b/packages/turf-centroid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-circle/package.json b/packages/turf-circle/package.json index baa00ef9f7..317beb7344 100644 --- a/packages/turf-circle/package.json +++ b/packages/turf-circle/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-circle/tsconfig.json b/packages/turf-circle/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-circle/tsconfig.json +++ b/packages/turf-circle/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-clean-coords/package.json b/packages/turf-clean-coords/package.json index e15bce9e03..549dd0a7f6 100644 --- a/packages/turf-clean-coords/package.json +++ b/packages/turf-clean-coords/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-clean-coords/tsconfig.json b/packages/turf-clean-coords/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-clean-coords/tsconfig.json +++ b/packages/turf-clean-coords/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-clone/package.json b/packages/turf-clone/package.json index 4fd51da9a8..b93273c01d 100644 --- a/packages/turf-clone/package.json +++ b/packages/turf-clone/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-clone/tsconfig.json b/packages/turf-clone/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-clone/tsconfig.json +++ b/packages/turf-clone/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-clusters-dbscan/package.json b/packages/turf-clusters-dbscan/package.json index 35bf09e7c0..bdff34279b 100644 --- a/packages/turf-clusters-dbscan/package.json +++ b/packages/turf-clusters-dbscan/package.json @@ -45,13 +45,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -67,6 +67,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-clusters-dbscan/tsconfig.json b/packages/turf-clusters-dbscan/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-clusters-dbscan/tsconfig.json +++ b/packages/turf-clusters-dbscan/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-clusters-kmeans/package.json b/packages/turf-clusters-kmeans/package.json index 8c57926d9b..a01e148301 100644 --- a/packages/turf-clusters-kmeans/package.json +++ b/packages/turf-clusters-kmeans/package.json @@ -44,13 +44,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -68,6 +68,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-clusters-kmeans/tsconfig.json b/packages/turf-clusters-kmeans/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-clusters-kmeans/tsconfig.json +++ b/packages/turf-clusters-kmeans/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-clusters/package.json b/packages/turf-clusters/package.json index 63d24f1fee..d7f6e08d33 100644 --- a/packages/turf-clusters/package.json +++ b/packages/turf-clusters/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-clusters/tsconfig.json b/packages/turf-clusters/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-clusters/tsconfig.json +++ b/packages/turf-clusters/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-collect/package.json b/packages/turf-collect/package.json index a10f4940dd..b7b2c15da0 100644 --- a/packages/turf-collect/package.json +++ b/packages/turf-collect/package.json @@ -42,13 +42,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/rbush": "^2.0.3", @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-collect/tsconfig.json b/packages/turf-collect/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-collect/tsconfig.json +++ b/packages/turf-collect/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-combine/package.json b/packages/turf-combine/package.json index edff45dfba..32584ca82a 100644 --- a/packages/turf-combine/package.json +++ b/packages/turf-combine/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -53,6 +53,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-combine/tsconfig.json b/packages/turf-combine/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-combine/tsconfig.json +++ b/packages/turf-combine/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-concave/package.json b/packages/turf-concave/package.json index 2bc1e9ce38..5aac720799 100644 --- a/packages/turf-concave/package.json +++ b/packages/turf-concave/package.json @@ -48,13 +48,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -66,6 +66,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-concave/tsconfig.json b/packages/turf-concave/tsconfig.json index aaf678f03b..55d8ef91b9 100644 --- a/packages/turf-concave/tsconfig.json +++ b/packages/turf-concave/tsconfig.json @@ -1,12 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, "files": [ + "index.js", "index.ts", - "lib/turf-dissolve.ts", - "lib/turf-line-dissolve.ts", - "lib/turf-polygon-dissolve.ts" + "lib/" ] -} +} \ No newline at end of file diff --git a/packages/turf-convex/package.json b/packages/turf-convex/package.json index c0d3e82669..38efdc75a2 100644 --- a/packages/turf-convex/package.json +++ b/packages/turf-convex/package.json @@ -35,13 +35,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/concaveman": "*", @@ -53,6 +53,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-convex/tsconfig.json b/packages/turf-convex/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-convex/tsconfig.json +++ b/packages/turf-convex/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-destination/package.json b/packages/turf-destination/package.json index 94dc855a76..c59654b544 100644 --- a/packages/turf-destination/package.json +++ b/packages/turf-destination/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/truncate": "^6.5.0", @@ -57,6 +57,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-destination/tsconfig.json b/packages/turf-destination/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-destination/tsconfig.json +++ b/packages/turf-destination/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-difference/package.json b/packages/turf-difference/package.json index 45610f432a..d5f9e52035 100644 --- a/packages/turf-difference/package.json +++ b/packages/turf-difference/package.json @@ -36,11 +36,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", @@ -49,6 +49,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-difference/tsconfig.json b/packages/turf-difference/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-difference/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-directional-mean/package.json b/packages/turf-directional-mean/package.json index 0c29ddee95..4a835dbc6b 100644 --- a/packages/turf-directional-mean/package.json +++ b/packages/turf-directional-mean/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-directional-mean/tsconfig.json b/packages/turf-directional-mean/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-directional-mean/tsconfig.json +++ b/packages/turf-directional-mean/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-dissolve/package.json b/packages/turf-dissolve/package.json index 152266c86d..0feb8e2c4b 100644 --- a/packages/turf-dissolve/package.json +++ b/packages/turf-dissolve/package.json @@ -39,11 +39,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", @@ -51,6 +51,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-dissolve/tsconfig.json b/packages/turf-dissolve/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-dissolve/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-distance-weight/package.json b/packages/turf-distance-weight/package.json index d7478ba4c4..c9cceab8fc 100644 --- a/packages/turf-distance-weight/package.json +++ b/packages/turf-distance-weight/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-distance-weight/tsconfig.json b/packages/turf-distance-weight/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-distance-weight/tsconfig.json +++ b/packages/turf-distance-weight/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-distance/package.json b/packages/turf-distance/package.json index 6e68a4549d..bab5f072cb 100644 --- a/packages/turf-distance/package.json +++ b/packages/turf-distance/package.json @@ -37,13 +37,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -53,6 +53,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-distance/tsconfig.json b/packages/turf-distance/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-distance/tsconfig.json +++ b/packages/turf-distance/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-ellipse/package.json b/packages/turf-ellipse/package.json index 0d0547da38..d9f7cc8325 100644 --- a/packages/turf-ellipse/package.json +++ b/packages/turf-ellipse/package.json @@ -39,11 +39,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@mapbox/geojsonhint": "*", @@ -57,6 +57,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-ellipse/tsconfig.json b/packages/turf-ellipse/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-ellipse/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-envelope/package.json b/packages/turf-envelope/package.json index 7bcc9679fa..20c4ca56f5 100644 --- a/packages/turf-envelope/package.json +++ b/packages/turf-envelope/package.json @@ -39,18 +39,20 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/bbox": "^6.5.0", diff --git a/packages/turf-envelope/tsconfig.json b/packages/turf-envelope/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-envelope/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-explode/package.json b/packages/turf-explode/package.json index a029c5fd71..059202b69a 100644 --- a/packages/turf-explode/package.json +++ b/packages/turf-explode/package.json @@ -38,11 +38,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", @@ -51,6 +51,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-explode/tsconfig.json b/packages/turf-explode/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-explode/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-flatten/package.json b/packages/turf-flatten/package.json index cfeda1b6ad..eaefb4d2cf 100644 --- a/packages/turf-flatten/package.json +++ b/packages/turf-flatten/package.json @@ -43,11 +43,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -56,6 +56,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-flatten/tsconfig.json b/packages/turf-flatten/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-flatten/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-flip/package.json b/packages/turf-flip/package.json index 38ecf204fb..ac14be9ff8 100644 --- a/packages/turf-flip/package.json +++ b/packages/turf-flip/package.json @@ -38,11 +38,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -51,6 +51,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-flip/tsconfig.json b/packages/turf-flip/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-flip/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-great-circle/package.json b/packages/turf-great-circle/package.json index 151d2cace4..5433fb053d 100644 --- a/packages/turf-great-circle/package.json +++ b/packages/turf-great-circle/package.json @@ -44,11 +44,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -58,6 +58,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-great-circle/tsconfig.json b/packages/turf-great-circle/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-great-circle/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-helpers/package.json b/packages/turf-helpers/package.json index 76ac7039c6..15b1cea6ff 100644 --- a/packages/turf-helpers/package.json +++ b/packages/turf-helpers/package.json @@ -43,13 +43,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" } } diff --git a/packages/turf-helpers/tsconfig.json b/packages/turf-helpers/tsconfig.json index 1100f70e6c..55d8ef91b9 100644 --- a/packages/turf-helpers/tsconfig.json +++ b/packages/turf-helpers/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts", "lib/geojson.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-hex-grid/package.json b/packages/turf-hex-grid/package.json index c437e1e9d5..3ca9361477 100644 --- a/packages/turf-hex-grid/package.json +++ b/packages/turf-hex-grid/package.json @@ -47,13 +47,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -66,6 +66,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-hex-grid/tsconfig.json b/packages/turf-hex-grid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-hex-grid/tsconfig.json +++ b/packages/turf-hex-grid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-interpolate/package.json b/packages/turf-interpolate/package.json index 3e31b8063a..340164f37b 100644 --- a/packages/turf-interpolate/package.json +++ b/packages/turf-interpolate/package.json @@ -40,11 +40,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -55,6 +55,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-interpolate/tsconfig.json b/packages/turf-interpolate/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-interpolate/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-intersect/package.json b/packages/turf-intersect/package.json index 0202b56a4e..ea62a71236 100644 --- a/packages/turf-intersect/package.json +++ b/packages/turf-intersect/package.json @@ -36,13 +36,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-intersect/tsconfig.json b/packages/turf-intersect/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-intersect/tsconfig.json +++ b/packages/turf-intersect/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-invariant/package.json b/packages/turf-invariant/package.json index 084ce76669..390cea2519 100644 --- a/packages/turf-invariant/package.json +++ b/packages/turf-invariant/package.json @@ -40,13 +40,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-invariant/tsconfig.json b/packages/turf-invariant/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-invariant/tsconfig.json +++ b/packages/turf-invariant/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-isobands/package.json b/packages/turf-isobands/package.json index 2bd24cb9c6..ccacc3ddd3 100644 --- a/packages/turf-isobands/package.json +++ b/packages/turf-isobands/package.json @@ -44,11 +44,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/envelope": "^6.5.0", @@ -63,6 +63,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-isobands/tsconfig.json b/packages/turf-isobands/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-isobands/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-isolines/package.json b/packages/turf-isolines/package.json index 81cf4580c0..6ab35cb56e 100644 --- a/packages/turf-isolines/package.json +++ b/packages/turf-isolines/package.json @@ -43,11 +43,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -62,6 +62,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-isolines/tsconfig.json b/packages/turf-isolines/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-isolines/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-kinks/package.json b/packages/turf-kinks/package.json index cccc0c4df3..0392d36031 100644 --- a/packages/turf-kinks/package.json +++ b/packages/turf-kinks/package.json @@ -36,13 +36,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -52,6 +52,7 @@ "npm-run-all": "*", "tape": "*", "ts-node": "^10.9.2", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-kinks/tsconfig.json b/packages/turf-kinks/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-kinks/tsconfig.json +++ b/packages/turf-kinks/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-length/package.json b/packages/turf-length/package.json index 99d39a7586..b94356b841 100644 --- a/packages/turf-length/package.json +++ b/packages/turf-length/package.json @@ -43,13 +43,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-length/tsconfig.json b/packages/turf-length/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-length/tsconfig.json +++ b/packages/turf-length/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-arc/package.json b/packages/turf-line-arc/package.json index 911ec9a311..6e99bc133a 100644 --- a/packages/turf-line-arc/package.json +++ b/packages/turf-line-arc/package.json @@ -35,13 +35,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -51,6 +51,7 @@ "npm-run-all": "*", "tape": "*", "ts-node": "^10.9.2", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-line-arc/tsconfig.json b/packages/turf-line-arc/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-line-arc/tsconfig.json +++ b/packages/turf-line-arc/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-chunk/package.json b/packages/turf-line-chunk/package.json index bc49a36a67..46dd26b519 100644 --- a/packages/turf-line-chunk/package.json +++ b/packages/turf-line-chunk/package.json @@ -45,11 +45,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -59,6 +59,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-chunk/tsconfig.json b/packages/turf-line-chunk/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-line-chunk/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-intersect/package.json b/packages/turf-line-intersect/package.json index 8c32c78d80..66f348f038 100644 --- a/packages/turf-line-intersect/package.json +++ b/packages/turf-line-intersect/package.json @@ -42,13 +42,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/truncate": "^6.5.0", @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-line-intersect/tsconfig.json b/packages/turf-line-intersect/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-line-intersect/tsconfig.json +++ b/packages/turf-line-intersect/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-offset/package.json b/packages/turf-line-offset/package.json index 9e6341e7ac..40cc5d5a16 100644 --- a/packages/turf-line-offset/package.json +++ b/packages/turf-line-offset/package.json @@ -43,11 +43,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-offset/tsconfig.json b/packages/turf-line-offset/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-line-offset/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-overlap/package.json b/packages/turf-line-overlap/package.json index defe8ac5ca..ad642270aa 100644 --- a/packages/turf-line-overlap/package.json +++ b/packages/turf-line-overlap/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-line-overlap/tsconfig.json b/packages/turf-line-overlap/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-line-overlap/tsconfig.json +++ b/packages/turf-line-overlap/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-segment/package.json b/packages/turf-line-segment/package.json index d4ee273755..0bc76ad8b8 100644 --- a/packages/turf-line-segment/package.json +++ b/packages/turf-line-segment/package.json @@ -36,13 +36,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -52,6 +52,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-line-segment/tsconfig.json b/packages/turf-line-segment/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-line-segment/tsconfig.json +++ b/packages/turf-line-segment/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-slice-along/package.json b/packages/turf-line-slice-along/package.json index 1a3ee20edd..d6445821dc 100644 --- a/packages/turf-line-slice-along/package.json +++ b/packages/turf-line-slice-along/package.json @@ -37,11 +37,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/along": "^6.5.0", @@ -49,7 +49,9 @@ "load-json-file": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/bearing": "^6.5.0", diff --git a/packages/turf-line-slice-along/tsconfig.json b/packages/turf-line-slice-along/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-line-slice-along/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-slice/package.json b/packages/turf-line-slice/package.json index e5b7b948e1..f91d0fbcca 100644 --- a/packages/turf-line-slice/package.json +++ b/packages/turf-line-slice/package.json @@ -41,11 +41,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/truncate": "^6.5.0", @@ -54,6 +54,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-slice/tsconfig.json b/packages/turf-line-slice/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-line-slice/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-split/package.json b/packages/turf-line-split/package.json index 53448e2dca..deae395fe7 100644 --- a/packages/turf-line-split/package.json +++ b/packages/turf-line-split/package.json @@ -42,11 +42,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", @@ -54,6 +54,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-line-split/tsconfig.json b/packages/turf-line-split/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-line-split/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-line-to-polygon/package.json b/packages/turf-line-to-polygon/package.json index 6b9e5ec4a8..d982b28bdd 100644 --- a/packages/turf-line-to-polygon/package.json +++ b/packages/turf-line-to-polygon/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-line-to-polygon/tsconfig.json b/packages/turf-line-to-polygon/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-line-to-polygon/tsconfig.json +++ b/packages/turf-line-to-polygon/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-mask/package.json b/packages/turf-mask/package.json index bb18812ab3..67e703316d 100644 --- a/packages/turf-mask/package.json +++ b/packages/turf-mask/package.json @@ -37,11 +37,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -51,6 +51,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-mask/tsconfig.json b/packages/turf-mask/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-mask/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-meta/package.json b/packages/turf-meta/package.json index e164dc63ba..75c1855e3a 100644 --- a/packages/turf-meta/package.json +++ b/packages/turf-meta/package.json @@ -59,11 +59,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -71,7 +71,9 @@ "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/helpers": "^6.5.0" diff --git a/packages/turf-meta/tsconfig.json b/packages/turf-meta/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-meta/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-midpoint/package.json b/packages/turf-midpoint/package.json index eb971a0d68..670ac9bac3 100644 --- a/packages/turf-midpoint/package.json +++ b/packages/turf-midpoint/package.json @@ -39,17 +39,19 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/bearing": "^6.5.0", diff --git a/packages/turf-midpoint/tsconfig.json b/packages/turf-midpoint/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-midpoint/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-moran-index/package.json b/packages/turf-moran-index/package.json index c2df9f4b6a..3cd61cc57d 100644 --- a/packages/turf-moran-index/package.json +++ b/packages/turf-moran-index/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-moran-index/tsconfig.json b/packages/turf-moran-index/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-moran-index/tsconfig.json +++ b/packages/turf-moran-index/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-nearest-neighbor-analysis/package.json b/packages/turf-nearest-neighbor-analysis/package.json index 80dc77db1d..fce0b7df9f 100644 --- a/packages/turf-nearest-neighbor-analysis/package.json +++ b/packages/turf-nearest-neighbor-analysis/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/truncate": "^6.5.0", @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-nearest-neighbor-analysis/tsconfig.json b/packages/turf-nearest-neighbor-analysis/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-nearest-neighbor-analysis/tsconfig.json +++ b/packages/turf-nearest-neighbor-analysis/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-nearest-point-on-line/package.json b/packages/turf-nearest-point-on-line/package.json index 09162a2695..80c1a3ae9e 100644 --- a/packages/turf-nearest-point-on-line/package.json +++ b/packages/turf-nearest-point-on-line/package.json @@ -31,13 +31,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -51,6 +51,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-nearest-point-on-line/tsconfig.json b/packages/turf-nearest-point-on-line/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-nearest-point-on-line/tsconfig.json +++ b/packages/turf-nearest-point-on-line/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-nearest-point-to-line/package.json b/packages/turf-nearest-point-to-line/package.json index 27f883c7d1..f8cb9ec1f6 100644 --- a/packages/turf-nearest-point-to-line/package.json +++ b/packages/turf-nearest-point-to-line/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -61,6 +61,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-nearest-point-to-line/tsconfig.json b/packages/turf-nearest-point-to-line/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-nearest-point-to-line/tsconfig.json +++ b/packages/turf-nearest-point-to-line/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-nearest-point/package.json b/packages/turf-nearest-point/package.json index 754bfeeb86..d1f1934a90 100644 --- a/packages/turf-nearest-point/package.json +++ b/packages/turf-nearest-point/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-nearest-point/tsconfig.json b/packages/turf-nearest-point/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-nearest-point/tsconfig.json +++ b/packages/turf-nearest-point/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-planepoint/package.json b/packages/turf-planepoint/package.json index 56093251a7..b23a510edf 100644 --- a/packages/turf-planepoint/package.json +++ b/packages/turf-planepoint/package.json @@ -39,18 +39,20 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/helpers": "^6.5.0", diff --git a/packages/turf-planepoint/tsconfig.json b/packages/turf-planepoint/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-planepoint/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-point-grid/package.json b/packages/turf-point-grid/package.json index ee7c7157bc..aeec4ea23e 100644 --- a/packages/turf-point-grid/package.json +++ b/packages/turf-point-grid/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -60,6 +60,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-point-grid/tsconfig.json b/packages/turf-point-grid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-point-grid/tsconfig.json +++ b/packages/turf-point-grid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-point-on-feature/package.json b/packages/turf-point-on-feature/package.json index 0b597fb3f4..ed76af3f9a 100644 --- a/packages/turf-point-on-feature/package.json +++ b/packages/turf-point-on-feature/package.json @@ -40,11 +40,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/meta": "^6.5.0", @@ -52,7 +52,9 @@ "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/boolean-point-in-polygon": "^6.5.0", diff --git a/packages/turf-point-on-feature/tsconfig.json b/packages/turf-point-on-feature/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-point-on-feature/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-point-to-line-distance/package.json b/packages/turf-point-to-line-distance/package.json index 43507644c4..00720c47bb 100644 --- a/packages/turf-point-to-line-distance/package.json +++ b/packages/turf-point-to-line-distance/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-point-to-line-distance/tsconfig.json b/packages/turf-point-to-line-distance/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-point-to-line-distance/tsconfig.json +++ b/packages/turf-point-to-line-distance/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-points-within-polygon/package.json b/packages/turf-points-within-polygon/package.json index a81f5c723c..fa8986fba7 100644 --- a/packages/turf-points-within-polygon/package.json +++ b/packages/turf-points-within-polygon/package.json @@ -39,18 +39,20 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/boolean-point-in-polygon": "^6.5.0", diff --git a/packages/turf-points-within-polygon/tsconfig.json b/packages/turf-points-within-polygon/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-points-within-polygon/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-polygon-smooth/package.json b/packages/turf-polygon-smooth/package.json index a468b198e1..145df353dc 100644 --- a/packages/turf-polygon-smooth/package.json +++ b/packages/turf-polygon-smooth/package.json @@ -40,11 +40,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -54,6 +54,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-polygon-smooth/tsconfig.json b/packages/turf-polygon-smooth/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-polygon-smooth/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-polygon-tangents/package.json b/packages/turf-polygon-tangents/package.json index 917cf838a4..5d0dc74613 100644 --- a/packages/turf-polygon-tangents/package.json +++ b/packages/turf-polygon-tangents/package.json @@ -43,11 +43,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -56,6 +56,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-polygon-tangents/tsconfig.json b/packages/turf-polygon-tangents/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-polygon-tangents/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-polygon-to-line/package.json b/packages/turf-polygon-to-line/package.json index 97020d80f4..54c9d852a5 100644 --- a/packages/turf-polygon-to-line/package.json +++ b/packages/turf-polygon-to-line/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-polygon-to-line/tsconfig.json b/packages/turf-polygon-to-line/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-polygon-to-line/tsconfig.json +++ b/packages/turf-polygon-to-line/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-polygonize/package.json b/packages/turf-polygonize/package.json index 56cd1cfa2f..2f1313dd89 100644 --- a/packages/turf-polygonize/package.json +++ b/packages/turf-polygonize/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,7 @@ "rollup": "*", "tape": "*", "ts-node": "^10.9.2", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-polygonize/tsconfig.json b/packages/turf-polygonize/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-polygonize/tsconfig.json +++ b/packages/turf-polygonize/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-projection/package.json b/packages/turf-projection/package.json index aa7c43f1d5..16b786e3cb 100644 --- a/packages/turf-projection/package.json +++ b/packages/turf-projection/package.json @@ -49,13 +49,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -68,6 +68,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-projection/tsconfig.json b/packages/turf-projection/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-projection/tsconfig.json +++ b/packages/turf-projection/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-quadrat-analysis/package.json b/packages/turf-quadrat-analysis/package.json index 03ddf18625..b6a84904de 100644 --- a/packages/turf-quadrat-analysis/package.json +++ b/packages/turf-quadrat-analysis/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/nearest-neighbor-analysis": "^6.5.0", @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-quadrat-analysis/tsconfig.json b/packages/turf-quadrat-analysis/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-quadrat-analysis/tsconfig.json +++ b/packages/turf-quadrat-analysis/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-random/package.json b/packages/turf-random/package.json index c6ec3a6e6d..4d5a8bbe73 100644 --- a/packages/turf-random/package.json +++ b/packages/turf-random/package.json @@ -35,13 +35,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@types/tape": "*", @@ -51,6 +51,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-random/tsconfig.json b/packages/turf-random/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-random/tsconfig.json +++ b/packages/turf-random/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-rectangle-grid/package.json b/packages/turf-rectangle-grid/package.json index 19754280d0..57d03ef707 100644 --- a/packages/turf-rectangle-grid/package.json +++ b/packages/turf-rectangle-grid/package.json @@ -41,13 +41,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/bbox-polygon": "^6.5.0", @@ -58,6 +58,7 @@ "rollup": "*", "tape": "*", "ts-node": "^10.9.2", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-rectangle-grid/tsconfig.json b/packages/turf-rectangle-grid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-rectangle-grid/tsconfig.json +++ b/packages/turf-rectangle-grid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-rewind/package.json b/packages/turf-rewind/package.json index 0cf9938c90..1afeaabb2e 100644 --- a/packages/turf-rewind/package.json +++ b/packages/turf-rewind/package.json @@ -44,11 +44,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-rewind/tsconfig.json b/packages/turf-rewind/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-rewind/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-rhumb-bearing/package.json b/packages/turf-rhumb-bearing/package.json index 996f1b597a..6471237ef3 100644 --- a/packages/turf-rhumb-bearing/package.json +++ b/packages/turf-rhumb-bearing/package.json @@ -43,13 +43,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/destination": "^6.5.0", @@ -59,6 +59,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-rhumb-bearing/tsconfig.json b/packages/turf-rhumb-bearing/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-rhumb-bearing/tsconfig.json +++ b/packages/turf-rhumb-bearing/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-rhumb-destination/package.json b/packages/turf-rhumb-destination/package.json index e013ff0225..0e0decbf4c 100644 --- a/packages/turf-rhumb-destination/package.json +++ b/packages/turf-rhumb-destination/package.json @@ -47,13 +47,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/truncate": "^6.5.0", @@ -64,6 +64,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-rhumb-destination/tsconfig.json b/packages/turf-rhumb-destination/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-rhumb-destination/tsconfig.json +++ b/packages/turf-rhumb-destination/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-rhumb-distance/package.json b/packages/turf-rhumb-distance/package.json index 9240695e89..42115c5070 100644 --- a/packages/turf-rhumb-distance/package.json +++ b/packages/turf-rhumb-distance/package.json @@ -45,13 +45,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/distance": "^6.5.0", @@ -62,6 +62,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-rhumb-distance/tsconfig.json b/packages/turf-rhumb-distance/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-rhumb-distance/tsconfig.json +++ b/packages/turf-rhumb-distance/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-sample/package.json b/packages/turf-sample/package.json index 63beb30c72..25aaa76ad9 100644 --- a/packages/turf-sample/package.json +++ b/packages/turf-sample/package.json @@ -38,17 +38,19 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/helpers": "^6.5.0" diff --git a/packages/turf-sample/tsconfig.json b/packages/turf-sample/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-sample/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-sector/package.json b/packages/turf-sector/package.json index 28e65d964c..ec15b8404f 100644 --- a/packages/turf-sector/package.json +++ b/packages/turf-sector/package.json @@ -36,11 +36,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -50,6 +50,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-sector/tsconfig.json b/packages/turf-sector/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-sector/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-shortest-path/package.json b/packages/turf-shortest-path/package.json index 20c87138a2..f68da0957b 100644 --- a/packages/turf-shortest-path/package.json +++ b/packages/turf-shortest-path/package.json @@ -41,11 +41,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -55,6 +55,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-shortest-path/tsconfig.json b/packages/turf-shortest-path/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-shortest-path/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-simplify/package.json b/packages/turf-simplify/package.json index 82afec2e55..a701b0e096 100644 --- a/packages/turf-simplify/package.json +++ b/packages/turf-simplify/package.json @@ -44,11 +44,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -58,6 +58,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-simplify/tsconfig.json b/packages/turf-simplify/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-simplify/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-square-grid/package.json b/packages/turf-square-grid/package.json index 5dee8ffb45..f576ce6a04 100644 --- a/packages/turf-square-grid/package.json +++ b/packages/turf-square-grid/package.json @@ -38,13 +38,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "@turf/bbox-polygon": "^6.5.0", @@ -55,6 +55,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-square-grid/tsconfig.json b/packages/turf-square-grid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-square-grid/tsconfig.json +++ b/packages/turf-square-grid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-square/package.json b/packages/turf-square/package.json index 365b423092..7bbb33dd25 100644 --- a/packages/turf-square/package.json +++ b/packages/turf-square/package.json @@ -38,17 +38,19 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/distance": "^6.5.0", diff --git a/packages/turf-square/tsconfig.json b/packages/turf-square/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-square/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-standard-deviational-ellipse/package.json b/packages/turf-standard-deviational-ellipse/package.json index be51b26161..ec545453cb 100644 --- a/packages/turf-standard-deviational-ellipse/package.json +++ b/packages/turf-standard-deviational-ellipse/package.json @@ -41,11 +41,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -56,6 +56,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-standard-deviational-ellipse/tsconfig.json b/packages/turf-standard-deviational-ellipse/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-standard-deviational-ellipse/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-tag/package.json b/packages/turf-tag/package.json index 3fc3e3c9f1..0bc7c06977 100644 --- a/packages/turf-tag/package.json +++ b/packages/turf-tag/package.json @@ -42,18 +42,20 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", "load-json-file": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/boolean-point-in-polygon": "^6.5.0", diff --git a/packages/turf-tag/tsconfig.json b/packages/turf-tag/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-tag/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-tesselate/package.json b/packages/turf-tesselate/package.json index 5875c917dd..815f1ca369 100644 --- a/packages/turf-tesselate/package.json +++ b/packages/turf-tesselate/package.json @@ -46,17 +46,19 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", "npm-run-all": "*", "rollup": "*", - "tape": "*" + "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3" }, "dependencies": { "@turf/helpers": "^6.5.0", diff --git a/packages/turf-tesselate/tsconfig.json b/packages/turf-tesselate/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-tesselate/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-tin/package.json b/packages/turf-tin/package.json index 23cf405257..0782d10cde 100644 --- a/packages/turf-tin/package.json +++ b/packages/turf-tin/package.json @@ -36,13 +36,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -52,6 +52,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3" }, "dependencies": { diff --git a/packages/turf-tin/tsconfig.json b/packages/turf-tin/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-tin/tsconfig.json +++ b/packages/turf-tin/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-transform-rotate/package.json b/packages/turf-transform-rotate/package.json index 19b79a4dba..1a9c0d70b4 100644 --- a/packages/turf-transform-rotate/package.json +++ b/packages/turf-transform-rotate/package.json @@ -42,11 +42,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -56,6 +56,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-transform-rotate/tsconfig.json b/packages/turf-transform-rotate/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-transform-rotate/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-transform-scale/package.json b/packages/turf-transform-scale/package.json index 229217bba3..d28d66f328 100644 --- a/packages/turf-transform-scale/package.json +++ b/packages/turf-transform-scale/package.json @@ -46,11 +46,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -62,6 +62,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-transform-scale/tsconfig.json b/packages/turf-transform-scale/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-transform-scale/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-transform-translate/package.json b/packages/turf-transform-translate/package.json index f79eeafe0b..1b8306ba5f 100644 --- a/packages/turf-transform-translate/package.json +++ b/packages/turf-transform-translate/package.json @@ -44,11 +44,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -58,6 +58,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-transform-translate/tsconfig.json b/packages/turf-transform-translate/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-transform-translate/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-triangle-grid/package.json b/packages/turf-triangle-grid/package.json index 20f75cf693..c8aabec6be 100644 --- a/packages/turf-triangle-grid/package.json +++ b/packages/turf-triangle-grid/package.json @@ -39,13 +39,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -58,6 +58,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-triangle-grid/tsconfig.json b/packages/turf-triangle-grid/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-triangle-grid/tsconfig.json +++ b/packages/turf-triangle-grid/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-truncate/package.json b/packages/turf-truncate/package.json index 2a7fc5352b..461dd62a3c 100644 --- a/packages/turf-truncate/package.json +++ b/packages/turf-truncate/package.json @@ -40,13 +40,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -57,6 +57,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-truncate/tsconfig.json b/packages/turf-truncate/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-truncate/tsconfig.json +++ b/packages/turf-truncate/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-union/package.json b/packages/turf-union/package.json index dd3dac9a3e..98f561ed0d 100644 --- a/packages/turf-union/package.json +++ b/packages/turf-union/package.json @@ -35,13 +35,13 @@ "dist" ], "scripts": { - "bench": "ts-node bench.js", + "bench": "tsx 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", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "ts-node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -54,6 +54,7 @@ "tape": "*", "ts-node": "^10.9.2", "tslint": "*", + "tsx": "^4.9.1", "typescript": "~4.7.3", "write-json-file": "*" }, diff --git a/packages/turf-union/tsconfig.json b/packages/turf-union/tsconfig.json index c3f78e4c94..55d8ef91b9 100644 --- a/packages/turf-union/tsconfig.json +++ b/packages/turf-union/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.shared.json", "compilerOptions": { - "outDir": "dist/js" + "allowJs": true }, - "files": ["index.ts"] -} + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-unkink-polygon/package.json b/packages/turf-unkink-polygon/package.json index 883ce87f57..469d2f048a 100644 --- a/packages/turf-unkink-polygon/package.json +++ b/packages/turf-unkink-polygon/package.json @@ -39,11 +39,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js", + "test:tape": "tsx test.js", "test:types": "tsc --esModuleInterop --noEmit types.ts" }, "devDependencies": { @@ -53,6 +53,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-unkink-polygon/tsconfig.json b/packages/turf-unkink-polygon/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-unkink-polygon/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf-voronoi/package.json b/packages/turf-voronoi/package.json index 1cdab4c243..1b067a71d0 100644 --- a/packages/turf-voronoi/package.json +++ b/packages/turf-voronoi/package.json @@ -45,11 +45,11 @@ "index.d.ts" ], "scripts": { - "bench": "node -r esm bench.js", + "bench": "tsx bench.js", "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json", "docs": "node ../../scripts/generate-readmes", "test": "npm-run-all test:*", - "test:tape": "node -r esm test.js" + "test:tape": "tsx test.js" }, "devDependencies": { "benchmark": "*", @@ -58,6 +58,8 @@ "npm-run-all": "*", "rollup": "*", "tape": "*", + "tsx": "^4.9.1", + "typescript": "~4.7.3", "write-json-file": "*" }, "dependencies": { diff --git a/packages/turf-voronoi/tsconfig.json b/packages/turf-voronoi/tsconfig.json new file mode 100644 index 0000000000..55d8ef91b9 --- /dev/null +++ b/packages/turf-voronoi/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.shared.json", + "compilerOptions": { + "allowJs": true + }, + "files": [ + "index.js", + "index.ts", + "lib/" + ] +} \ No newline at end of file diff --git a/packages/turf/tsconfig.json b/packages/turf/tsconfig.json new file mode 100644 index 0000000000..563bf86442 --- /dev/null +++ b/packages/turf/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../../tsconfig.shared.json" +} diff --git a/scripts/sync-tsconfig.js b/scripts/sync-tsconfig.js new file mode 100644 index 0000000000..6966308a4d --- /dev/null +++ b/scripts/sync-tsconfig.js @@ -0,0 +1,22 @@ +#!/usr/bin/env node + +const path = require("path"); +const glob = require("glob"); +const fs = require("fs"); + +const expectedTsConfig = JSON.stringify( + { + extends: "../../tsconfig.shared.json", + compilerOptions: { + allowJs: true, + }, + files: ["index.js", "index.ts", "lib/"], + }, + null, + 2 +); + +glob.sync("packages/turf-*").forEach((package) => { + const tsconfigJsonPath = path.join(package, "tsconfig.json"); + fs.writeFileSync(tsconfigJsonPath, expectedTsConfig); +}); diff --git a/yarn.lock b/yarn.lock index 85aacd832a..90f2c47c92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -203,6 +203,121 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" +"@esbuild/aix-ppc64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz#a70f4ac11c6a1dfc18b8bbb13284155d933b9537" + integrity sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g== + +"@esbuild/android-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz#db1c9202a5bc92ea04c7b6840f1bbe09ebf9e6b9" + integrity sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg== + +"@esbuild/android-arm@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.20.2.tgz#3b488c49aee9d491c2c8f98a909b785870d6e995" + integrity sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w== + +"@esbuild/android-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.20.2.tgz#3b1628029e5576249d2b2d766696e50768449f98" + integrity sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg== + +"@esbuild/darwin-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz#6e8517a045ddd86ae30c6608c8475ebc0c4000bb" + integrity sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA== + +"@esbuild/darwin-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz#90ed098e1f9dd8a9381695b207e1cff45540a0d0" + integrity sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA== + +"@esbuild/freebsd-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz#d71502d1ee89a1130327e890364666c760a2a911" + integrity sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw== + +"@esbuild/freebsd-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz#aa5ea58d9c1dd9af688b8b6f63ef0d3d60cea53c" + integrity sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw== + +"@esbuild/linux-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz#055b63725df678379b0f6db9d0fa85463755b2e5" + integrity sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A== + +"@esbuild/linux-arm@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz#76b3b98cb1f87936fbc37f073efabad49dcd889c" + integrity sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg== + +"@esbuild/linux-ia32@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz#c0e5e787c285264e5dfc7a79f04b8b4eefdad7fa" + integrity sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig== + +"@esbuild/linux-loong64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz#a6184e62bd7cdc63e0c0448b83801001653219c5" + integrity sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ== + +"@esbuild/linux-mips64el@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz#d08e39ce86f45ef8fc88549d29c62b8acf5649aa" + integrity sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA== + +"@esbuild/linux-ppc64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz#8d252f0b7756ffd6d1cbde5ea67ff8fd20437f20" + integrity sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg== + +"@esbuild/linux-riscv64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz#19f6dcdb14409dae607f66ca1181dd4e9db81300" + integrity sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg== + +"@esbuild/linux-s390x@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz#3c830c90f1a5d7dd1473d5595ea4ebb920988685" + integrity sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ== + +"@esbuild/linux-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz#86eca35203afc0d9de0694c64ec0ab0a378f6fff" + integrity sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw== + +"@esbuild/netbsd-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz#e771c8eb0e0f6e1877ffd4220036b98aed5915e6" + integrity sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ== + +"@esbuild/openbsd-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz#9a795ae4b4e37e674f0f4d716f3e226dd7c39baf" + integrity sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ== + +"@esbuild/sunos-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz#7df23b61a497b8ac189def6e25a95673caedb03f" + integrity sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w== + +"@esbuild/win32-arm64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz#f1ae5abf9ca052ae11c1bc806fb4c0f519bacf90" + integrity sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ== + +"@esbuild/win32-ia32@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz#241fe62c34d8e8461cd708277813e1d0ba55ce23" + integrity sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ== + +"@esbuild/win32-x64@0.20.2": + version "0.20.2" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz#9c907b21e30a52db959ba4f80bb01a0cc403d5cc" + integrity sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ== + "@eslint/eslintrc@^0.2.1": version "0.2.2" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.2.2.tgz#d01fc791e2fc33e88a29d6f3dc7e93d0cd784b76" @@ -228,7 +343,24 @@ "@types/istanbul-reports" "^1.1.1" "@types/yargs" "^13.0.0" -<<<<<<< HEAD +"@jridgewell/resolve-uri@^3.0.3": + 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/sourcemap-codec@^1.4.10": + 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.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@lerna/add@4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@lerna/add/-/add-4.0.0.tgz#c36f57d132502a57b9e7058d1548b7a565ef183f" @@ -296,30 +428,6 @@ version "4.0.0" resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-4.0.0.tgz#341b96a57dffbd9705646d316e231df6fa4df6e1" integrity sha512-XtCnmCT9eyVsUUHx6y/CTBYdV9g2Cr/VxyseTWBgfIur92/YKClfEtJTbOh94jRT62hlKLqSvux/UhxXVh613Q== -======= -"@jridgewell/resolve-uri@^3.0.3": - 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/sourcemap-codec@^1.4.10": - 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.9": - version "0.3.9" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@lerna/child-process@7.4.2": - version "7.4.2" - resolved "https://registry.yarnpkg.com/@lerna/child-process/-/child-process-7.4.2.tgz#a2fd013ac2150dc288270d3e0d0b850c06bec511" - integrity sha512-je+kkrfcvPcwL5Tg8JRENRqlbzjdlZXyaR88UcnCdNW0AJ1jX9IfHRys1X7AwSroU2ug8ESNC+suoBw1vX833Q== ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) dependencies: chalk "^4.1.0" execa "^5.0.0" @@ -1201,50 +1309,10 @@ dependencies: any-observable "^0.3.0" -<<<<<<< HEAD "@tootallnate/once@1": version "1.1.2" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== -======= -"@sigstore/bundle@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-1.1.0.tgz#17f8d813b09348b16eeed66a8cf1c3d6bd3d04f1" - integrity sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog== - dependencies: - "@sigstore/protobuf-specs" "^0.2.0" - -"@sigstore/protobuf-specs@^0.2.0": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.2.1.tgz#be9ef4f3c38052c43bd399d3f792c97ff9e2277b" - integrity sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A== - -"@sigstore/sign@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@sigstore/sign/-/sign-1.0.0.tgz#6b08ebc2f6c92aa5acb07a49784cb6738796f7b4" - integrity sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA== - dependencies: - "@sigstore/bundle" "^1.1.0" - "@sigstore/protobuf-specs" "^0.2.0" - make-fetch-happen "^11.0.1" - -"@sigstore/tuf@^1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@sigstore/tuf/-/tuf-1.0.3.tgz#2a65986772ede996485728f027b0514c0b70b160" - integrity sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg== - dependencies: - "@sigstore/protobuf-specs" "^0.2.0" - tuf-js "^1.1.7" - -"@sinclair/typebox@^0.27.8": - version "0.27.8" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" - integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== - -"@tootallnate/once@2": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" - integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== "@tsconfig/node10@^1.0.7": version "1.0.11" @@ -1266,20 +1334,6 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== -"@tufjs/canonical-json@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz#eade9fd1f537993bc1f0949f3aea276ecc4fab31" - integrity sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ== - -"@tufjs/models@1.0.4": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@tufjs/models/-/models-1.0.4.tgz#5a689630f6b9dbda338d4b208019336562f176ef" - integrity sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A== - dependencies: - "@tufjs/canonical-json" "1.0.0" - minimatch "^9.0.0" ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) - "@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" @@ -3276,6 +3330,35 @@ es-to-primitive@^1.2.1: is-date-object "^1.0.1" is-symbol "^1.0.2" +esbuild@~0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.20.2.tgz#9d6b2386561766ee6b5a55196c6d766d28c87ea1" + integrity sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g== + optionalDependencies: + "@esbuild/aix-ppc64" "0.20.2" + "@esbuild/android-arm" "0.20.2" + "@esbuild/android-arm64" "0.20.2" + "@esbuild/android-x64" "0.20.2" + "@esbuild/darwin-arm64" "0.20.2" + "@esbuild/darwin-x64" "0.20.2" + "@esbuild/freebsd-arm64" "0.20.2" + "@esbuild/freebsd-x64" "0.20.2" + "@esbuild/linux-arm" "0.20.2" + "@esbuild/linux-arm64" "0.20.2" + "@esbuild/linux-ia32" "0.20.2" + "@esbuild/linux-loong64" "0.20.2" + "@esbuild/linux-mips64el" "0.20.2" + "@esbuild/linux-ppc64" "0.20.2" + "@esbuild/linux-riscv64" "0.20.2" + "@esbuild/linux-s390x" "0.20.2" + "@esbuild/linux-x64" "0.20.2" + "@esbuild/netbsd-x64" "0.20.2" + "@esbuild/openbsd-x64" "0.20.2" + "@esbuild/sunos-x64" "0.20.2" + "@esbuild/win32-arm64" "0.20.2" + "@esbuild/win32-ia32" "0.20.2" + "@esbuild/win32-x64" "0.20.2" + escalade@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" @@ -3767,6 +3850,11 @@ fsevents@~2.3.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== +fsevents@~2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -3894,6 +3982,13 @@ get-stream@^6.0.0: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== +get-tsconfig@^4.7.3: + version "4.7.3" + resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.7.3.tgz#0498163d98f7b58484dd4906999c0c9d5f103f83" + integrity sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg== + dependencies: + resolve-pkg-maps "^1.0.0" + get-value@^2.0.3, get-value@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" @@ -7248,6 +7343,11 @@ resolve-options@^1.1.0: dependencies: value-or-function "^3.0.0" +resolve-pkg-maps@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f" + integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw== + resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" @@ -7821,20 +7921,7 @@ string-template@~0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add" -<<<<<<< HEAD string-width@^1.0.0, string-width@^1.0.1, string-width@^1.0.2: -======= -"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.2.3: - 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: ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" dependencies: @@ -7940,16 +8027,6 @@ stringify-package@^1.0.1: resolved "https://registry.yarnpkg.com/stringify-package/-/stringify-package-1.0.1.tgz#e5aa3643e7f74d0f28628b72f3dad5cecfc3ba85" integrity sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg== -<<<<<<< HEAD -======= -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", 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" - ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) 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" @@ -7976,16 +8053,6 @@ strip-ansi@^6.0.0: dependencies: ansi-regex "^5.0.0" -<<<<<<< HEAD -======= -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" - ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) strip-ansi@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.1.1.tgz#39e8a98d044d150660abe4a6808acf70bb7bc991" @@ -8383,6 +8450,16 @@ tsutils@^3.17.1: dependencies: tslib "^1.8.1" +tsx@^4.9.1: + version "4.9.1" + resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.9.1.tgz#e8eb1ce2766ce9067d577fba237a3cf884b229fa" + integrity sha512-CqSJaYyZ6GEqnGtPuMPQHvUwRGU6VHSVF+RDxoOmRg/XD4aF0pD973tKhoUYGQtdcoCHcSOGk34ioFaP+vYcMQ== + dependencies: + esbuild "~0.20.2" + get-tsconfig "^4.7.3" + optionalDependencies: + fsevents "~2.3.3" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -8449,22 +8526,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" -<<<<<<< HEAD -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@>=3 < 6": - version "5.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" - integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== - typescript@~4.7.2, typescript@~4.7.3: version "4.7.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) uglify-js@^3.1.4: version "3.8.0" @@ -8632,23 +8697,16 @@ util-promisify@^2.1.0: dependencies: object.getownpropertydescriptors "^2.0.3" -<<<<<<< HEAD uuid@^3.3.2: version "3.4.0" 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.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" - integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) - 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" @@ -8883,18 +8941,6 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= -<<<<<<< HEAD -======= -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", 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" - ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) wrap-ansi@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-3.0.1.tgz#288a04d87eda5c286e060dfe8f135ce8d007f8ba" @@ -8921,7 +8967,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -<<<<<<< HEAD wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" @@ -8930,16 +8975,6 @@ wrap-ansi@^7.0.0: ansi-styles "^4.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" ->>>>>>> 47ee798ea (Upgrade typescript version to 4.7.2) wrappy@1: version "1.0.2"