diff --git a/.gitignore b/.gitignore index 6de6297ad3..5a389abf5b 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,5 @@ node_modules .nx/ .cursor/rules/nx-rules.mdc +.eslintcache .github/instructions/nx.instructions.md diff --git a/.monorepolint.config.mjs b/.monorepolint.config.mjs index 5ce247918c..29c9fef2bf 100644 --- a/.monorepolint.config.mjs +++ b/.monorepolint.config.mjs @@ -1,4 +1,3 @@ -// @ts-check import * as path from "node:path"; import { existsSync } from "node:fs"; import * as fs from "node:fs/promises"; @@ -10,13 +9,15 @@ import { packageScript, requireDependency, REMOVE, + standardTsconfig, + fileContents, } from "@monorepolint/rules"; const PACKAGES = []; // packages that aren't @turf/turf -const MAIN_PACKAGE = "@turf/turf"; +const AGG_PACKAGE = "@turf/turf"; // aggregate package utilising rollup -const TAPE_PACKAGES = []; // packages that have tape tests -const TYPES_PACKAGES = []; // packages that have types tests +const TAPE_PACKAGES = []; // packages with tape tests +const TYPES_PACKAGES = []; // packages with types tests const TSTYCHE_PACKAGES = []; // packages that use tstyche for type tests. // iterate all the packages and figure out what buckets everything falls into @@ -32,7 +33,7 @@ for (const pk of await fs.readdir(packagesPath)) { PACKAGES.push(name); - if (existsSync(path.join(pk, "test.js"))) { + if (existsSync(path.join(pk, "test.ts"))) { TAPE_PACKAGES.push(name); } @@ -83,23 +84,28 @@ export default { }), alphabeticalDependencies({ includeWorkspaceRoot: true }), alphabeticalScripts({ includeWorkspaceRoot: true }), + standardTsconfig({ + options: { templateFile: "./templates/package/tsconfig.json" }, + includePackages: [...PACKAGES, AGG_PACKAGE], + }), + standardTsconfig({ + options: { + file: "tsconfig.cjs.json", + templateFile: "./templates/package/tsconfig.cjs.json", + }, + includePackages: [...PACKAGES, AGG_PACKAGE], + }), packageEntry({ options: { entries: { type: "module", - main: "dist/cjs/index.cjs", + main: "dist/cjs/index.js", module: "dist/esm/index.js", types: "dist/esm/index.d.ts", sideEffects: false, publishConfig: { access: "public", }, - // @turf/turf is commonly consumed through CDNs, moving this output file is a breaking change for anyone - // who has a hardcoded reference to this specific file, instead of letting the CDN pick the path. - // Example of a URL that will break: https://unpkg.com/@turf/turf/dist/turf.min.js - // Example of a URL that will keep working: https://unpkg.com/@turf/turf - browser: "turf.min.js", - files: ["dist", "turf.min.js"], exports: { "./package.json": "./package.json", ".": { @@ -108,54 +114,37 @@ export default { default: "./dist/esm/index.js", }, require: { - types: "./dist/cjs/index.d.cts", - default: "./dist/cjs/index.cjs", + types: "./dist/cjs/index.d.ts", + default: "./dist/cjs/index.js", }, }, }, }, }, - includePackages: [MAIN_PACKAGE], + includePackages: PACKAGES, }), - packageEntry({ options: { entries: { - type: "module", - main: "dist/cjs/index.cjs", - module: "dist/esm/index.js", - types: "dist/esm/index.d.ts", - sideEffects: false, - publishConfig: { - access: "public", - }, - exports: { - "./package.json": "./package.json", - ".": { - import: { - types: "./dist/esm/index.d.ts", - default: "./dist/esm/index.js", - }, - require: { - types: "./dist/cjs/index.d.cts", - default: "./dist/cjs/index.cjs", - }, - }, - }, + files: ["dist"], }, }, includePackages: PACKAGES, + excludePackages: [AGG_PACKAGE], }), - packageEntry({ options: { entries: { - files: ["dist"], + // @turf/turf is commonly consumed through CDNs, moving this output file is a breaking change for anyone + // who has a hardcoded reference to this specific file, instead of letting the CDN pick the path. + // Example of a URL that will break: https://unpkg.com/@turf/turf/dist/turf.min.js + // Ex ample of a URL that will keep working: https://unpkg.com/@turf/turf + browser: "turf.min.js", + files: ["dist", "turf.min.js"], }, }, - includePackages: PACKAGES, + includePackages: [AGG_PACKAGE], }), - packageEntry({ options: { entries: { @@ -163,52 +152,51 @@ export default { }, }, }), - packageScript({ options: { scripts: { docs: REMOVE, + rollup: "rollup -c rollup.config.js", test: "pnpm run /test:.*/", }, }, - excludePackages: [MAIN_PACKAGE], + includePackages: [AGG_PACKAGE], }), - packageScript({ options: { scripts: { - build: "tsup --config ../../tsup.config.ts", + build: "tsc -b", + "build:cjs": REMOVE, + "build:esm": REMOVE, + prepack: "tsc -b tsconfig.cjs.json", }, }, - includePackages: PACKAGES, + includePackages: [...PACKAGES, AGG_PACKAGE], }), packageScript({ options: { scripts: { - build: - "tsup --config ../../tsup.config.ts && rollup -c rollup.config.js", + bench: "tsx bench.ts", + "test:tape": "tsx test.ts", }, }, - includePackages: [MAIN_PACKAGE], + includePackages: TAPE_PACKAGES, }), packageScript({ options: { scripts: { - bench: "tsx bench.ts", - "test:tape": "tsx test.ts", + "test:types": "tsc --project tsconfig.types.json", }, }, - includePackages: TAPE_PACKAGES, + includePackages: TYPES_PACKAGES, }), - packageScript({ + fileContents({ options: { - scripts: { - "test:types": - "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts", - }, + file: "tsconfig.types.json", + templateFile: "./templates/package/tsconfig.types.json", }, includePackages: TYPES_PACKAGES, }), @@ -224,28 +212,29 @@ export default { requireDependency({ options: { + dependencies: { + "@types/geojson": "catalog:", + tslib: "catalog:", + }, devDependencies: { + "@types/benchmark": "catalog:", + "@types/tape": "catalog:", benchmark: "catalog:", - glob: REMOVE, tape: "catalog:", - tsup: "catalog:", tsx: "catalog:", + typescript: "catalog:", }, }, - includePackages: PACKAGES, + includePackages: [...PACKAGES, AGG_PACKAGE], }), requireDependency({ options: { - dependencies: { - tslib: "catalog:", - }, devDependencies: { - "@types/benchmark": "catalog:", - "@types/tape": "catalog:", - typescript: "catalog:", + glob: REMOVE, }, }, + // Keep glob for @turf/turf test for now. Remove after refactoring. includePackages: PACKAGES, }), @@ -257,14 +246,5 @@ export default { }, includePackages: TSTYCHE_PACKAGES, }), - - requireDependency({ - options: { - dependencies: { - "@types/geojson": "catalog:", - }, - }, - includePackages: [MAIN_PACKAGE, ...PACKAGES], - }), ], }; diff --git a/.prettierignore b/.prettierignore index 75d917b75f..219eec3450 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,4 +10,10 @@ pnpm-lock.yaml /.nx/cache -/.nx/workspace-data \ No newline at end of file +/.nx/workspace-data + +# Auto generated by mrl, which produces a slightly clashing format. +tsconfig.json +tsconfig.cjs.json +tsconfig.shared.json +tsconfig.types.json diff --git a/nx.json b/nx.json index e6ced2dd5d..7730954aa3 100644 --- a/nx.json +++ b/nx.json @@ -1,4 +1,8 @@ { + "analytics": false, + "tui": { + "enabled": false + }, "namedInputs": { "default": [ "{workspaceRoot}/pnpm-lock.yaml", @@ -6,21 +10,9 @@ "{projectRoot}/package.json", "{projectRoot}/tsconfig.json" ], - "sources": ["{projectRoot}/index.{js,ts}", "{projectRoot}/lib/**"] + "sources": ["{projectRoot}/index.ts", "{projectRoot}/lib/**"] }, "targetDefaults": { - "build": { - "dependsOn": ["^build"], - "inputs": [ - "default", - "sources", - "{workspaceRoot}/tsup.config.ts", - "{projectRoot}/index.d.ts", - "{projectRoot}/rollup.config.cjs" - ], - "outputs": ["{projectRoot}/dist"], - "cache": true - }, "test": { "inputs": [ "default", @@ -29,12 +21,7 @@ "{projectRoot}/test/**", "{projectRoot}/types.ts" ], - "dependsOn": ["build"], - "cache": true - }, - "last-checks": { - "inputs": ["default", "{projectRoot}/test.ts"], - "dependsOn": ["build", "^last-checks"], + "dependsOn": [], "cache": true } } diff --git a/package.json b/package.json index a339ee93ce..a5f8f4ee6d 100644 --- a/package.json +++ b/package.json @@ -2,18 +2,26 @@ "private": true, "funding": "https://opencollective.com/turf", "scripts": { + "build": "tsc -b", + "dependencies": "tsc -b", "docs": "node ./scripts/generate-readmes.mts", + "escheck": "pnpm run /escheck:.*/", + "escheck:cjs": "es-check es8 packages/*/dist/cjs/index.js packages/turf/turf.min.js", + "escheck:esm": "es-check --module es8 packages/*/dist/esm/index.js", + "escheck:web": "es-check es5 packages/turf/turf.min.js", "lint": "pnpm run /lint:.*/", "lint:docs": "documentation lint packages/turf-*/index.js", - "lint:escheck-cjs": "es-check es8 packages/*/dist/cjs/index.cjs packages/turf/turf.min.js", - "lint:escheck-esm": "es-check --module es8 packages/*/dist/esm/index.js", - "lint:escheck-web": "es-check es5 packages/turf/turf.min.js", - "lint:eslint": "eslint packages", + "lint:eslint": "eslint --cache packages", "lint:mrl": "mrl check", - "lint:prettier": "prettier --check .", + "lint:prettier": "prettier --cache --check .", "preinstall": "npx only-allow pnpm", - "prepare": "husky && lerna run build", - "test": "pnpm run lint && lerna run test && lerna run --scope @turf/turf last-checks" + "prepack": "tsc -b ./tsconfig.cjs.json && tsx scripts/cjs-package-json.ts && pnpm run --filter @turf/turf rollup", + "prepare": "husky && tsc -b", + "prepublishOnly": "pnpm run lint && pnpm run escheck && pnpm run --filter @turf/turf last-checks", + "release": "pnpm run test:release && pnpm publish -r", + "test": "pnpm exec nx run-many -t test", + "test:release": "pnpm run lint && pnpm run escheck && pnpm run --filter @turf/turf last-checks", + "watch": "tsc -b --watch" }, "lint-staged": { "package.json": [ @@ -22,7 +30,7 @@ "**/*.{js,ts}": [ "eslint --fix" ], - "packages/*/index.{js,ts}": [ + "packages/*/index.ts": [ "node ./scripts/generate-readmes.mts", "git add ./packages/*/README.md" ], @@ -55,9 +63,10 @@ "lint-staged": "^15.5.1", "load-json-file": "^7.0.1", "meow": "^13.2.0", + "nx": "^22.7.1", "prettier": "^3.5.3", "progress": "^2.0.3", - "tsup": "^8.4.0", + "tsx": "^4.19.4", "typescript": "^5.8.3", "typescript-eslint": "^8.38.0", "yaml": "^2.8.2" diff --git a/packages/turf-along/package.json b/packages/turf-along/package.json index 2fb5e72d87..75dfa6e135 100644 --- a/packages/turf-along/package.json +++ b/packages/turf-along/package.json @@ -24,7 +24,7 @@ "distance" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-along/tsconfig.cjs.json b/packages/turf-along/tsconfig.cjs.json new file mode 100644 index 0000000000..22b8c07109 --- /dev/null +++ b/packages/turf-along/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-along/tsconfig.json b/packages/turf-along/tsconfig.json index 563bf86442..5544ce55fa 100644 --- a/packages/turf-along/tsconfig.json +++ b/packages/turf-along/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-angle/package.json b/packages/turf-angle/package.json index e45c5d1d84..ed3442d5a6 100644 --- a/packages/turf-angle/package.json +++ b/packages/turf-angle/package.json @@ -24,7 +24,7 @@ "angle" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-angle/tsconfig.cjs.json b/packages/turf-angle/tsconfig.cjs.json new file mode 100644 index 0000000000..71d926e10e --- /dev/null +++ b/packages/turf-angle/tsconfig.cjs.json @@ -0,0 +1,35 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-sector" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-angle/tsconfig.json b/packages/turf-angle/tsconfig.json index 563bf86442..9f2b0990b5 100644 --- a/packages/turf-angle/tsconfig.json +++ b/packages/turf-angle/tsconfig.json @@ -1,3 +1,30 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-sector" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-area/package.json b/packages/turf-area/package.json index bd2e819b28..48047e5ae0 100644 --- a/packages/turf-area/package.json +++ b/packages/turf-area/package.json @@ -23,7 +23,7 @@ "multipolygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,7 +45,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -55,7 +56,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-area/tsconfig.cjs.json b/packages/turf-area/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-area/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-area/tsconfig.json b/packages/turf-area/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-area/tsconfig.json +++ b/packages/turf-area/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-bbox-clip/package.json b/packages/turf-bbox-clip/package.json index 1d0a229037..01bd2b11b6 100644 --- a/packages/turf-bbox-clip/package.json +++ b/packages/turf-bbox-clip/package.json @@ -29,7 +29,7 @@ "clip" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,7 +51,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -62,7 +63,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-bbox-clip/tsconfig.cjs.json b/packages/turf-bbox-clip/tsconfig.cjs.json new file mode 100644 index 0000000000..3cc80c743e --- /dev/null +++ b/packages/turf-bbox-clip/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-bbox" + } + ] +} diff --git a/packages/turf-bbox-clip/tsconfig.json b/packages/turf-bbox-clip/tsconfig.json index 563bf86442..b3c9853090 100644 --- a/packages/turf-bbox-clip/tsconfig.json +++ b/packages/turf-bbox-clip/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-bbox" + } + ] } diff --git a/packages/turf-bbox-polygon/package.json b/packages/turf-bbox-polygon/package.json index 1f4e0408f0..648ce7d23c 100644 --- a/packages/turf-bbox-polygon/package.json +++ b/packages/turf-bbox-polygon/package.json @@ -24,7 +24,7 @@ "bbox" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -55,7 +56,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-bbox-polygon/tsconfig.cjs.json b/packages/turf-bbox-polygon/tsconfig.cjs.json new file mode 100644 index 0000000000..f8427e2577 --- /dev/null +++ b/packages/turf-bbox-polygon/tsconfig.cjs.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-bbox-polygon/tsconfig.json b/packages/turf-bbox-polygon/tsconfig.json index 563bf86442..d777551892 100644 --- a/packages/turf-bbox-polygon/tsconfig.json +++ b/packages/turf-bbox-polygon/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-bbox/package.json b/packages/turf-bbox/package.json index e22eb73477..4f92f9c76e 100644 --- a/packages/turf-bbox/package.json +++ b/packages/turf-bbox/package.json @@ -25,7 +25,7 @@ "geojson" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,7 +47,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-bbox/tsconfig.cjs.json b/packages/turf-bbox/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-bbox/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-bbox/tsconfig.json b/packages/turf-bbox/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-bbox/tsconfig.json +++ b/packages/turf-bbox/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-bearing/package.json b/packages/turf-bearing/package.json index 70ac298f1e..e6665636e6 100644 --- a/packages/turf-bearing/package.json +++ b/packages/turf-bearing/package.json @@ -21,7 +21,7 @@ "bearing" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,7 +43,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -53,7 +54,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-bearing/tsconfig.cjs.json b/packages/turf-bearing/tsconfig.cjs.json new file mode 100644 index 0000000000..dd4ee8afc8 --- /dev/null +++ b/packages/turf-bearing/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-destination" + } + ] +} diff --git a/packages/turf-bearing/tsconfig.json b/packages/turf-bearing/tsconfig.json index 563bf86442..cbc8f9dd06 100644 --- a/packages/turf-bearing/tsconfig.json +++ b/packages/turf-bearing/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-destination" + } + ] } diff --git a/packages/turf-bezier-spline/lib/spline.ts b/packages/turf-bezier-spline/lib/spline.ts index 67f1595f29..ee6a2d7bd6 100644 --- a/packages/turf-bezier-spline/lib/spline.ts +++ b/packages/turf-bezier-spline/lib/spline.ts @@ -195,5 +195,5 @@ function B(t: number) { ]; } -export { Spline, Point }; +export { Spline, type Point }; export default Spline; diff --git a/packages/turf-bezier-spline/package.json b/packages/turf-bezier-spline/package.json index c660fd33f5..dea2d28a06 100644 --- a/packages/turf-bezier-spline/package.json +++ b/packages/turf-bezier-spline/package.json @@ -24,7 +24,7 @@ "linestring" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-bezier-spline/tsconfig.cjs.json b/packages/turf-bezier-spline/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-bezier-spline/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-bezier-spline/tsconfig.json b/packages/turf-bezier-spline/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-bezier-spline/tsconfig.json +++ b/packages/turf-bezier-spline/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-clockwise/package.json b/packages/turf-boolean-clockwise/package.json index baccdd19b6..be144795e6 100644 --- a/packages/turf-boolean-clockwise/package.json +++ b/packages/turf-boolean-clockwise/package.json @@ -28,7 +28,7 @@ "boolean" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-clockwise/tsconfig.cjs.json b/packages/turf-boolean-clockwise/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-boolean-clockwise/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-boolean-clockwise/tsconfig.json b/packages/turf-boolean-clockwise/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-boolean-clockwise/tsconfig.json +++ b/packages/turf-boolean-clockwise/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-concave/package.json b/packages/turf-boolean-concave/package.json index 0ed294215e..cfcbbc2877 100644 --- a/packages/turf-boolean-concave/package.json +++ b/packages/turf-boolean-concave/package.json @@ -27,7 +27,7 @@ "boolean" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-concave/tsconfig.cjs.json b/packages/turf-boolean-concave/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-boolean-concave/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-boolean-concave/tsconfig.json b/packages/turf-boolean-concave/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-boolean-concave/tsconfig.json +++ b/packages/turf-boolean-concave/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-contains/package.json b/packages/turf-boolean-contains/package.json index 23f6bf6823..ac28317390 100644 --- a/packages/turf-boolean-contains/package.json +++ b/packages/turf-boolean-contains/package.json @@ -28,7 +28,7 @@ "de-9im" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -62,7 +63,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-contains/tsconfig.cjs.json b/packages/turf-boolean-contains/tsconfig.cjs.json new file mode 100644 index 0000000000..cc45cb502f --- /dev/null +++ b/packages/turf-boolean-contains/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-split" + } + ] +} diff --git a/packages/turf-boolean-contains/tsconfig.json b/packages/turf-boolean-contains/tsconfig.json index 563bf86442..78c082052b 100644 --- a/packages/turf-boolean-contains/tsconfig.json +++ b/packages/turf-boolean-contains/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-split" + } + ] } diff --git a/packages/turf-boolean-crosses/package.json b/packages/turf-boolean-crosses/package.json index 8addf0f49c..896b3edb49 100644 --- a/packages/turf-boolean-crosses/package.json +++ b/packages/turf-boolean-crosses/package.json @@ -28,7 +28,7 @@ "de-9im" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-crosses/tsconfig.cjs.json b/packages/turf-boolean-crosses/tsconfig.cjs.json new file mode 100644 index 0000000000..163c312063 --- /dev/null +++ b/packages/turf-boolean-crosses/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-equal" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-polygon-to-line" + } + ] +} diff --git a/packages/turf-boolean-crosses/tsconfig.json b/packages/turf-boolean-crosses/tsconfig.json index 563bf86442..55032f0e63 100644 --- a/packages/turf-boolean-crosses/tsconfig.json +++ b/packages/turf-boolean-crosses/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-equal" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-polygon-to-line" + } + ] } diff --git a/packages/turf-boolean-disjoint/package.json b/packages/turf-boolean-disjoint/package.json index 067b17eff0..be5b739b57 100644 --- a/packages/turf-boolean-disjoint/package.json +++ b/packages/turf-boolean-disjoint/package.json @@ -27,7 +27,7 @@ "de-9im" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -60,7 +61,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-disjoint/tsconfig.cjs.json b/packages/turf-boolean-disjoint/tsconfig.cjs.json new file mode 100644 index 0000000000..9d8d23a57b --- /dev/null +++ b/packages/turf-boolean-disjoint/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-polygon-to-line" + } + ] +} diff --git a/packages/turf-boolean-disjoint/tsconfig.json b/packages/turf-boolean-disjoint/tsconfig.json index 563bf86442..84615fc66f 100644 --- a/packages/turf-boolean-disjoint/tsconfig.json +++ b/packages/turf-boolean-disjoint/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-polygon-to-line" + } + ] } diff --git a/packages/turf-boolean-equal/package.json b/packages/turf-boolean-equal/package.json index b4a20249d1..58d7829df9 100644 --- a/packages/turf-boolean-equal/package.json +++ b/packages/turf-boolean-equal/package.json @@ -30,7 +30,7 @@ "boolean-equal" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -41,8 +41,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -52,7 +52,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -63,7 +64,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-equal/tsconfig.cjs.json b/packages/turf-boolean-equal/tsconfig.cjs.json new file mode 100644 index 0000000000..217e11f6a5 --- /dev/null +++ b/packages/turf-boolean-equal/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-boolean-equal/tsconfig.json b/packages/turf-boolean-equal/tsconfig.json index 563bf86442..74b2198061 100644 --- a/packages/turf-boolean-equal/tsconfig.json +++ b/packages/turf-boolean-equal/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-intersects/package.json b/packages/turf-boolean-intersects/package.json index 01bd7e119c..d6c7f98017 100644 --- a/packages/turf-boolean-intersects/package.json +++ b/packages/turf-boolean-intersects/package.json @@ -28,7 +28,7 @@ "de-9im" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-intersects/tsconfig.cjs.json b/packages/turf-boolean-intersects/tsconfig.cjs.json new file mode 100644 index 0000000000..4b05a93bc4 --- /dev/null +++ b/packages/turf-boolean-intersects/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-disjoint" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-boolean-intersects/tsconfig.json b/packages/turf-boolean-intersects/tsconfig.json index 563bf86442..bfbe6623bb 100644 --- a/packages/turf-boolean-intersects/tsconfig.json +++ b/packages/turf-boolean-intersects/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-disjoint" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-boolean-overlap/package.json b/packages/turf-boolean-overlap/package.json index 8b768438d7..4283a5873e 100644 --- a/packages/turf-boolean-overlap/package.json +++ b/packages/turf-boolean-overlap/package.json @@ -29,7 +29,7 @@ "boolean-overlap" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,7 +51,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -62,7 +63,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-overlap/tsconfig.cjs.json b/packages/turf-boolean-overlap/tsconfig.cjs.json new file mode 100644 index 0000000000..bc095656e5 --- /dev/null +++ b/packages/turf-boolean-overlap/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-line-overlap" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-boolean-overlap/tsconfig.json b/packages/turf-boolean-overlap/tsconfig.json index 563bf86442..e2ee68a623 100644 --- a/packages/turf-boolean-overlap/tsconfig.json +++ b/packages/turf-boolean-overlap/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-line-overlap" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-boolean-parallel/package.json b/packages/turf-boolean-parallel/package.json index 14042fe65d..08e12a95c6 100644 --- a/packages/turf-boolean-parallel/package.json +++ b/packages/turf-boolean-parallel/package.json @@ -26,7 +26,7 @@ "boolean-parallel" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -37,8 +37,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -48,7 +48,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -58,7 +59,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-boolean-parallel/tsconfig.cjs.json b/packages/turf-boolean-parallel/tsconfig.cjs.json new file mode 100644 index 0000000000..1c18b410bb --- /dev/null +++ b/packages/turf-boolean-parallel/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-rhumb-bearing" + } + ] +} diff --git a/packages/turf-boolean-parallel/tsconfig.json b/packages/turf-boolean-parallel/tsconfig.json index 563bf86442..1fc6ded895 100644 --- a/packages/turf-boolean-parallel/tsconfig.json +++ b/packages/turf-boolean-parallel/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-rhumb-bearing" + } + ] } diff --git a/packages/turf-boolean-point-in-polygon/package.json b/packages/turf-boolean-point-in-polygon/package.json index 2e470ae588..3bd6fe5d96 100644 --- a/packages/turf-boolean-point-in-polygon/package.json +++ b/packages/turf-boolean-point-in-polygon/package.json @@ -25,7 +25,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,7 +47,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-point-in-polygon/tsconfig.cjs.json b/packages/turf-boolean-point-in-polygon/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-boolean-point-in-polygon/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-boolean-point-in-polygon/tsconfig.json b/packages/turf-boolean-point-in-polygon/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-boolean-point-in-polygon/tsconfig.json +++ b/packages/turf-boolean-point-in-polygon/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-point-on-line/package.json b/packages/turf-boolean-point-on-line/package.json index aef09aed28..f340059cc5 100644 --- a/packages/turf-boolean-point-on-line/package.json +++ b/packages/turf-boolean-point-on-line/package.json @@ -24,7 +24,7 @@ "booleanPointOnLine" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-boolean-point-on-line/tsconfig.cjs.json b/packages/turf-boolean-point-on-line/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-boolean-point-on-line/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-boolean-point-on-line/tsconfig.json b/packages/turf-boolean-point-on-line/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-boolean-point-on-line/tsconfig.json +++ b/packages/turf-boolean-point-on-line/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-touches/package.json b/packages/turf-boolean-touches/package.json index 2c99d885da..f02524e8cb 100644 --- a/packages/turf-boolean-touches/package.json +++ b/packages/turf-boolean-touches/package.json @@ -28,7 +28,7 @@ "boolean-touches" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,10 +50,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -63,7 +64,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-touches/tsconfig.cjs.json b/packages/turf-boolean-touches/tsconfig.cjs.json new file mode 100644 index 0000000000..3f0accc934 --- /dev/null +++ b/packages/turf-boolean-touches/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-boolean-touches/tsconfig.json b/packages/turf-boolean-touches/tsconfig.json index 563bf86442..c36dae87a8 100644 --- a/packages/turf-boolean-touches/tsconfig.json +++ b/packages/turf-boolean-touches/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-boolean-touches/tsconfig.types.json b/packages/turf-boolean-touches/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-boolean-touches/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-boolean-valid/package.json b/packages/turf-boolean-valid/package.json index 4c4eea1278..de8f589a6e 100644 --- a/packages/turf-boolean-valid/package.json +++ b/packages/turf-boolean-valid/package.json @@ -27,7 +27,7 @@ "ogc" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-valid/tsconfig.cjs.json b/packages/turf-boolean-valid/tsconfig.cjs.json new file mode 100644 index 0000000000..fccfb14c80 --- /dev/null +++ b/packages/turf-boolean-valid/tsconfig.cjs.json @@ -0,0 +1,41 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-crosses" + }, + { + "path": "../turf-boolean-disjoint" + }, + { + "path": "../turf-boolean-overlap" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + } + ] +} diff --git a/packages/turf-boolean-valid/tsconfig.json b/packages/turf-boolean-valid/tsconfig.json index 563bf86442..05483956bf 100644 --- a/packages/turf-boolean-valid/tsconfig.json +++ b/packages/turf-boolean-valid/tsconfig.json @@ -1,3 +1,36 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-crosses" + }, + { + "path": "../turf-boolean-disjoint" + }, + { + "path": "../turf-boolean-overlap" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + } + ] } diff --git a/packages/turf-boolean-within/package.json b/packages/turf-boolean-within/package.json index 92ae68c3ad..5f15483b06 100644 --- a/packages/turf-boolean-within/package.json +++ b/packages/turf-boolean-within/package.json @@ -29,7 +29,7 @@ "boolean-within" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -64,7 +65,6 @@ "boolean-shapely": "*", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-boolean-within/tsconfig.cjs.json b/packages/turf-boolean-within/tsconfig.cjs.json new file mode 100644 index 0000000000..cc45cb502f --- /dev/null +++ b/packages/turf-boolean-within/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-split" + } + ] +} diff --git a/packages/turf-boolean-within/tsconfig.json b/packages/turf-boolean-within/tsconfig.json index 563bf86442..78c082052b 100644 --- a/packages/turf-boolean-within/tsconfig.json +++ b/packages/turf-boolean-within/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-split" + } + ] } diff --git a/packages/turf-boolean-within/tsconfig.types.json b/packages/turf-boolean-within/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-boolean-within/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-buffer/package.json b/packages/turf-buffer/package.json index 0792fa28ad..5c1a21841e 100644 --- a/packages/turf-buffer/package.json +++ b/packages/turf-buffer/package.json @@ -31,7 +31,7 @@ "turf" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -42,8 +42,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -53,7 +53,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", "test:types": "tstyche" @@ -67,7 +68,6 @@ "load-json-file": "^7.0.1", "tape": "catalog:", "tstyche": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-buffer/tsconfig.cjs.json b/packages/turf-buffer/tsconfig.cjs.json new file mode 100644 index 0000000000..701e74944c --- /dev/null +++ b/packages/turf-buffer/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-projection" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-buffer/tsconfig.json b/packages/turf-buffer/tsconfig.json index 563bf86442..14b9edca76 100644 --- a/packages/turf-buffer/tsconfig.json +++ b/packages/turf-buffer/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-projection" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-buffer/tsconfig.types.json b/packages/turf-buffer/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-buffer/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-center-mean/package.json b/packages/turf-center-mean/package.json index a67c706219..b22dd9b341 100644 --- a/packages/turf-center-mean/package.json +++ b/packages/turf-center-mean/package.json @@ -29,7 +29,7 @@ "turf" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/center": "workspace:*", @@ -64,7 +65,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-center-mean/tsconfig.cjs.json b/packages/turf-center-mean/tsconfig.cjs.json new file mode 100644 index 0000000000..f59fee87b2 --- /dev/null +++ b/packages/turf-center-mean/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-center-mean/tsconfig.json b/packages/turf-center-mean/tsconfig.json index 563bf86442..541041942d 100644 --- a/packages/turf-center-mean/tsconfig.json +++ b/packages/turf-center-mean/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-center-mean/tsconfig.types.json b/packages/turf-center-mean/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-center-mean/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-center-median/package.json b/packages/turf-center-median/package.json index 0ba96aaa0d..dfd4db393c 100644 --- a/packages/turf-center-median/package.json +++ b/packages/turf-center-median/package.json @@ -24,7 +24,7 @@ "center-median" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-center-median/tsconfig.cjs.json b/packages/turf-center-median/tsconfig.cjs.json new file mode 100644 index 0000000000..e0a98401e0 --- /dev/null +++ b/packages/turf-center-median/tsconfig.cjs.json @@ -0,0 +1,41 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-center-mean" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-center-of-mass" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-center-median/tsconfig.json b/packages/turf-center-median/tsconfig.json index 563bf86442..333b400b7c 100644 --- a/packages/turf-center-median/tsconfig.json +++ b/packages/turf-center-median/tsconfig.json @@ -1,3 +1,36 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-center-mean" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-center-of-mass" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-center-of-mass/package.json b/packages/turf-center-of-mass/package.json index c8174a46b5..78fc06db8d 100644 --- a/packages/turf-center-of-mass/package.json +++ b/packages/turf-center-of-mass/package.json @@ -21,7 +21,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,10 +43,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -54,7 +55,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-center-of-mass/tsconfig.cjs.json b/packages/turf-center-of-mass/tsconfig.cjs.json new file mode 100644 index 0000000000..12b800d7b2 --- /dev/null +++ b/packages/turf-center-of-mass/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-centroid" + }, + { + "path": "../turf-convex" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-center-of-mass/tsconfig.json b/packages/turf-center-of-mass/tsconfig.json index 563bf86442..d8ac8a56f7 100644 --- a/packages/turf-center-of-mass/tsconfig.json +++ b/packages/turf-center-of-mass/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-centroid" + }, + { + "path": "../turf-convex" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-center-of-mass/tsconfig.types.json b/packages/turf-center-of-mass/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-center-of-mass/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-center/package.json b/packages/turf-center/package.json index 26ed436da8..2de295b4ce 100644 --- a/packages/turf-center/package.json +++ b/packages/turf-center/package.json @@ -25,7 +25,7 @@ "turf" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/bbox-polygon": "workspace:*", @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-center/tsconfig.cjs.json b/packages/turf-center/tsconfig.cjs.json new file mode 100644 index 0000000000..1309e2476d --- /dev/null +++ b/packages/turf-center/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-center/tsconfig.json b/packages/turf-center/tsconfig.json index 563bf86442..66e5d7b5cd 100644 --- a/packages/turf-center/tsconfig.json +++ b/packages/turf-center/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-center/tsconfig.types.json b/packages/turf-center/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-center/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-centroid/package.json b/packages/turf-centroid/package.json index 1503d30f82..4e2b10f628 100644 --- a/packages/turf-centroid/package.json +++ b/packages/turf-centroid/package.json @@ -23,7 +23,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,10 +45,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-centroid/tsconfig.cjs.json b/packages/turf-centroid/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-centroid/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-centroid/tsconfig.json b/packages/turf-centroid/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-centroid/tsconfig.json +++ b/packages/turf-centroid/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-centroid/tsconfig.types.json b/packages/turf-centroid/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-centroid/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-circle/package.json b/packages/turf-circle/package.json index a1733e87dc..495dde5f29 100644 --- a/packages/turf-circle/package.json +++ b/packages/turf-circle/package.json @@ -25,7 +25,7 @@ "km" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@placemarkio/check-geojson": "^0.1.12", @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-circle/tsconfig.cjs.json b/packages/turf-circle/tsconfig.cjs.json new file mode 100644 index 0000000000..a07acc4038 --- /dev/null +++ b/packages/turf-circle/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-destination" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-circle/tsconfig.json b/packages/turf-circle/tsconfig.json index 563bf86442..f5f9cc4d07 100644 --- a/packages/turf-circle/tsconfig.json +++ b/packages/turf-circle/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-destination" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-circle/tsconfig.types.json b/packages/turf-circle/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-circle/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-clean-coords/package.json b/packages/turf-clean-coords/package.json index b5551ae38e..8455bf5df6 100644 --- a/packages/turf-clean-coords/package.json +++ b/packages/turf-clean-coords/package.json @@ -26,7 +26,7 @@ "clean-coords" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -37,8 +37,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -48,10 +48,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -61,7 +62,6 @@ "geojson-equality-ts": "^1.0.2", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-clean-coords/tsconfig.cjs.json b/packages/turf-clean-coords/tsconfig.cjs.json new file mode 100644 index 0000000000..3418e57d3b --- /dev/null +++ b/packages/turf-clean-coords/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-clean-coords/tsconfig.json b/packages/turf-clean-coords/tsconfig.json index 563bf86442..bc8858c0eb 100644 --- a/packages/turf-clean-coords/tsconfig.json +++ b/packages/turf-clean-coords/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-clean-coords/tsconfig.types.json b/packages/turf-clean-coords/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-clean-coords/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-clone/package.json b/packages/turf-clone/package.json index 07c87caab8..53d8df9c95 100644 --- a/packages/turf-clone/package.json +++ b/packages/turf-clone/package.json @@ -24,7 +24,7 @@ "clone" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,10 +46,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/meta": "workspace:*", @@ -57,7 +58,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-clone/tsconfig.cjs.json b/packages/turf-clone/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-clone/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-clone/tsconfig.json b/packages/turf-clone/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-clone/tsconfig.json +++ b/packages/turf-clone/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-clone/tsconfig.types.json b/packages/turf-clone/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-clone/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-clusters-dbscan/index.ts b/packages/turf-clusters-dbscan/index.ts index 862ec0a0d2..829c153fec 100644 --- a/packages/turf-clusters-dbscan/index.ts +++ b/packages/turf-clusters-dbscan/index.ts @@ -201,5 +201,5 @@ function clustersDbscan( return points as FeatureCollection; } -export { Dbscan, DbscanProps, clustersDbscan }; +export { type Dbscan, type DbscanProps, clustersDbscan }; export default clustersDbscan; diff --git a/packages/turf-clusters-dbscan/package.json b/packages/turf-clusters-dbscan/package.json index 8549e979b8..c44eac35cf 100644 --- a/packages/turf-clusters-dbscan/package.json +++ b/packages/turf-clusters-dbscan/package.json @@ -31,7 +31,7 @@ "dbscan" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -42,8 +42,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -53,10 +53,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/centroid": "workspace:*", @@ -69,7 +70,6 @@ "concaveman": "^1.2.1", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-clusters-dbscan/tsconfig.cjs.json b/packages/turf-clusters-dbscan/tsconfig.cjs.json new file mode 100644 index 0000000000..1c3965fbf7 --- /dev/null +++ b/packages/turf-clusters-dbscan/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clusters" + } + ] +} diff --git a/packages/turf-clusters-dbscan/tsconfig.json b/packages/turf-clusters-dbscan/tsconfig.json index 563bf86442..04514a25c6 100644 --- a/packages/turf-clusters-dbscan/tsconfig.json +++ b/packages/turf-clusters-dbscan/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clusters" + } + ] } diff --git a/packages/turf-clusters-dbscan/tsconfig.types.json b/packages/turf-clusters-dbscan/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-clusters-dbscan/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-clusters-kmeans/index.ts b/packages/turf-clusters-kmeans/index.ts index df7e441418..64501fca73 100644 --- a/packages/turf-clusters-kmeans/index.ts +++ b/packages/turf-clusters-kmeans/index.ts @@ -76,5 +76,5 @@ function clustersKmeans( return points as FeatureCollection; } -export { clustersKmeans, KmeansProps }; +export { clustersKmeans, type KmeansProps }; export default clustersKmeans; diff --git a/packages/turf-clusters-kmeans/package.json b/packages/turf-clusters-kmeans/package.json index e79ece6594..4a516b4e12 100644 --- a/packages/turf-clusters-kmeans/package.json +++ b/packages/turf-clusters-kmeans/package.json @@ -30,7 +30,7 @@ "k-means" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -41,8 +41,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -52,10 +52,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/centroid": "workspace:*", @@ -69,7 +70,6 @@ "concaveman": "^1.2.1", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-clusters-kmeans/tsconfig.cjs.json b/packages/turf-clusters-kmeans/tsconfig.cjs.json new file mode 100644 index 0000000000..acb180174c --- /dev/null +++ b/packages/turf-clusters-kmeans/tsconfig.cjs.json @@ -0,0 +1,35 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clusters" + }, + { + "path": "../turf-random" + } + ] +} diff --git a/packages/turf-clusters-kmeans/tsconfig.json b/packages/turf-clusters-kmeans/tsconfig.json index 563bf86442..0037cd50fe 100644 --- a/packages/turf-clusters-kmeans/tsconfig.json +++ b/packages/turf-clusters-kmeans/tsconfig.json @@ -1,3 +1,30 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clusters" + }, + { + "path": "../turf-random" + } + ] } diff --git a/packages/turf-clusters-kmeans/tsconfig.types.json b/packages/turf-clusters-kmeans/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-clusters-kmeans/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-clusters/package.json b/packages/turf-clusters/package.json index d599907fab..b9cde5ec44 100644 --- a/packages/turf-clusters/package.json +++ b/packages/turf-clusters/package.json @@ -27,7 +27,7 @@ "clustering" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,17 +49,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-clusters/tsconfig.cjs.json b/packages/turf-clusters/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-clusters/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-clusters/tsconfig.json b/packages/turf-clusters/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-clusters/tsconfig.json +++ b/packages/turf-clusters/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-clusters/tsconfig.types.json b/packages/turf-clusters/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-clusters/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-collect/package.json b/packages/turf-collect/package.json index 753390eeb3..ba9e2f9953 100644 --- a/packages/turf-collect/package.json +++ b/packages/turf-collect/package.json @@ -28,7 +28,7 @@ "stats" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -60,7 +61,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-collect/tsconfig.cjs.json b/packages/turf-collect/tsconfig.cjs.json new file mode 100644 index 0000000000..303e6745d0 --- /dev/null +++ b/packages/turf-collect/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-collect/tsconfig.json b/packages/turf-collect/tsconfig.json index 563bf86442..e87e5df417 100644 --- a/packages/turf-collect/tsconfig.json +++ b/packages/turf-collect/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-combine/package.json b/packages/turf-combine/package.json index 7b7504ca63..ea1b45b87d 100644 --- a/packages/turf-combine/package.json +++ b/packages/turf-combine/package.json @@ -24,7 +24,7 @@ "combine" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -55,7 +56,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-combine/tsconfig.cjs.json b/packages/turf-combine/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-combine/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-combine/tsconfig.json b/packages/turf-combine/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-combine/tsconfig.json +++ b/packages/turf-combine/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-concave/package.json b/packages/turf-concave/package.json index 4083a246e4..f2c291f2d0 100644 --- a/packages/turf-concave/package.json +++ b/packages/turf-concave/package.json @@ -34,7 +34,7 @@ "geometry" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -45,8 +45,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -56,7 +56,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -68,7 +69,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-concave/tsconfig.cjs.json b/packages/turf-concave/tsconfig.cjs.json new file mode 100644 index 0000000000..2d8943ff0a --- /dev/null +++ b/packages/turf-concave/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-tin" + } + ] +} diff --git a/packages/turf-concave/tsconfig.json b/packages/turf-concave/tsconfig.json index 563bf86442..195b8c233a 100644 --- a/packages/turf-concave/tsconfig.json +++ b/packages/turf-concave/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-tin" + } + ] } diff --git a/packages/turf-convex/package.json b/packages/turf-convex/package.json index 596bfb2c7b..3e2bb85456 100644 --- a/packages/turf-convex/package.json +++ b/packages/turf-convex/package.json @@ -21,7 +21,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,7 +43,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -54,7 +55,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-convex/tsconfig.cjs.json b/packages/turf-convex/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-convex/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-convex/tsconfig.json b/packages/turf-convex/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-convex/tsconfig.json +++ b/packages/turf-convex/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-destination/package.json b/packages/turf-destination/package.json index 875ec8fe08..54c5c5d009 100644 --- a/packages/turf-destination/package.json +++ b/packages/turf-destination/package.json @@ -28,7 +28,7 @@ "km" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-destination/tsconfig.cjs.json b/packages/turf-destination/tsconfig.cjs.json new file mode 100644 index 0000000000..5b7b6e9ec9 --- /dev/null +++ b/packages/turf-destination/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-destination/tsconfig.json b/packages/turf-destination/tsconfig.json index 563bf86442..fa5e53a52b 100644 --- a/packages/turf-destination/tsconfig.json +++ b/packages/turf-destination/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-difference/package.json b/packages/turf-difference/package.json index 0162345cb1..f105836494 100644 --- a/packages/turf-difference/package.json +++ b/packages/turf-difference/package.json @@ -21,7 +21,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,7 +43,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -53,7 +54,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-difference/tsconfig.cjs.json b/packages/turf-difference/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-difference/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-difference/tsconfig.json b/packages/turf-difference/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-difference/tsconfig.json +++ b/packages/turf-difference/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-directional-mean/index.ts b/packages/turf-directional-mean/index.ts index ab92794e3d..14c0f40f60 100644 --- a/packages/turf-directional-mean/index.ts +++ b/packages/turf-directional-mean/index.ts @@ -291,5 +291,5 @@ function getMeanLineString( } } -export { directionalMean, DirectionalMeanLine }; +export { directionalMean, type DirectionalMeanLine }; export default directionalMean; diff --git a/packages/turf-directional-mean/package.json b/packages/turf-directional-mean/package.json index 7668fe9cf5..ebd015874f 100644 --- a/packages/turf-directional-mean/package.json +++ b/packages/turf-directional-mean/package.json @@ -24,7 +24,7 @@ "directional-mean" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-directional-mean/tsconfig.cjs.json b/packages/turf-directional-mean/tsconfig.cjs.json new file mode 100644 index 0000000000..6e08466a06 --- /dev/null +++ b/packages/turf-directional-mean/tsconfig.cjs.json @@ -0,0 +1,35 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-directional-mean/tsconfig.json b/packages/turf-directional-mean/tsconfig.json index 563bf86442..76ac0cc801 100644 --- a/packages/turf-directional-mean/tsconfig.json +++ b/packages/turf-directional-mean/tsconfig.json @@ -1,3 +1,30 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-dissolve/package.json b/packages/turf-dissolve/package.json index 6f28e38013..53ba1f00b3 100644 --- a/packages/turf-dissolve/package.json +++ b/packages/turf-dissolve/package.json @@ -24,7 +24,7 @@ "polygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-dissolve/tsconfig.cjs.json b/packages/turf-dissolve/tsconfig.cjs.json new file mode 100644 index 0000000000..399780ae3c --- /dev/null +++ b/packages/turf-dissolve/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-flatten" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-dissolve/tsconfig.json b/packages/turf-dissolve/tsconfig.json index 563bf86442..f0fe77fb0c 100644 --- a/packages/turf-dissolve/tsconfig.json +++ b/packages/turf-dissolve/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-flatten" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-distance-weight/package.json b/packages/turf-distance-weight/package.json index e7ad5ea27e..a9e0069c1b 100644 --- a/packages/turf-distance-weight/package.json +++ b/packages/turf-distance-weight/package.json @@ -24,7 +24,7 @@ "distance-weight" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-distance-weight/tsconfig.cjs.json b/packages/turf-distance-weight/tsconfig.cjs.json new file mode 100644 index 0000000000..642da00835 --- /dev/null +++ b/packages/turf-distance-weight/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-centroid" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-distance-weight/tsconfig.json b/packages/turf-distance-weight/tsconfig.json index 563bf86442..14ce280364 100644 --- a/packages/turf-distance-weight/tsconfig.json +++ b/packages/turf-distance-weight/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-centroid" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-distance/package.json b/packages/turf-distance/package.json index f77336fdc6..1864b4c34a 100644 --- a/packages/turf-distance/package.json +++ b/packages/turf-distance/package.json @@ -23,7 +23,7 @@ "km" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,7 +45,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -55,7 +56,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-distance/tsconfig.cjs.json b/packages/turf-distance/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-distance/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-distance/tsconfig.json b/packages/turf-distance/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-distance/tsconfig.json +++ b/packages/turf-distance/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-ellipse/package.json b/packages/turf-ellipse/package.json index f7321c9217..cf2108e84f 100644 --- a/packages/turf-ellipse/package.json +++ b/packages/turf-ellipse/package.json @@ -25,7 +25,7 @@ "ellipse" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,7 +47,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -63,7 +64,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-ellipse/tsconfig.cjs.json b/packages/turf-ellipse/tsconfig.cjs.json new file mode 100644 index 0000000000..812c8afc5f --- /dev/null +++ b/packages/turf-ellipse/tsconfig.cjs.json @@ -0,0 +1,44 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-transform-rotate" + }, + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-circle" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-ellipse/tsconfig.json b/packages/turf-ellipse/tsconfig.json index 563bf86442..4f4a724a4a 100644 --- a/packages/turf-ellipse/tsconfig.json +++ b/packages/turf-ellipse/tsconfig.json @@ -1,3 +1,39 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-transform-rotate" + }, + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-circle" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-envelope/package.json b/packages/turf-envelope/package.json index 804b8505b4..ecb67c9653 100644 --- a/packages/turf-envelope/package.json +++ b/packages/turf-envelope/package.json @@ -24,7 +24,7 @@ "extent" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-envelope/tsconfig.cjs.json b/packages/turf-envelope/tsconfig.cjs.json new file mode 100644 index 0000000000..90c551c87d --- /dev/null +++ b/packages/turf-envelope/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-envelope/tsconfig.json b/packages/turf-envelope/tsconfig.json index 563bf86442..cce690d543 100644 --- a/packages/turf-envelope/tsconfig.json +++ b/packages/turf-envelope/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-explode/package.json b/packages/turf-explode/package.json index 4ae636fe8a..f1891875ce 100644 --- a/packages/turf-explode/package.json +++ b/packages/turf-explode/package.json @@ -23,7 +23,7 @@ "coordinates" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,7 +45,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -55,7 +56,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-explode/tsconfig.cjs.json b/packages/turf-explode/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-explode/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-explode/tsconfig.json b/packages/turf-explode/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-explode/tsconfig.json +++ b/packages/turf-explode/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-flatten/package.json b/packages/turf-flatten/package.json index 49449fb54e..71634a9074 100644 --- a/packages/turf-flatten/package.json +++ b/packages/turf-flatten/package.json @@ -28,7 +28,7 @@ "featurecollection" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,10 +50,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-flatten/tsconfig.cjs.json b/packages/turf-flatten/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-flatten/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-flatten/tsconfig.json b/packages/turf-flatten/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-flatten/tsconfig.json +++ b/packages/turf-flatten/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-flatten/tsconfig.types.json b/packages/turf-flatten/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-flatten/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-flip/package.json b/packages/turf-flip/package.json index e48e0d82f7..23642da902 100644 --- a/packages/turf-flip/package.json +++ b/packages/turf-flip/package.json @@ -23,7 +23,7 @@ "flip" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,10 +45,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-flip/tsconfig.cjs.json b/packages/turf-flip/tsconfig.cjs.json new file mode 100644 index 0000000000..fdeeaf1d9a --- /dev/null +++ b/packages/turf-flip/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-flip/tsconfig.json b/packages/turf-flip/tsconfig.json index 563bf86442..79aa2341a7 100644 --- a/packages/turf-flip/tsconfig.json +++ b/packages/turf-flip/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-flip/tsconfig.types.json b/packages/turf-flip/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-flip/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-geojson-rbush/package.json b/packages/turf-geojson-rbush/package.json index 700f112071..90d45e1055 100644 --- a/packages/turf-geojson-rbush/package.json +++ b/packages/turf-geojson-rbush/package.json @@ -29,7 +29,7 @@ "rbush" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/bbox-polygon": "workspace:*", @@ -65,7 +66,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-geojson-rbush/tsconfig.cjs.json b/packages/turf-geojson-rbush/tsconfig.cjs.json new file mode 100644 index 0000000000..9e1c67b28b --- /dev/null +++ b/packages/turf-geojson-rbush/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-random" + } + ] +} diff --git a/packages/turf-geojson-rbush/tsconfig.json b/packages/turf-geojson-rbush/tsconfig.json index 563bf86442..2574034e8a 100644 --- a/packages/turf-geojson-rbush/tsconfig.json +++ b/packages/turf-geojson-rbush/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-random" + } + ] } diff --git a/packages/turf-geojson-rbush/tsconfig.types.json b/packages/turf-geojson-rbush/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-geojson-rbush/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-great-circle/package.json b/packages/turf-great-circle/package.json index c14ba28ce3..7881399d36 100644 --- a/packages/turf-great-circle/package.json +++ b/packages/turf-great-circle/package.json @@ -30,7 +30,7 @@ "circle" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -41,8 +41,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -52,10 +52,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -64,7 +65,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-great-circle/tsconfig.cjs.json b/packages/turf-great-circle/tsconfig.cjs.json new file mode 100644 index 0000000000..5b7b6e9ec9 --- /dev/null +++ b/packages/turf-great-circle/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-great-circle/tsconfig.json b/packages/turf-great-circle/tsconfig.json index 563bf86442..fa5e53a52b 100644 --- a/packages/turf-great-circle/tsconfig.json +++ b/packages/turf-great-circle/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-great-circle/tsconfig.types.json b/packages/turf-great-circle/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-great-circle/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-helpers/package.json b/packages/turf-helpers/package.json index 8d0f2b3e83..52b4e64cb3 100644 --- a/packages/turf-helpers/package.json +++ b/packages/turf-helpers/package.json @@ -29,7 +29,7 @@ "geojson" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,17 +51,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-helpers/tsconfig.cjs.json b/packages/turf-helpers/tsconfig.cjs.json new file mode 100644 index 0000000000..baa5190e1d --- /dev/null +++ b/packages/turf-helpers/tsconfig.cjs.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [] +} diff --git a/packages/turf-helpers/tsconfig.json b/packages/turf-helpers/tsconfig.json index 563bf86442..2aa4968a91 100644 --- a/packages/turf-helpers/tsconfig.json +++ b/packages/turf-helpers/tsconfig.json @@ -1,3 +1,8 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [] } diff --git a/packages/turf-helpers/tsconfig.types.json b/packages/turf-helpers/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-helpers/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-hex-grid/package.json b/packages/turf-hex-grid/package.json index ab3adcd737..0d13468ddc 100644 --- a/packages/turf-hex-grid/package.json +++ b/packages/turf-hex-grid/package.json @@ -33,7 +33,7 @@ "geojson" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -44,8 +44,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -55,10 +55,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/bbox-polygon": "workspace:*", @@ -68,7 +69,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-hex-grid/tsconfig.cjs.json b/packages/turf-hex-grid/tsconfig.cjs.json new file mode 100644 index 0000000000..7d20b86a10 --- /dev/null +++ b/packages/turf-hex-grid/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-hex-grid/tsconfig.json b/packages/turf-hex-grid/tsconfig.json index 563bf86442..3bfafc8ec5 100644 --- a/packages/turf-hex-grid/tsconfig.json +++ b/packages/turf-hex-grid/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-hex-grid/tsconfig.types.json b/packages/turf-hex-grid/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-hex-grid/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-interpolate/package.json b/packages/turf-interpolate/package.json index de0212603c..9e2a2ce135 100644 --- a/packages/turf-interpolate/package.json +++ b/packages/turf-interpolate/package.json @@ -25,7 +25,7 @@ "interpolate" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -60,7 +61,6 @@ "chromatism": "^3.0.0", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-interpolate/tsconfig.cjs.json b/packages/turf-interpolate/tsconfig.cjs.json new file mode 100644 index 0000000000..473f23c180 --- /dev/null +++ b/packages/turf-interpolate/tsconfig.cjs.json @@ -0,0 +1,50 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-hex-grid" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-square-grid" + }, + { + "path": "../turf-triangle-grid" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-interpolate/tsconfig.json b/packages/turf-interpolate/tsconfig.json index 563bf86442..36e7004f42 100644 --- a/packages/turf-interpolate/tsconfig.json +++ b/packages/turf-interpolate/tsconfig.json @@ -1,3 +1,45 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-hex-grid" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-square-grid" + }, + { + "path": "../turf-triangle-grid" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-interpolate/tsconfig.types.json b/packages/turf-interpolate/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-interpolate/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-intersect/package.json b/packages/turf-intersect/package.json index dcf93c2613..c30b8e33b8 100644 --- a/packages/turf-intersect/package.json +++ b/packages/turf-intersect/package.json @@ -22,7 +22,7 @@ "intersect" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -33,8 +33,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -44,10 +44,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -55,7 +56,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-intersect/tsconfig.cjs.json b/packages/turf-intersect/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-intersect/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-intersect/tsconfig.json b/packages/turf-intersect/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-intersect/tsconfig.json +++ b/packages/turf-intersect/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-intersect/tsconfig.types.json b/packages/turf-intersect/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-intersect/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-invariant/package.json b/packages/turf-invariant/package.json index b299b8ff02..d00ebed78c 100644 --- a/packages/turf-invariant/package.json +++ b/packages/turf-invariant/package.json @@ -26,7 +26,7 @@ "expectations" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -37,8 +37,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -48,17 +48,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-invariant/tsconfig.cjs.json b/packages/turf-invariant/tsconfig.cjs.json new file mode 100644 index 0000000000..f8427e2577 --- /dev/null +++ b/packages/turf-invariant/tsconfig.cjs.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-invariant/tsconfig.json b/packages/turf-invariant/tsconfig.json index 563bf86442..d777551892 100644 --- a/packages/turf-invariant/tsconfig.json +++ b/packages/turf-invariant/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-invariant/tsconfig.types.json b/packages/turf-invariant/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-invariant/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-isobands/package.json b/packages/turf-isobands/package.json index ca5c27369b..4565bc9c9f 100644 --- a/packages/turf-isobands/package.json +++ b/packages/turf-isobands/package.json @@ -30,7 +30,7 @@ "filled" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -41,8 +41,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -52,7 +52,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -67,7 +68,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-isobands/tsconfig.cjs.json b/packages/turf-isobands/tsconfig.cjs.json new file mode 100644 index 0000000000..e8a641cea9 --- /dev/null +++ b/packages/turf-isobands/tsconfig.cjs.json @@ -0,0 +1,50 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-isobands/tsconfig.json b/packages/turf-isobands/tsconfig.json index 563bf86442..6264e0acde 100644 --- a/packages/turf-isobands/tsconfig.json +++ b/packages/turf-isobands/tsconfig.json @@ -1,3 +1,45 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-isolines/package.json b/packages/turf-isolines/package.json index cf4dc74c4c..575f078646 100644 --- a/packages/turf-isolines/package.json +++ b/packages/turf-isolines/package.json @@ -29,7 +29,7 @@ "topography" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/envelope": "workspace:*", @@ -67,7 +68,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-isolines/tsconfig.cjs.json b/packages/turf-isolines/tsconfig.cjs.json new file mode 100644 index 0000000000..46110a36d2 --- /dev/null +++ b/packages/turf-isolines/tsconfig.cjs.json @@ -0,0 +1,41 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-isolines/tsconfig.json b/packages/turf-isolines/tsconfig.json index 563bf86442..f1c312684f 100644 --- a/packages/turf-isolines/tsconfig.json +++ b/packages/turf-isolines/tsconfig.json @@ -1,3 +1,36 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-isolines/tsconfig.types.json b/packages/turf-isolines/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-isolines/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-kinks/lib/sweepline-intersections-export.ts b/packages/turf-kinks/lib/sweepline-intersections-export.ts deleted file mode 100644 index 2d10f64b69..0000000000 --- a/packages/turf-kinks/lib/sweepline-intersections-export.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Get around problems with moduleResolution node16 and some older libraries. -// Manifests as "This expression is not callable ... has no call signatures" -// https://stackoverflow.com/a/74709714 - -import lib from "sweepline-intersections"; - -export const sweeplineIntersections = lib as unknown as typeof lib.default; diff --git a/packages/turf-kinks/package.json b/packages/turf-kinks/package.json index e5a51b5009..9d8b641b67 100644 --- a/packages/turf-kinks/package.json +++ b/packages/turf-kinks/package.json @@ -22,7 +22,7 @@ "self-intersection" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -33,8 +33,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -44,10 +44,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/meta": "workspace:*", @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-kinks/tsconfig.cjs.json b/packages/turf-kinks/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-kinks/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-kinks/tsconfig.json b/packages/turf-kinks/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-kinks/tsconfig.json +++ b/packages/turf-kinks/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-kinks/tsconfig.types.json b/packages/turf-kinks/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-kinks/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-length/package.json b/packages/turf-length/package.json index 940db14476..defcde9546 100644 --- a/packages/turf-length/package.json +++ b/packages/turf-length/package.json @@ -29,7 +29,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,7 +51,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-length/tsconfig.cjs.json b/packages/turf-length/tsconfig.cjs.json new file mode 100644 index 0000000000..3e1c11e1ea --- /dev/null +++ b/packages/turf-length/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-length/tsconfig.json b/packages/turf-length/tsconfig.json index 563bf86442..3392d2cf5a 100644 --- a/packages/turf-length/tsconfig.json +++ b/packages/turf-length/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-line-arc/package.json b/packages/turf-line-arc/package.json index a4beac1dbf..2e7de300bf 100644 --- a/packages/turf-line-arc/package.json +++ b/packages/turf-line-arc/package.json @@ -21,7 +21,7 @@ "gif" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,10 +43,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -55,7 +56,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-arc/tsconfig.cjs.json b/packages/turf-line-arc/tsconfig.cjs.json new file mode 100644 index 0000000000..4c359f25e8 --- /dev/null +++ b/packages/turf-line-arc/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-circle" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-line-arc/tsconfig.json b/packages/turf-line-arc/tsconfig.json index 563bf86442..8c09c53b7a 100644 --- a/packages/turf-line-arc/tsconfig.json +++ b/packages/turf-line-arc/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-circle" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-line-arc/tsconfig.types.json b/packages/turf-line-arc/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-line-arc/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-line-chunk/package.json b/packages/turf-line-chunk/package.json index 9a96fed3dd..10e9cc31ec 100644 --- a/packages/turf-line-chunk/package.json +++ b/packages/turf-line-chunk/package.json @@ -30,7 +30,7 @@ "line segment" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -41,8 +41,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -52,10 +52,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -64,7 +65,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-chunk/tsconfig.cjs.json b/packages/turf-line-chunk/tsconfig.cjs.json new file mode 100644 index 0000000000..6c00ddaef9 --- /dev/null +++ b/packages/turf-line-chunk/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-line-slice-along" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-line-chunk/tsconfig.json b/packages/turf-line-chunk/tsconfig.json index 563bf86442..57099e2896 100644 --- a/packages/turf-line-chunk/tsconfig.json +++ b/packages/turf-line-chunk/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-line-slice-along" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-line-chunk/tsconfig.types.json b/packages/turf-line-chunk/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-line-chunk/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-line-intersect/index.ts b/packages/turf-line-intersect/index.ts index 7e29778961..39b1eab2d4 100644 --- a/packages/turf-line-intersect/index.ts +++ b/packages/turf-line-intersect/index.ts @@ -74,7 +74,7 @@ function lineIntersect< let results: Intersection[] = []; if (removeDuplicates) { const unique: Record = {}; - intersections.forEach((intersection) => { + intersections.forEach((intersection: Intersection) => { const key = intersection.join(","); if (!unique[key]) { unique[key] = true; diff --git a/packages/turf-line-intersect/lib/sweepline-intersections-export.ts b/packages/turf-line-intersect/lib/sweepline-intersections-export.ts index 2d10f64b69..dc95d3a374 100644 --- a/packages/turf-line-intersect/lib/sweepline-intersections-export.ts +++ b/packages/turf-line-intersect/lib/sweepline-intersections-export.ts @@ -1,7 +1,9 @@ -// Get around problems with moduleResolution node16 and some older libraries. -// Manifests as "This expression is not callable ... has no call signatures" -// https://stackoverflow.com/a/74709714 +import * as lib from "sweepline-intersections"; -import lib from "sweepline-intersections"; +// In CJS builds, the default export is on .default +// In ESM builds, it's the module itself +const sweeplineIntersections = + typeof lib === "function" ? lib : (lib as any).default || lib; -export const sweeplineIntersections = lib as unknown as typeof lib.default; +export { sweeplineIntersections }; +export type { Intersection } from "sweepline-intersections"; diff --git a/packages/turf-line-intersect/package.json b/packages/turf-line-intersect/package.json index 5289f165d7..64a19103d2 100644 --- a/packages/turf-line-intersect/package.json +++ b/packages/turf-line-intersect/package.json @@ -28,7 +28,7 @@ "intersect" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-intersect/tsconfig.cjs.json b/packages/turf-line-intersect/tsconfig.cjs.json new file mode 100644 index 0000000000..2dbf5b9d36 --- /dev/null +++ b/packages/turf-line-intersect/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-line-intersect/tsconfig.json b/packages/turf-line-intersect/tsconfig.json index 563bf86442..d2c581e530 100644 --- a/packages/turf-line-intersect/tsconfig.json +++ b/packages/turf-line-intersect/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-line-offset/package.json b/packages/turf-line-offset/package.json index d2a4364c28..5dd7e85ccf 100644 --- a/packages/turf-line-offset/package.json +++ b/packages/turf-line-offset/package.json @@ -28,7 +28,7 @@ "offset" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,7 +50,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", "test:types": "tstyche" @@ -63,7 +64,6 @@ "load-json-file": "^7.0.1", "tape": "catalog:", "tstyche": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-offset/tsconfig.cjs.json b/packages/turf-line-offset/tsconfig.cjs.json new file mode 100644 index 0000000000..098c1c14de --- /dev/null +++ b/packages/turf-line-offset/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-line-offset/tsconfig.json b/packages/turf-line-offset/tsconfig.json index 563bf86442..909609609d 100644 --- a/packages/turf-line-offset/tsconfig.json +++ b/packages/turf-line-offset/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-line-offset/tsconfig.types.json b/packages/turf-line-offset/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-line-offset/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-line-overlap/package.json b/packages/turf-line-overlap/package.json index 6b96d4c0bc..9b1aa0e879 100644 --- a/packages/turf-line-overlap/package.json +++ b/packages/turf-line-overlap/package.json @@ -27,7 +27,7 @@ "overlap" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-overlap/tsconfig.cjs.json b/packages/turf-line-overlap/tsconfig.cjs.json new file mode 100644 index 0000000000..a9d84784ea --- /dev/null +++ b/packages/turf-line-overlap/tsconfig.cjs.json @@ -0,0 +1,35 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-geojson-rbush" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point-on-line" + } + ] +} diff --git a/packages/turf-line-overlap/tsconfig.json b/packages/turf-line-overlap/tsconfig.json index 563bf86442..4d8f1fd168 100644 --- a/packages/turf-line-overlap/tsconfig.json +++ b/packages/turf-line-overlap/tsconfig.json @@ -1,3 +1,30 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-geojson-rbush" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point-on-line" + } + ] } diff --git a/packages/turf-line-overlap/tsconfig.types.json b/packages/turf-line-overlap/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-line-overlap/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-line-segment/package.json b/packages/turf-line-segment/package.json index 3cd3fd08a7..e31e7d31e8 100644 --- a/packages/turf-line-segment/package.json +++ b/packages/turf-line-segment/package.json @@ -22,7 +22,7 @@ "segment" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -33,8 +33,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -44,7 +44,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -54,7 +55,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-segment/tsconfig.cjs.json b/packages/turf-line-segment/tsconfig.cjs.json new file mode 100644 index 0000000000..a7d2705190 --- /dev/null +++ b/packages/turf-line-segment/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-line-segment/tsconfig.json b/packages/turf-line-segment/tsconfig.json index 563bf86442..57398567c0 100644 --- a/packages/turf-line-segment/tsconfig.json +++ b/packages/turf-line-segment/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-line-slice-along/package.json b/packages/turf-line-slice-along/package.json index e46b77375a..75929e95ca 100644 --- a/packages/turf-line-slice-along/package.json +++ b/packages/turf-line-slice-along/package.json @@ -22,7 +22,7 @@ "line-slice" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -33,8 +33,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -44,7 +44,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-line-slice-along/tsconfig.cjs.json b/packages/turf-line-slice-along/tsconfig.cjs.json new file mode 100644 index 0000000000..e2605465e2 --- /dev/null +++ b/packages/turf-line-slice-along/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-along" + }, + { + "path": "../turf-length" + } + ] +} diff --git a/packages/turf-line-slice-along/tsconfig.json b/packages/turf-line-slice-along/tsconfig.json index 563bf86442..9ddc569137 100644 --- a/packages/turf-line-slice-along/tsconfig.json +++ b/packages/turf-line-slice-along/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-along" + }, + { + "path": "../turf-length" + } + ] } diff --git a/packages/turf-line-slice/package.json b/packages/turf-line-slice/package.json index 671f2210be..fbc4822e2a 100644 --- a/packages/turf-line-slice/package.json +++ b/packages/turf-line-slice/package.json @@ -26,7 +26,7 @@ "distance" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -37,8 +37,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -48,7 +48,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-slice/tsconfig.cjs.json b/packages/turf-line-slice/tsconfig.cjs.json new file mode 100644 index 0000000000..fb976adffe --- /dev/null +++ b/packages/turf-line-slice/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-line-slice/tsconfig.json b/packages/turf-line-slice/tsconfig.json index 563bf86442..ac9e8c34de 100644 --- a/packages/turf-line-slice/tsconfig.json +++ b/packages/turf-line-slice/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-line-split/index.ts b/packages/turf-line-split/index.ts index 479fef8101..3fb213fc51 100644 --- a/packages/turf-line-split/index.ts +++ b/packages/turf-line-split/index.ts @@ -260,5 +260,5 @@ function pointsEquals(pt1: number[], pt2: number[]) { return pt1[0] === pt2[0] && pt1[1] === pt2[1]; } -export { Splitter, lineSplit }; +export { type Splitter, lineSplit }; export default lineSplit; diff --git a/packages/turf-line-split/package.json b/packages/turf-line-split/package.json index fab53e185f..5f86ef96c4 100644 --- a/packages/turf-line-split/package.json +++ b/packages/turf-line-split/package.json @@ -27,7 +27,7 @@ "split" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-split/tsconfig.cjs.json b/packages/turf-line-split/tsconfig.cjs.json new file mode 100644 index 0000000000..3474e9e25d --- /dev/null +++ b/packages/turf-line-split/tsconfig.cjs.json @@ -0,0 +1,41 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-geojson-rbush" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-line-split/tsconfig.json b/packages/turf-line-split/tsconfig.json index 563bf86442..2f66a7c58e 100644 --- a/packages/turf-line-split/tsconfig.json +++ b/packages/turf-line-split/tsconfig.json @@ -1,3 +1,36 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-geojson-rbush" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-line-to-polygon/package.json b/packages/turf-line-to-polygon/package.json index 72826efe50..5f12ca1b4e 100644 --- a/packages/turf-line-to-polygon/package.json +++ b/packages/turf-line-to-polygon/package.json @@ -27,7 +27,7 @@ "line" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-line-to-polygon/tsconfig.cjs.json b/packages/turf-line-to-polygon/tsconfig.cjs.json new file mode 100644 index 0000000000..d85aca1ad1 --- /dev/null +++ b/packages/turf-line-to-polygon/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-line-to-polygon/tsconfig.json b/packages/turf-line-to-polygon/tsconfig.json index 563bf86442..0ca298c21b 100644 --- a/packages/turf-line-to-polygon/tsconfig.json +++ b/packages/turf-line-to-polygon/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-line-to-polygon/tsconfig.types.json b/packages/turf-line-to-polygon/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-line-to-polygon/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-mask/package.json b/packages/turf-mask/package.json index 18ced705d2..8abf75e391 100644 --- a/packages/turf-mask/package.json +++ b/packages/turf-mask/package.json @@ -22,7 +22,7 @@ "polygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -33,8 +33,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -44,10 +44,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -56,7 +57,6 @@ "load-json-file": "^7.0.1", "mkdirp": "^3.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-mask/tsconfig.cjs.json b/packages/turf-mask/tsconfig.cjs.json new file mode 100644 index 0000000000..f7927d4f8a --- /dev/null +++ b/packages/turf-mask/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-mask/tsconfig.json b/packages/turf-mask/tsconfig.json index 563bf86442..3c0de81cda 100644 --- a/packages/turf-mask/tsconfig.json +++ b/packages/turf-mask/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-mask/tsconfig.types.json b/packages/turf-mask/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-mask/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-meta/package.json b/packages/turf-meta/package.json index 3b3c4ad442..b38c3b55d9 100644 --- a/packages/turf-meta/package.json +++ b/packages/turf-meta/package.json @@ -44,7 +44,7 @@ "lineReduce" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -55,8 +55,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -66,10 +66,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/random": "workspace:*", @@ -77,7 +78,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-meta/tsconfig.cjs.json b/packages/turf-meta/tsconfig.cjs.json new file mode 100644 index 0000000000..fb2259d4d9 --- /dev/null +++ b/packages/turf-meta/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-random" + } + ] +} diff --git a/packages/turf-meta/tsconfig.json b/packages/turf-meta/tsconfig.json index 563bf86442..579a88351f 100644 --- a/packages/turf-meta/tsconfig.json +++ b/packages/turf-meta/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-random" + } + ] } diff --git a/packages/turf-meta/tsconfig.types.json b/packages/turf-meta/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-meta/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-midpoint/package.json b/packages/turf-midpoint/package.json index f3f24b63a3..beaa46a848 100644 --- a/packages/turf-midpoint/package.json +++ b/packages/turf-midpoint/package.json @@ -24,7 +24,7 @@ "line" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -55,7 +56,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-midpoint/tsconfig.cjs.json b/packages/turf-midpoint/tsconfig.cjs.json new file mode 100644 index 0000000000..d2e026c9ab --- /dev/null +++ b/packages/turf-midpoint/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-midpoint/tsconfig.json b/packages/turf-midpoint/tsconfig.json index 563bf86442..bca853275d 100644 --- a/packages/turf-midpoint/tsconfig.json +++ b/packages/turf-midpoint/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-moran-index/index.ts b/packages/turf-moran-index/index.ts index 83a5e9e5bd..5f3b9180f8 100644 --- a/packages/turf-moran-index/index.ts +++ b/packages/turf-moran-index/index.ts @@ -160,5 +160,5 @@ function variance(y: number[]): number { return sum / y.length; } -export { moranIndex, MoranIndex }; +export { moranIndex, type MoranIndex }; export default moranIndex; diff --git a/packages/turf-moran-index/package.json b/packages/turf-moran-index/package.json index 6faa3392e6..25b2300143 100644 --- a/packages/turf-moran-index/package.json +++ b/packages/turf-moran-index/package.json @@ -24,7 +24,7 @@ "moran-index" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-moran-index/tsconfig.cjs.json b/packages/turf-moran-index/tsconfig.cjs.json new file mode 100644 index 0000000000..42a5901e46 --- /dev/null +++ b/packages/turf-moran-index/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-distance-weight" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-moran-index/tsconfig.json b/packages/turf-moran-index/tsconfig.json index 563bf86442..0170f00fa3 100644 --- a/packages/turf-moran-index/tsconfig.json +++ b/packages/turf-moran-index/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-distance-weight" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-nearest-neighbor-analysis/index.ts b/packages/turf-nearest-neighbor-analysis/index.ts index 5e033f2a85..9b6d25810b 100644 --- a/packages/turf-nearest-neighbor-analysis/index.ts +++ b/packages/turf-nearest-neighbor-analysis/index.ts @@ -163,7 +163,7 @@ function nearestNeighborAnalysis( export { nearestNeighborAnalysis, - NearestNeighborStatistics, - NearestNeighborStudyArea, + type NearestNeighborStatistics, + type NearestNeighborStudyArea, }; export default nearestNeighborAnalysis; diff --git a/packages/turf-nearest-neighbor-analysis/package.json b/packages/turf-nearest-neighbor-analysis/package.json index c7f307fa54..fc2ffd60af 100644 --- a/packages/turf-nearest-neighbor-analysis/package.json +++ b/packages/turf-nearest-neighbor-analysis/package.json @@ -24,7 +24,7 @@ "nearest-neighbor" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -57,7 +58,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-nearest-neighbor-analysis/tsconfig.cjs.json b/packages/turf-nearest-neighbor-analysis/tsconfig.cjs.json new file mode 100644 index 0000000000..8bce632b57 --- /dev/null +++ b/packages/turf-nearest-neighbor-analysis/tsconfig.cjs.json @@ -0,0 +1,41 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-nearest-neighbor-analysis/tsconfig.json b/packages/turf-nearest-neighbor-analysis/tsconfig.json index 563bf86442..61a3a1adbd 100644 --- a/packages/turf-nearest-neighbor-analysis/tsconfig.json +++ b/packages/turf-nearest-neighbor-analysis/tsconfig.json @@ -1,3 +1,36 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-nearest-point-on-line/package.json b/packages/turf-nearest-point-on-line/package.json index 1681d13581..dee4689c21 100644 --- a/packages/turf-nearest-point-on-line/package.json +++ b/packages/turf-nearest-point-on-line/package.json @@ -23,7 +23,7 @@ "access": "public" }, "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,10 +45,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/along": "workspace:*", @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-nearest-point-on-line/tsconfig.cjs.json b/packages/turf-nearest-point-on-line/tsconfig.cjs.json new file mode 100644 index 0000000000..22db86c7d4 --- /dev/null +++ b/packages/turf-nearest-point-on-line/tsconfig.cjs.json @@ -0,0 +1,35 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-along" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-nearest-point-on-line/tsconfig.json b/packages/turf-nearest-point-on-line/tsconfig.json index 563bf86442..b223aa9e0a 100644 --- a/packages/turf-nearest-point-on-line/tsconfig.json +++ b/packages/turf-nearest-point-on-line/tsconfig.json @@ -1,3 +1,30 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-along" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-nearest-point-on-line/tsconfig.types.json b/packages/turf-nearest-point-on-line/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-nearest-point-on-line/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-nearest-point-to-line/package.json b/packages/turf-nearest-point-to-line/package.json index 61a6dbee1e..471f3f5e48 100644 --- a/packages/turf-nearest-point-to-line/package.json +++ b/packages/turf-nearest-point-to-line/package.json @@ -27,7 +27,7 @@ "nearest-point-to-line" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/circle": "workspace:*", @@ -63,7 +64,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-nearest-point-to-line/tsconfig.cjs.json b/packages/turf-nearest-point-to-line/tsconfig.cjs.json new file mode 100644 index 0000000000..c36fc1be04 --- /dev/null +++ b/packages/turf-nearest-point-to-line/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-point-to-line-distance" + }, + { + "path": "../turf-circle" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-nearest-point-to-line/tsconfig.json b/packages/turf-nearest-point-to-line/tsconfig.json index 563bf86442..a858aa5712 100644 --- a/packages/turf-nearest-point-to-line/tsconfig.json +++ b/packages/turf-nearest-point-to-line/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-point-to-line-distance" + }, + { + "path": "../turf-circle" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-nearest-point-to-line/tsconfig.types.json b/packages/turf-nearest-point-to-line/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-nearest-point-to-line/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-nearest-point/index.ts b/packages/turf-nearest-point/index.ts index 2d6882a061..e21a6a8ec7 100644 --- a/packages/turf-nearest-point/index.ts +++ b/packages/turf-nearest-point/index.ts @@ -70,5 +70,5 @@ function nearestPoint

( }; } -export { nearestPoint, NearestPoint }; +export { nearestPoint, type NearestPoint }; export default nearestPoint; diff --git a/packages/turf-nearest-point/package.json b/packages/turf-nearest-point/package.json index d125c87cc0..f5c99cfc8a 100644 --- a/packages/turf-nearest-point/package.json +++ b/packages/turf-nearest-point/package.json @@ -25,7 +25,7 @@ "point" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -58,7 +59,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-nearest-point/tsconfig.cjs.json b/packages/turf-nearest-point/tsconfig.cjs.json new file mode 100644 index 0000000000..56eb366366 --- /dev/null +++ b/packages/turf-nearest-point/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-nearest-point/tsconfig.json b/packages/turf-nearest-point/tsconfig.json index 563bf86442..2abe97bc71 100644 --- a/packages/turf-nearest-point/tsconfig.json +++ b/packages/turf-nearest-point/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-nearest-point/tsconfig.types.json b/packages/turf-nearest-point/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-nearest-point/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-planepoint/package.json b/packages/turf-planepoint/package.json index b769176940..024841feef 100644 --- a/packages/turf-planepoint/package.json +++ b/packages/turf-planepoint/package.json @@ -24,7 +24,7 @@ "interpolation" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,17 +46,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-planepoint/tsconfig.cjs.json b/packages/turf-planepoint/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-planepoint/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-planepoint/tsconfig.json b/packages/turf-planepoint/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-planepoint/tsconfig.json +++ b/packages/turf-planepoint/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-planepoint/tsconfig.types.json b/packages/turf-planepoint/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-planepoint/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-point-grid/package.json b/packages/turf-point-grid/package.json index addbd807fa..85b8a09186 100644 --- a/packages/turf-point-grid/package.json +++ b/packages/turf-point-grid/package.json @@ -27,7 +27,7 @@ "geojson" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/bbox-polygon": "workspace:*", @@ -62,7 +63,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-point-grid/tsconfig.cjs.json b/packages/turf-point-grid/tsconfig.cjs.json new file mode 100644 index 0000000000..0726dd6862 --- /dev/null +++ b/packages/turf-point-grid/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-within" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-point-grid/tsconfig.json b/packages/turf-point-grid/tsconfig.json index 563bf86442..aef941ee24 100644 --- a/packages/turf-point-grid/tsconfig.json +++ b/packages/turf-point-grid/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-within" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-point-grid/tsconfig.types.json b/packages/turf-point-grid/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-point-grid/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-point-on-feature/package.json b/packages/turf-point-on-feature/package.json index bbadc79861..efff74e0c5 100644 --- a/packages/turf-point-on-feature/package.json +++ b/packages/turf-point-on-feature/package.json @@ -25,7 +25,7 @@ "polygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,7 +47,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -58,7 +59,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-point-on-feature/tsconfig.cjs.json b/packages/turf-point-on-feature/tsconfig.cjs.json new file mode 100644 index 0000000000..69c7198b25 --- /dev/null +++ b/packages/turf-point-on-feature/tsconfig.cjs.json @@ -0,0 +1,35 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-nearest-point" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-point-on-feature/tsconfig.json b/packages/turf-point-on-feature/tsconfig.json index 563bf86442..72807c9ae3 100644 --- a/packages/turf-point-on-feature/tsconfig.json +++ b/packages/turf-point-on-feature/tsconfig.json @@ -1,3 +1,30 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-nearest-point" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-point-to-line-distance/package.json b/packages/turf-point-to-line-distance/package.json index a797f3b9d5..069c121fec 100644 --- a/packages/turf-point-to-line-distance/package.json +++ b/packages/turf-point-to-line-distance/package.json @@ -25,7 +25,7 @@ "distance" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/circle": "workspace:*", @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-point-to-line-distance/tsconfig.cjs.json b/packages/turf-point-to-line-distance/tsconfig.cjs.json new file mode 100644 index 0000000000..4d0f055e6a --- /dev/null +++ b/packages/turf-point-to-line-distance/tsconfig.cjs.json @@ -0,0 +1,44 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-projection" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-circle" + } + ] +} diff --git a/packages/turf-point-to-line-distance/tsconfig.json b/packages/turf-point-to-line-distance/tsconfig.json index 563bf86442..4d23010744 100644 --- a/packages/turf-point-to-line-distance/tsconfig.json +++ b/packages/turf-point-to-line-distance/tsconfig.json @@ -1,3 +1,39 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bearing" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-projection" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-circle" + } + ] } diff --git a/packages/turf-point-to-line-distance/tsconfig.types.json b/packages/turf-point-to-line-distance/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-point-to-line-distance/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-point-to-polygon-distance/package.json b/packages/turf-point-to-polygon-distance/package.json index 84c9ee08f1..9c1d95b89f 100644 --- a/packages/turf-point-to-polygon-distance/package.json +++ b/packages/turf-point-to-polygon-distance/package.json @@ -27,7 +27,7 @@ "distance" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-point-to-polygon-distance/tsconfig.cjs.json b/packages/turf-point-to-polygon-distance/tsconfig.cjs.json new file mode 100644 index 0000000000..c9674b57e7 --- /dev/null +++ b/packages/turf-point-to-polygon-distance/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-point-to-line-distance" + }, + { + "path": "../turf-polygon-to-line" + } + ] +} diff --git a/packages/turf-point-to-polygon-distance/tsconfig.json b/packages/turf-point-to-polygon-distance/tsconfig.json index 563bf86442..7b6e46df71 100644 --- a/packages/turf-point-to-polygon-distance/tsconfig.json +++ b/packages/turf-point-to-polygon-distance/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-point-to-line-distance" + }, + { + "path": "../turf-polygon-to-line" + } + ] } diff --git a/packages/turf-points-within-polygon/package.json b/packages/turf-points-within-polygon/package.json index 431c547f3e..dd7762533d 100644 --- a/packages/turf-points-within-polygon/package.json +++ b/packages/turf-points-within-polygon/package.json @@ -24,7 +24,7 @@ "featurecollection" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,17 +46,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-points-within-polygon/tsconfig.cjs.json b/packages/turf-points-within-polygon/tsconfig.cjs.json new file mode 100644 index 0000000000..423b8ff4b2 --- /dev/null +++ b/packages/turf-points-within-polygon/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-points-within-polygon/tsconfig.json b/packages/turf-points-within-polygon/tsconfig.json index 563bf86442..ebc0eb2e61 100644 --- a/packages/turf-points-within-polygon/tsconfig.json +++ b/packages/turf-points-within-polygon/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-points-within-polygon/tsconfig.types.json b/packages/turf-points-within-polygon/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-points-within-polygon/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-polygon-smooth/package.json b/packages/turf-polygon-smooth/package.json index 165ffa3c27..283613a819 100644 --- a/packages/turf-polygon-smooth/package.json +++ b/packages/turf-polygon-smooth/package.json @@ -25,7 +25,7 @@ "polygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -58,7 +59,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-polygon-smooth/tsconfig.cjs.json b/packages/turf-polygon-smooth/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-polygon-smooth/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-polygon-smooth/tsconfig.json b/packages/turf-polygon-smooth/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-polygon-smooth/tsconfig.json +++ b/packages/turf-polygon-smooth/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-polygon-smooth/tsconfig.types.json b/packages/turf-polygon-smooth/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-polygon-smooth/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-polygon-tangents/package.json b/packages/turf-polygon-tangents/package.json index 46cf9ab4d1..f4d45705c7 100644 --- a/packages/turf-polygon-tangents/package.json +++ b/packages/turf-polygon-tangents/package.json @@ -28,7 +28,7 @@ "polygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -39,8 +39,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -50,10 +50,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-polygon-tangents/tsconfig.cjs.json b/packages/turf-polygon-tangents/tsconfig.cjs.json new file mode 100644 index 0000000000..289f182c30 --- /dev/null +++ b/packages/turf-polygon-tangents/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-within" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-nearest-point" + } + ] +} diff --git a/packages/turf-polygon-tangents/tsconfig.json b/packages/turf-polygon-tangents/tsconfig.json index 563bf86442..3b4751cb27 100644 --- a/packages/turf-polygon-tangents/tsconfig.json +++ b/packages/turf-polygon-tangents/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-boolean-within" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-nearest-point" + } + ] } diff --git a/packages/turf-polygon-tangents/tsconfig.types.json b/packages/turf-polygon-tangents/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-polygon-tangents/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-polygon-to-line/package.json b/packages/turf-polygon-to-line/package.json index 2d1dcf15e3..48f8632980 100644 --- a/packages/turf-polygon-to-line/package.json +++ b/packages/turf-polygon-to-line/package.json @@ -24,7 +24,7 @@ "polygon" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -56,7 +57,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-polygon-to-line/tsconfig.cjs.json b/packages/turf-polygon-to-line/tsconfig.cjs.json new file mode 100644 index 0000000000..385c6d3633 --- /dev/null +++ b/packages/turf-polygon-to-line/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-polygon-to-line/tsconfig.json b/packages/turf-polygon-to-line/tsconfig.json index 563bf86442..58c2e616b1 100644 --- a/packages/turf-polygon-to-line/tsconfig.json +++ b/packages/turf-polygon-to-line/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf-polygonize/package.json b/packages/turf-polygonize/package.json index 0c8e274f7d..29515da489 100644 --- a/packages/turf-polygonize/package.json +++ b/packages/turf-polygonize/package.json @@ -27,7 +27,7 @@ "polygonize" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-polygonize/tsconfig.cjs.json b/packages/turf-polygonize/tsconfig.cjs.json new file mode 100644 index 0000000000..dba79e8f8c --- /dev/null +++ b/packages/turf-polygonize/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-polygonize/tsconfig.json b/packages/turf-polygonize/tsconfig.json index 563bf86442..583c56bf13 100644 --- a/packages/turf-polygonize/tsconfig.json +++ b/packages/turf-polygonize/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-polygonize/tsconfig.types.json b/packages/turf-polygonize/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-polygonize/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-projection/package.json b/packages/turf-projection/package.json index 00c54098fe..e41beeb675 100644 --- a/packages/turf-projection/package.json +++ b/packages/turf-projection/package.json @@ -35,7 +35,7 @@ "EPSG:102113" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -46,8 +46,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -57,10 +57,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -70,7 +71,6 @@ "load-json-file": "^7.0.1", "proj4": "^2.9.2", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-projection/tsconfig.cjs.json b/packages/turf-projection/tsconfig.cjs.json new file mode 100644 index 0000000000..25c3ebc4a0 --- /dev/null +++ b/packages/turf-projection/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-projection/tsconfig.json b/packages/turf-projection/tsconfig.json index 563bf86442..ad3ba37848 100644 --- a/packages/turf-projection/tsconfig.json +++ b/packages/turf-projection/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-projection/tsconfig.types.json b/packages/turf-projection/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-projection/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-quadrat-analysis/index.ts b/packages/turf-quadrat-analysis/index.ts index 9844934028..d73b135ab7 100644 --- a/packages/turf-quadrat-analysis/index.ts +++ b/packages/turf-quadrat-analysis/index.ts @@ -224,5 +224,5 @@ function factorial(num: number) { return inner(num); } -export { QuadratAnalysisResult, quadratAnalysis }; +export { type QuadratAnalysisResult, quadratAnalysis }; export default quadratAnalysis; diff --git a/packages/turf-quadrat-analysis/package.json b/packages/turf-quadrat-analysis/package.json index 0454b2e7eb..e61a1f797f 100644 --- a/packages/turf-quadrat-analysis/package.json +++ b/packages/turf-quadrat-analysis/package.json @@ -24,7 +24,7 @@ "quadrat-analysis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -57,7 +58,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-quadrat-analysis/tsconfig.cjs.json b/packages/turf-quadrat-analysis/tsconfig.cjs.json new file mode 100644 index 0000000000..133fa42b7c --- /dev/null +++ b/packages/turf-quadrat-analysis/tsconfig.cjs.json @@ -0,0 +1,44 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-square-grid" + }, + { + "path": "../turf-nearest-neighbor-analysis" + } + ] +} diff --git a/packages/turf-quadrat-analysis/tsconfig.json b/packages/turf-quadrat-analysis/tsconfig.json index 563bf86442..388cad8780 100644 --- a/packages/turf-quadrat-analysis/tsconfig.json +++ b/packages/turf-quadrat-analysis/tsconfig.json @@ -1,3 +1,39 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-square-grid" + }, + { + "path": "../turf-nearest-neighbor-analysis" + } + ] } diff --git a/packages/turf-random/package.json b/packages/turf-random/package.json index 3bd7795dba..7984c57c79 100644 --- a/packages/turf-random/package.json +++ b/packages/turf-random/package.json @@ -21,7 +21,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,7 +43,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -52,7 +53,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-random/tsconfig.cjs.json b/packages/turf-random/tsconfig.cjs.json new file mode 100644 index 0000000000..f8427e2577 --- /dev/null +++ b/packages/turf-random/tsconfig.cjs.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-random/tsconfig.json b/packages/turf-random/tsconfig.json index 563bf86442..d777551892 100644 --- a/packages/turf-random/tsconfig.json +++ b/packages/turf-random/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-rectangle-grid/package.json b/packages/turf-rectangle-grid/package.json index 776befb14c..3876636ac0 100644 --- a/packages/turf-rectangle-grid/package.json +++ b/packages/turf-rectangle-grid/package.json @@ -27,7 +27,7 @@ "cartesian" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-rectangle-grid/tsconfig.cjs.json b/packages/turf-rectangle-grid/tsconfig.cjs.json new file mode 100644 index 0000000000..d4d1bdc8f2 --- /dev/null +++ b/packages/turf-rectangle-grid/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-intersects" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-rectangle-grid/tsconfig.json b/packages/turf-rectangle-grid/tsconfig.json index 563bf86442..1c96447a0e 100644 --- a/packages/turf-rectangle-grid/tsconfig.json +++ b/packages/turf-rectangle-grid/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-intersects" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-rewind/package.json b/packages/turf-rewind/package.json index cbd55b1ea2..d3ab49d9d0 100644 --- a/packages/turf-rewind/package.json +++ b/packages/turf-rewind/package.json @@ -29,7 +29,7 @@ "rewind" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -62,7 +63,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-rewind/tsconfig.cjs.json b/packages/turf-rewind/tsconfig.cjs.json new file mode 100644 index 0000000000..f9f945b89f --- /dev/null +++ b/packages/turf-rewind/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-clockwise" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-rewind/tsconfig.json b/packages/turf-rewind/tsconfig.json index 563bf86442..f7def694e2 100644 --- a/packages/turf-rewind/tsconfig.json +++ b/packages/turf-rewind/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-clockwise" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-rewind/tsconfig.types.json b/packages/turf-rewind/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-rewind/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-rhumb-bearing/package.json b/packages/turf-rhumb-bearing/package.json index 8679e75025..dce43d44a4 100644 --- a/packages/turf-rhumb-bearing/package.json +++ b/packages/turf-rhumb-bearing/package.json @@ -29,7 +29,7 @@ "rhumb line" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,7 +51,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -61,7 +62,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-rhumb-bearing/tsconfig.cjs.json b/packages/turf-rhumb-bearing/tsconfig.cjs.json new file mode 100644 index 0000000000..dd4ee8afc8 --- /dev/null +++ b/packages/turf-rhumb-bearing/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-destination" + } + ] +} diff --git a/packages/turf-rhumb-bearing/tsconfig.json b/packages/turf-rhumb-bearing/tsconfig.json index 563bf86442..cbc8f9dd06 100644 --- a/packages/turf-rhumb-bearing/tsconfig.json +++ b/packages/turf-rhumb-bearing/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-destination" + } + ] } diff --git a/packages/turf-rhumb-destination/package.json b/packages/turf-rhumb-destination/package.json index b8d203d9b5..a47833b7a6 100644 --- a/packages/turf-rhumb-destination/package.json +++ b/packages/turf-rhumb-destination/package.json @@ -33,7 +33,7 @@ "km" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -44,8 +44,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -55,7 +55,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -66,7 +67,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-rhumb-destination/tsconfig.cjs.json b/packages/turf-rhumb-destination/tsconfig.cjs.json new file mode 100644 index 0000000000..5b7b6e9ec9 --- /dev/null +++ b/packages/turf-rhumb-destination/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-rhumb-destination/tsconfig.json b/packages/turf-rhumb-destination/tsconfig.json index 563bf86442..fa5e53a52b 100644 --- a/packages/turf-rhumb-destination/tsconfig.json +++ b/packages/turf-rhumb-destination/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-rhumb-distance/package.json b/packages/turf-rhumb-distance/package.json index 1c0e8c7faf..858c9f19bc 100644 --- a/packages/turf-rhumb-distance/package.json +++ b/packages/turf-rhumb-distance/package.json @@ -31,7 +31,7 @@ "km" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -42,8 +42,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -53,7 +53,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -64,7 +65,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-rhumb-distance/tsconfig.cjs.json b/packages/turf-rhumb-distance/tsconfig.cjs.json new file mode 100644 index 0000000000..3ec1d9b959 --- /dev/null +++ b/packages/turf-rhumb-distance/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-distance" + } + ] +} diff --git a/packages/turf-rhumb-distance/tsconfig.json b/packages/turf-rhumb-distance/tsconfig.json index 563bf86442..ac0309702d 100644 --- a/packages/turf-rhumb-distance/tsconfig.json +++ b/packages/turf-rhumb-distance/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-distance" + } + ] } diff --git a/packages/turf-sample/package.json b/packages/turf-sample/package.json index 1286aceb3d..af5c80e8cd 100644 --- a/packages/turf-sample/package.json +++ b/packages/turf-sample/package.json @@ -23,7 +23,7 @@ "turf" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,7 +45,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -54,7 +55,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-sample/tsconfig.cjs.json b/packages/turf-sample/tsconfig.cjs.json new file mode 100644 index 0000000000..f8427e2577 --- /dev/null +++ b/packages/turf-sample/tsconfig.cjs.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-sample/tsconfig.json b/packages/turf-sample/tsconfig.json index 563bf86442..d777551892 100644 --- a/packages/turf-sample/tsconfig.json +++ b/packages/turf-sample/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-sector/package.json b/packages/turf-sector/package.json index 1c1efa5da9..ece64f9a64 100644 --- a/packages/turf-sector/package.json +++ b/packages/turf-sector/package.json @@ -21,7 +21,7 @@ "gif" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,10 +43,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -55,7 +56,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-sector/tsconfig.cjs.json b/packages/turf-sector/tsconfig.cjs.json new file mode 100644 index 0000000000..7c1ad39495 --- /dev/null +++ b/packages/turf-sector/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-circle" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-arc" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-sector/tsconfig.json b/packages/turf-sector/tsconfig.json index 563bf86442..0de1110f36 100644 --- a/packages/turf-sector/tsconfig.json +++ b/packages/turf-sector/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-circle" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-line-arc" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-sector/tsconfig.types.json b/packages/turf-sector/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-sector/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-shortest-path/package.json b/packages/turf-shortest-path/package.json index 571d38deb9..a4a2f97db1 100644 --- a/packages/turf-shortest-path/package.json +++ b/packages/turf-shortest-path/package.json @@ -27,7 +27,7 @@ "path" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-shortest-path/tsconfig.cjs.json b/packages/turf-shortest-path/tsconfig.cjs.json new file mode 100644 index 0000000000..6f2b76812c --- /dev/null +++ b/packages/turf-shortest-path/tsconfig.cjs.json @@ -0,0 +1,44 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-transform-scale" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-shortest-path/tsconfig.json b/packages/turf-shortest-path/tsconfig.json index 563bf86442..05aef290fc 100644 --- a/packages/turf-shortest-path/tsconfig.json +++ b/packages/turf-shortest-path/tsconfig.json @@ -1,3 +1,39 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-transform-scale" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-shortest-path/tsconfig.types.json b/packages/turf-shortest-path/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-shortest-path/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-simplify/package.json b/packages/turf-simplify/package.json index c63106b5f2..358d876334 100644 --- a/packages/turf-simplify/package.json +++ b/packages/turf-simplify/package.json @@ -29,7 +29,7 @@ "peucker" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -63,7 +64,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-simplify/tsconfig.cjs.json b/packages/turf-simplify/tsconfig.cjs.json new file mode 100644 index 0000000000..2ba677bbeb --- /dev/null +++ b/packages/turf-simplify/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-simplify/tsconfig.json b/packages/turf-simplify/tsconfig.json index 563bf86442..5d483c09d4 100644 --- a/packages/turf-simplify/tsconfig.json +++ b/packages/turf-simplify/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-simplify/tsconfig.types.json b/packages/turf-simplify/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-simplify/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-square-grid/package.json b/packages/turf-square-grid/package.json index 52ad9d2784..3f9bb53bd0 100644 --- a/packages/turf-square-grid/package.json +++ b/packages/turf-square-grid/package.json @@ -24,7 +24,7 @@ "grid" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,7 +46,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -57,7 +58,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-square-grid/tsconfig.cjs.json b/packages/turf-square-grid/tsconfig.cjs.json new file mode 100644 index 0000000000..523f7a67cd --- /dev/null +++ b/packages/turf-square-grid/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-rectangle-grid" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-square-grid/tsconfig.json b/packages/turf-square-grid/tsconfig.json index 563bf86442..f2120419ac 100644 --- a/packages/turf-square-grid/tsconfig.json +++ b/packages/turf-square-grid/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-rectangle-grid" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-square/package.json b/packages/turf-square/package.json index 662ded8376..45bc71847c 100644 --- a/packages/turf-square/package.json +++ b/packages/turf-square/package.json @@ -23,7 +23,7 @@ "extent" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -34,8 +34,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -45,7 +45,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -54,7 +55,6 @@ "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-square/tsconfig.cjs.json b/packages/turf-square/tsconfig.cjs.json new file mode 100644 index 0000000000..aad86f79d1 --- /dev/null +++ b/packages/turf-square/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-square/tsconfig.json b/packages/turf-square/tsconfig.json index 563bf86442..e0899aa687 100644 --- a/packages/turf-square/tsconfig.json +++ b/packages/turf-square/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-standard-deviational-ellipse/index.ts b/packages/turf-standard-deviational-ellipse/index.ts index a3c9204b5f..d47fd14447 100644 --- a/packages/turf-standard-deviational-ellipse/index.ts +++ b/packages/turf-standard-deviational-ellipse/index.ts @@ -186,5 +186,9 @@ function getDeviations(coordinates: Position, center: Position) { }; } -export { standardDeviationalEllipse, SDEProps, StandardDeviationalEllipse }; +export { + standardDeviationalEllipse, + type SDEProps, + type StandardDeviationalEllipse, +}; export default standardDeviationalEllipse; diff --git a/packages/turf-standard-deviational-ellipse/package.json b/packages/turf-standard-deviational-ellipse/package.json index 098bdf3cf1..9b31f04767 100644 --- a/packages/turf-standard-deviational-ellipse/package.json +++ b/packages/turf-standard-deviational-ellipse/package.json @@ -26,7 +26,7 @@ "directional distribution" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -37,8 +37,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -48,10 +48,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/random": "workspace:*", @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-standard-deviational-ellipse/tsconfig.cjs.json b/packages/turf-standard-deviational-ellipse/tsconfig.cjs.json new file mode 100644 index 0000000000..7984aa42c0 --- /dev/null +++ b/packages/turf-standard-deviational-ellipse/tsconfig.cjs.json @@ -0,0 +1,38 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-center-mean" + }, + { + "path": "../turf-ellipse" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-points-within-polygon" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-standard-deviational-ellipse/tsconfig.json b/packages/turf-standard-deviational-ellipse/tsconfig.json index 563bf86442..cb6f2684b4 100644 --- a/packages/turf-standard-deviational-ellipse/tsconfig.json +++ b/packages/turf-standard-deviational-ellipse/tsconfig.json @@ -1,3 +1,33 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-center-mean" + }, + { + "path": "../turf-ellipse" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-points-within-polygon" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-standard-deviational-ellipse/tsconfig.types.json b/packages/turf-standard-deviational-ellipse/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-standard-deviational-ellipse/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-tag/package.json b/packages/turf-tag/package.json index 0b8e5561e6..afef6d0c2b 100644 --- a/packages/turf-tag/package.json +++ b/packages/turf-tag/package.json @@ -27,7 +27,7 @@ "analysis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,7 +49,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-tag/tsconfig.cjs.json b/packages/turf-tag/tsconfig.cjs.json new file mode 100644 index 0000000000..5c780e75ae --- /dev/null +++ b/packages/turf-tag/tsconfig.cjs.json @@ -0,0 +1,26 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-tag/tsconfig.json b/packages/turf-tag/tsconfig.json index 563bf86442..1ef9b4e830 100644 --- a/packages/turf-tag/tsconfig.json +++ b/packages/turf-tag/tsconfig.json @@ -1,3 +1,21 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-tesselate/earcut.d.ts b/packages/turf-tesselate/earcut.d.ts deleted file mode 100644 index fab99ed18e..0000000000 --- a/packages/turf-tesselate/earcut.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -declare module "earcut" { - declare function earcut( - vertices: number[], - holes: number[], - dimensions: number - ); - - export default earcut; -} diff --git a/packages/turf-tesselate/package.json b/packages/turf-tesselate/package.json index 1747f109a6..57e20d74ab 100644 --- a/packages/turf-tesselate/package.json +++ b/packages/turf-tesselate/package.json @@ -32,7 +32,7 @@ "triangles" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -43,8 +43,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -54,16 +54,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, "devDependencies": { "@types/benchmark": "catalog:", + "@types/earcut": "^3.0.0", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-tesselate/tsconfig.cjs.json b/packages/turf-tesselate/tsconfig.cjs.json new file mode 100644 index 0000000000..f8427e2577 --- /dev/null +++ b/packages/turf-tesselate/tsconfig.cjs.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-tesselate/tsconfig.json b/packages/turf-tesselate/tsconfig.json index 563bf86442..d777551892 100644 --- a/packages/turf-tesselate/tsconfig.json +++ b/packages/turf-tesselate/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-tin/index.ts b/packages/turf-tin/index.ts index 3843db9a12..40faa8ffcb 100644 --- a/packages/turf-tin/index.ts +++ b/packages/turf-tin/index.ts @@ -299,5 +299,5 @@ function triangulate(vertices: Vertice[]) { return closed; } -export { Pt, Vertice, tin }; +export { type Pt, type Vertice, tin }; export default tin; diff --git a/packages/turf-tin/package.json b/packages/turf-tin/package.json index f7ed17841d..a023f5fc05 100644 --- a/packages/turf-tin/package.json +++ b/packages/turf-tin/package.json @@ -22,7 +22,7 @@ "triangulate" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -33,8 +33,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -44,17 +44,17 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", "@types/tape": "catalog:", "benchmark": "catalog:", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:" }, diff --git a/packages/turf-tin/tsconfig.cjs.json b/packages/turf-tin/tsconfig.cjs.json new file mode 100644 index 0000000000..f8427e2577 --- /dev/null +++ b/packages/turf-tin/tsconfig.cjs.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + } + ] +} diff --git a/packages/turf-tin/tsconfig.json b/packages/turf-tin/tsconfig.json index 563bf86442..d777551892 100644 --- a/packages/turf-tin/tsconfig.json +++ b/packages/turf-tin/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + } + ] } diff --git a/packages/turf-tin/tsconfig.types.json b/packages/turf-tin/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-tin/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-transform-rotate/package.json b/packages/turf-transform-rotate/package.json index 53f0eb4007..9998301d97 100644 --- a/packages/turf-transform-rotate/package.json +++ b/packages/turf-transform-rotate/package.json @@ -27,7 +27,7 @@ "rotate" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -38,8 +38,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -49,10 +49,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -61,7 +62,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-transform-rotate/tsconfig.cjs.json b/packages/turf-transform-rotate/tsconfig.cjs.json new file mode 100644 index 0000000000..a464852bd4 --- /dev/null +++ b/packages/turf-transform-rotate/tsconfig.cjs.json @@ -0,0 +1,41 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-transform-rotate/tsconfig.json b/packages/turf-transform-rotate/tsconfig.json index 563bf86442..aaaf4f186f 100644 --- a/packages/turf-transform-rotate/tsconfig.json +++ b/packages/turf-transform-rotate/tsconfig.json @@ -1,3 +1,36 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-transform-rotate/tsconfig.types.json b/packages/turf-transform-rotate/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-transform-rotate/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-transform-scale/package.json b/packages/turf-transform-scale/package.json index 426cb8396b..1238ad515a 100644 --- a/packages/turf-transform-scale/package.json +++ b/packages/turf-transform-scale/package.json @@ -31,7 +31,7 @@ "zoom-out" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -42,8 +42,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -53,10 +53,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/bbox-polygon": "workspace:*", @@ -67,7 +68,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-transform-scale/tsconfig.cjs.json b/packages/turf-transform-scale/tsconfig.cjs.json new file mode 100644 index 0000000000..9ff1617cdd --- /dev/null +++ b/packages/turf-transform-scale/tsconfig.cjs.json @@ -0,0 +1,53 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-hex-grid" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-transform-scale/tsconfig.json b/packages/turf-transform-scale/tsconfig.json index 563bf86442..628c4271e7 100644 --- a/packages/turf-transform-scale/tsconfig.json +++ b/packages/turf-transform-scale/tsconfig.json @@ -1,3 +1,48 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-bbox" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-hex-grid" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-transform-scale/tsconfig.types.json b/packages/turf-transform-scale/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-transform-scale/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-transform-translate/package.json b/packages/turf-transform-translate/package.json index e998203aed..c04e223f5f 100644 --- a/packages/turf-transform-translate/package.json +++ b/packages/turf-transform-translate/package.json @@ -29,7 +29,7 @@ "shift" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -40,8 +40,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -51,10 +51,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/truncate": "workspace:*", @@ -63,7 +64,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-transform-translate/tsconfig.cjs.json b/packages/turf-transform-translate/tsconfig.cjs.json new file mode 100644 index 0000000000..5177534678 --- /dev/null +++ b/packages/turf-transform-translate/tsconfig.cjs.json @@ -0,0 +1,32 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-transform-translate/tsconfig.json b/packages/turf-transform-translate/tsconfig.json index 563bf86442..bfb3f17aba 100644 --- a/packages/turf-transform-translate/tsconfig.json +++ b/packages/turf-transform-translate/tsconfig.json @@ -1,3 +1,27 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-transform-translate/tsconfig.types.json b/packages/turf-transform-translate/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-transform-translate/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-triangle-grid/package.json b/packages/turf-triangle-grid/package.json index 2ba99c3c30..669f061855 100644 --- a/packages/turf-triangle-grid/package.json +++ b/packages/turf-triangle-grid/package.json @@ -25,7 +25,7 @@ "gis" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -36,8 +36,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -47,10 +47,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/bbox-polygon": "workspace:*", @@ -60,7 +61,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-triangle-grid/tsconfig.cjs.json b/packages/turf-triangle-grid/tsconfig.cjs.json new file mode 100644 index 0000000000..0206867498 --- /dev/null +++ b/packages/turf-triangle-grid/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] +} diff --git a/packages/turf-triangle-grid/tsconfig.json b/packages/turf-triangle-grid/tsconfig.json index 563bf86442..9d4c6682b3 100644 --- a/packages/turf-triangle-grid/tsconfig.json +++ b/packages/turf-triangle-grid/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-distance" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-truncate" + } + ] } diff --git a/packages/turf-triangle-grid/tsconfig.types.json b/packages/turf-triangle-grid/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-triangle-grid/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-truncate/package.json b/packages/turf-truncate/package.json index c0ea00b9d5..4f548590d9 100644 --- a/packages/turf-truncate/package.json +++ b/packages/turf-truncate/package.json @@ -26,7 +26,7 @@ "truncate" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -37,8 +37,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -48,10 +48,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-truncate/tsconfig.cjs.json b/packages/turf-truncate/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-truncate/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-truncate/tsconfig.json b/packages/turf-truncate/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-truncate/tsconfig.json +++ b/packages/turf-truncate/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-truncate/tsconfig.types.json b/packages/turf-truncate/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-truncate/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-union/package.json b/packages/turf-union/package.json index 60df8f255a..ad495c84db 100644 --- a/packages/turf-union/package.json +++ b/packages/turf-union/package.json @@ -21,7 +21,7 @@ "gif" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -32,8 +32,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -43,10 +43,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@types/benchmark": "catalog:", @@ -54,7 +55,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-union/tsconfig.cjs.json b/packages/turf-union/tsconfig.cjs.json new file mode 100644 index 0000000000..274261ae27 --- /dev/null +++ b/packages/turf-union/tsconfig.cjs.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] +} diff --git a/packages/turf-union/tsconfig.json b/packages/turf-union/tsconfig.json index 563bf86442..cfaf2377ac 100644 --- a/packages/turf-union/tsconfig.json +++ b/packages/turf-union/tsconfig.json @@ -1,3 +1,15 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + } + ] } diff --git a/packages/turf-union/tsconfig.types.json b/packages/turf-union/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-union/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-unkink-polygon/package.json b/packages/turf-unkink-polygon/package.json index 1245c035eb..8bb8d290d6 100644 --- a/packages/turf-unkink-polygon/package.json +++ b/packages/turf-unkink-polygon/package.json @@ -24,7 +24,7 @@ "self-intersection" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -35,8 +35,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -46,10 +46,11 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts", - "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" + "test:types": "tsc --project tsconfig.types.json" }, "devDependencies": { "@turf/kinks": "workspace:*", @@ -59,7 +60,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-unkink-polygon/tsconfig.cjs.json b/packages/turf-unkink-polygon/tsconfig.cjs.json new file mode 100644 index 0000000000..ecf12f8f25 --- /dev/null +++ b/packages/turf-unkink-polygon/tsconfig.cjs.json @@ -0,0 +1,29 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-kinks" + } + ] +} diff --git a/packages/turf-unkink-polygon/tsconfig.json b/packages/turf-unkink-polygon/tsconfig.json index 563bf86442..e2a97d4107 100644 --- a/packages/turf-unkink-polygon/tsconfig.json +++ b/packages/turf-unkink-polygon/tsconfig.json @@ -1,3 +1,24 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-area" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-kinks" + } + ] } diff --git a/packages/turf-unkink-polygon/tsconfig.types.json b/packages/turf-unkink-polygon/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/packages/turf-unkink-polygon/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/packages/turf-voronoi/package.json b/packages/turf-voronoi/package.json index 2d3a5bd065..3241d2afa9 100644 --- a/packages/turf-voronoi/package.json +++ b/packages/turf-voronoi/package.json @@ -30,7 +30,7 @@ "points" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -41,8 +41,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -52,7 +52,8 @@ ], "scripts": { "bench": "tsx bench.ts", - "build": "tsup --config ../../tsup.config.ts", + "build": "tsc -b", + "prepack": "tsc -b tsconfig.cjs.json", "test": "pnpm run /test:.*/", "test:tape": "tsx test.ts" }, @@ -62,7 +63,6 @@ "benchmark": "catalog:", "load-json-file": "^7.0.1", "tape": "catalog:", - "tsup": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "write-json-file": "^6.0.0" diff --git a/packages/turf-voronoi/tsconfig.cjs.json b/packages/turf-voronoi/tsconfig.cjs.json new file mode 100644 index 0000000000..8e523d365c --- /dev/null +++ b/packages/turf-voronoi/tsconfig.cjs.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] +} diff --git a/packages/turf-voronoi/tsconfig.json b/packages/turf-voronoi/tsconfig.json index 563bf86442..0177652494 100644 --- a/packages/turf-voronoi/tsconfig.json +++ b/packages/turf-voronoi/tsconfig.json @@ -1,3 +1,18 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-clone" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-invariant" + } + ] } diff --git a/packages/turf/index.ts b/packages/turf/index.ts index 6b37b22ff7..f17b6b2d6e 100644 --- a/packages/turf/index.ts +++ b/packages/turf/index.ts @@ -5,123 +5,236 @@ * @module turf * @summary Geospatial analysis for JavaScript */ -export { along } from "@turf/along"; -export { angle } from "@turf/angle"; -export { area } from "@turf/area"; -export { bbox } from "@turf/bbox"; -export { bboxClip } from "@turf/bbox-clip"; -export { bboxPolygon } from "@turf/bbox-polygon"; -export { bearing } from "@turf/bearing"; -export { bezierSpline } from "@turf/bezier-spline"; -export { booleanClockwise } from "@turf/boolean-clockwise"; -export { booleanConcave } from "@turf/boolean-concave"; -export { booleanContains } from "@turf/boolean-contains"; -export { booleanCrosses } from "@turf/boolean-crosses"; -export { booleanDisjoint } from "@turf/boolean-disjoint"; -export { booleanEqual } from "@turf/boolean-equal"; -export { booleanIntersects } from "@turf/boolean-intersects"; -export { booleanOverlap } from "@turf/boolean-overlap"; -export { booleanParallel } from "@turf/boolean-parallel"; -export { booleanPointInPolygon } from "@turf/boolean-point-in-polygon"; -export { booleanPointOnLine } from "@turf/boolean-point-on-line"; -export { booleanTouches } from "@turf/boolean-touches"; -export { booleanValid } from "@turf/boolean-valid"; -export { booleanWithin } from "@turf/boolean-within"; -export { buffer } from "@turf/buffer"; // JSTS Module -export { center } from "@turf/center"; -export { centerMean } from "@turf/center-mean"; -export { centerMedian } from "@turf/center-median"; -export { centerOfMass } from "@turf/center-of-mass"; -export { centroid } from "@turf/centroid"; -export { circle } from "@turf/circle"; -export { cleanCoords } from "@turf/clean-coords"; +import { along } from "@turf/along"; +import { angle } from "@turf/angle"; +import { area } from "@turf/area"; +import { bbox } from "@turf/bbox"; +import { bboxClip } from "@turf/bbox-clip"; +import { bboxPolygon } from "@turf/bbox-polygon"; +import { bearing } from "@turf/bearing"; +import { bezierSpline } from "@turf/bezier-spline"; +import { booleanClockwise } from "@turf/boolean-clockwise"; +import { booleanConcave } from "@turf/boolean-concave"; +import { booleanContains } from "@turf/boolean-contains"; +import { booleanCrosses } from "@turf/boolean-crosses"; +import { booleanDisjoint } from "@turf/boolean-disjoint"; +import { booleanEqual } from "@turf/boolean-equal"; +import { booleanIntersects } from "@turf/boolean-intersects"; +import { booleanOverlap } from "@turf/boolean-overlap"; +import { booleanParallel } from "@turf/boolean-parallel"; +import { booleanPointInPolygon } from "@turf/boolean-point-in-polygon"; +import { booleanPointOnLine } from "@turf/boolean-point-on-line"; +import { booleanTouches } from "@turf/boolean-touches"; +import { booleanValid } from "@turf/boolean-valid"; +import { booleanWithin } from "@turf/boolean-within"; +import { buffer } from "@turf/buffer"; +import { center } from "@turf/center"; +import { centerMean } from "@turf/center-mean"; +import { centerMedian } from "@turf/center-median"; +import { centerOfMass } from "@turf/center-of-mass"; +import { centroid } from "@turf/centroid"; +import { circle } from "@turf/circle"; +import { cleanCoords } from "@turf/clean-coords"; export * from "@turf/clone"; export * from "@turf/clusters"; -export * as clusters from "@turf/clusters"; -export { clustersDbscan } from "@turf/clusters-dbscan"; -export { clustersKmeans } from "@turf/clusters-kmeans"; -export { collect } from "@turf/collect"; -export { combine } from "@turf/combine"; -export { concave } from "@turf/concave"; -export { convex } from "@turf/convex"; -export { destination } from "@turf/destination"; -export { difference } from "@turf/difference"; -export { dissolve } from "@turf/dissolve"; -export { distance } from "@turf/distance"; -export { distanceWeight } from "@turf/distance-weight"; -export { ellipse } from "@turf/ellipse"; -export { envelope } from "@turf/envelope"; -export { explode } from "@turf/explode"; -export { flatten } from "@turf/flatten"; -export { flip } from "@turf/flip"; -export { geojsonRbush } from "@turf/geojson-rbush"; -export { greatCircle } from "@turf/great-circle"; +import * as clusters from "@turf/clusters"; +import { clustersDbscan } from "@turf/clusters-dbscan"; +import { clustersKmeans } from "@turf/clusters-kmeans"; +import { collect } from "@turf/collect"; +import { combine } from "@turf/combine"; +import { concave } from "@turf/concave"; +import { convex } from "@turf/convex"; +import { destination } from "@turf/destination"; +import { difference } from "@turf/difference"; +import { dissolve } from "@turf/dissolve"; +import { distance } from "@turf/distance"; +import { distanceWeight } from "@turf/distance-weight"; +import { ellipse } from "@turf/ellipse"; +import { envelope } from "@turf/envelope"; +import { explode } from "@turf/explode"; +import { flatten } from "@turf/flatten"; +import { flip } from "@turf/flip"; +import { geojsonRbush } from "@turf/geojson-rbush"; +import { greatCircle } from "@turf/great-circle"; export * from "@turf/helpers"; -export * as helpers from "@turf/helpers"; -export { hexGrid } from "@turf/hex-grid"; -export { interpolate } from "@turf/interpolate"; -export { intersect } from "@turf/intersect"; +import * as helpers from "@turf/helpers"; +import { hexGrid } from "@turf/hex-grid"; +import { interpolate } from "@turf/interpolate"; +import { intersect } from "@turf/intersect"; export * from "@turf/invariant"; -export * as invariant from "@turf/invariant"; -export { isobands } from "@turf/isobands"; -export { isolines } from "@turf/isolines"; -export { kinks } from "@turf/kinks"; -export { length } from "@turf/length"; -export { lineArc } from "@turf/line-arc"; -export { lineChunk } from "@turf/line-chunk"; -export { lineIntersect } from "@turf/line-intersect"; -export { lineOffset } from "@turf/line-offset"; -export { lineOverlap } from "@turf/line-overlap"; -export { lineSegment } from "@turf/line-segment"; -export { lineSlice } from "@turf/line-slice"; -export { lineSliceAlong } from "@turf/line-slice-along"; -export { lineSplit } from "@turf/line-split"; -export { lineToPolygon } from "@turf/line-to-polygon"; -export { mask } from "@turf/mask"; +import * as invariant from "@turf/invariant"; +import { isobands } from "@turf/isobands"; +import { isolines } from "@turf/isolines"; +import { kinks } from "@turf/kinks"; +import { length } from "@turf/length"; +import { lineArc } from "@turf/line-arc"; +import { lineChunk } from "@turf/line-chunk"; +import { lineIntersect } from "@turf/line-intersect"; +import { lineOffset } from "@turf/line-offset"; +import { lineOverlap } from "@turf/line-overlap"; +import { lineSegment } from "@turf/line-segment"; +import { lineSlice } from "@turf/line-slice"; +import { lineSliceAlong } from "@turf/line-slice-along"; +import { lineSplit } from "@turf/line-split"; +import { lineToPolygon } from "@turf/line-to-polygon"; +import { mask } from "@turf/mask"; export * from "@turf/meta"; -export * as meta from "@turf/meta"; -export { midpoint } from "@turf/midpoint"; -export { moranIndex } from "@turf/moran-index"; +import * as meta from "@turf/meta"; +import { midpoint } from "@turf/midpoint"; +import { moranIndex } from "@turf/moran-index"; export * from "@turf/nearest-neighbor-analysis"; -export { nearestPoint } from "@turf/nearest-point"; -export { nearestPointOnLine } from "@turf/nearest-point-on-line"; -export { nearestPointToLine } from "@turf/nearest-point-to-line"; -export { planepoint } from "@turf/planepoint"; -export { pointGrid } from "@turf/point-grid"; -export { pointOnFeature } from "@turf/point-on-feature"; -export { pointsWithinPolygon } from "@turf/points-within-polygon"; -export { pointToLineDistance } from "@turf/point-to-line-distance"; -export { pointToPolygonDistance } from "@turf/point-to-polygon-distance"; -export { polygonize } from "@turf/polygonize"; -export { polygonSmooth } from "@turf/polygon-smooth"; -export { polygonTangents } from "@turf/polygon-tangents"; -export { polygonToLine } from "@turf/polygon-to-line"; +import { nearestPoint } from "@turf/nearest-point"; +import { nearestPointOnLine } from "@turf/nearest-point-on-line"; +import { nearestPointToLine } from "@turf/nearest-point-to-line"; +import { planepoint } from "@turf/planepoint"; +import { pointGrid } from "@turf/point-grid"; +import { pointOnFeature } from "@turf/point-on-feature"; +import { pointsWithinPolygon } from "@turf/points-within-polygon"; +import { pointToLineDistance } from "@turf/point-to-line-distance"; +import { pointToPolygonDistance } from "@turf/point-to-polygon-distance"; +import { polygonize } from "@turf/polygonize"; +import { polygonSmooth } from "@turf/polygon-smooth"; +import { polygonTangents } from "@turf/polygon-tangents"; +import { polygonToLine } from "@turf/polygon-to-line"; export * from "@turf/projection"; -export * as projection from "@turf/projection"; +import * as projection from "@turf/projection"; export * from "@turf/quadrat-analysis"; export * from "@turf/random"; -export * as random from "@turf/random"; -export { rectangleGrid } from "@turf/rectangle-grid"; -export { rewind } from "@turf/rewind"; -export { rhumbBearing } from "@turf/rhumb-bearing"; -export { rhumbDestination } from "@turf/rhumb-destination"; -export { rhumbDistance } from "@turf/rhumb-distance"; -export { sample } from "@turf/sample"; -export { sector } from "@turf/sector"; -export { shortestPath } from "@turf/shortest-path"; -export { simplify } from "@turf/simplify"; -export { square } from "@turf/square"; -export { squareGrid } from "@turf/square-grid"; -export { standardDeviationalEllipse } from "@turf/standard-deviational-ellipse"; -export { tag } from "@turf/tag"; -export { tesselate } from "@turf/tesselate"; -export { tin } from "@turf/tin"; -export { transformRotate } from "@turf/transform-rotate"; -export { transformScale } from "@turf/transform-scale"; -export { transformTranslate } from "@turf/transform-translate"; -export { triangleGrid } from "@turf/triangle-grid"; -export { truncate } from "@turf/truncate"; -export { union } from "@turf/union"; -export { unkinkPolygon } from "@turf/unkink-polygon"; -export { voronoi } from "@turf/voronoi"; -export { directionalMean } from "@turf/directional-mean"; +import * as random from "@turf/random"; +import { rectangleGrid } from "@turf/rectangle-grid"; +import { rewind } from "@turf/rewind"; +import { rhumbBearing } from "@turf/rhumb-bearing"; +import { rhumbDestination } from "@turf/rhumb-destination"; +import { rhumbDistance } from "@turf/rhumb-distance"; +import { sample } from "@turf/sample"; +import { sector } from "@turf/sector"; +import { shortestPath } from "@turf/shortest-path"; +import { simplify } from "@turf/simplify"; +import { square } from "@turf/square"; +import { squareGrid } from "@turf/square-grid"; +import { standardDeviationalEllipse } from "@turf/standard-deviational-ellipse"; +import { tag } from "@turf/tag"; +import { tesselate } from "@turf/tesselate"; +import { tin } from "@turf/tin"; +import { transformRotate } from "@turf/transform-rotate"; +import { transformScale } from "@turf/transform-scale"; +import { transformTranslate } from "@turf/transform-translate"; +import { triangleGrid } from "@turf/triangle-grid"; +import { truncate } from "@turf/truncate"; +import { union } from "@turf/union"; +import { unkinkPolygon } from "@turf/unkink-polygon"; +import { voronoi } from "@turf/voronoi"; +import { directionalMean } from "@turf/directional-mean"; +export { + along, + angle, + area, + bbox, + bboxClip, + bboxPolygon, + bearing, + bezierSpline, + booleanClockwise, + booleanConcave, + booleanContains, + booleanCrosses, + booleanDisjoint, + booleanEqual, + booleanIntersects, + booleanOverlap, + booleanParallel, + booleanPointInPolygon, + booleanPointOnLine, + booleanTouches, + booleanValid, + booleanWithin, + buffer, + center, + centerMean, + centerMedian, + centerOfMass, + centroid, + circle, + cleanCoords, + clusters, + clustersDbscan, + clustersKmeans, + collect, + combine, + concave, + convex, + destination, + difference, + directionalMean, + dissolve, + distance, + distanceWeight, + ellipse, + envelope, + explode, + flatten, + flip, + geojsonRbush, + greatCircle, + helpers, + hexGrid, + interpolate, + intersect, + invariant, + isobands, + isolines, + kinks, + length, + lineArc, + lineChunk, + lineIntersect, + lineOffset, + lineOverlap, + lineSegment, + lineSlice, + lineSliceAlong, + lineSplit, + lineToPolygon, + mask, + meta, + midpoint, + moranIndex, + nearestPoint, + nearestPointOnLine, + nearestPointToLine, + planepoint, + pointGrid, + pointOnFeature, + pointToLineDistance, + pointToPolygonDistance, + pointsWithinPolygon, + polygonSmooth, + polygonTangents, + polygonToLine, + polygonize, + projection, + random, + rectangleGrid, + rewind, + rhumbBearing, + rhumbDestination, + rhumbDistance, + sample, + sector, + shortestPath, + simplify, + square, + squareGrid, + standardDeviationalEllipse, + tag, + tesselate, + tin, + transformRotate, + transformScale, + transformTranslate, + triangleGrid, + truncate, + union, + unkinkPolygon, + voronoi, +}; diff --git a/packages/turf/package.json b/packages/turf/package.json index cbd66d15c0..828defce8b 100644 --- a/packages/turf/package.json +++ b/packages/turf/package.json @@ -44,7 +44,7 @@ "sample" ], "type": "module", - "main": "dist/cjs/index.cjs", + "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { @@ -55,8 +55,8 @@ "default": "./dist/esm/index.js" }, "require": { - "types": "./dist/cjs/index.d.cts", - "default": "./dist/cjs/index.cjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" } } }, @@ -67,11 +67,15 @@ "turf.min.js" ], "scripts": { - "build": "tsup --config ../../tsup.config.ts && rollup -c rollup.config.js", + "bench": "tsx bench.ts", + "build": "tsc -b", "last-checks": "pnpm run last-checks:testjs && pnpm run last-checks:example", "last-checks:example": "tsx test.example.js", "last-checks:testjs": "tsx test.ts", - "test": "echo '@turf/turf tests run in the last-checks step'" + "prepack": "tsc -b tsconfig.cjs.json", + "rollup": "rollup -c rollup.config.js", + "test": "pnpm run /test:.*/", + "test:tape": "tsx test.ts" }, "devDependencies": { "@babel/core": "^7.26.10", @@ -80,16 +84,17 @@ "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-terser": "^0.4.4", - "@types/tape": "^5.8.1", + "@types/benchmark": "catalog:", + "@types/tape": "catalog:", + "benchmark": "catalog:", "camelcase": "^8.0.0", "documentation": "^14.0.3", "glob": "^11.1.0", "rollup": "^4.40.1", "rollup-plugin-polyfill-node": "^0.13.0", - "tape": "^5.9.0", - "tsup": "^8.4.0", - "tsx": "^4.19.4", - "typescript": "^5.8.3" + "tape": "catalog:", + "tsx": "catalog:", + "typescript": "catalog:" }, "dependencies": { "@turf/along": "workspace:*", @@ -208,6 +213,6 @@ "@turf/voronoi": "workspace:*", "@types/geojson": "catalog:", "@types/kdbush": "^3.0.5", - "tslib": "^2.8.1" + "tslib": "catalog:" } } diff --git a/packages/turf/test.ts b/packages/turf/test.ts index 4d9f6c10b5..bb64c839c7 100644 --- a/packages/turf/test.ts +++ b/packages/turf/test.ts @@ -17,14 +17,11 @@ for (const name of fs.readdirSync(directory)) { const pckgPath = path.join(directory, name, "package.json"); if (!fs.existsSync(pckgPath)) continue; - const pckg = JSON.parse(fs.readFileSync(pckgPath)); - - let mainFile = path.join(directory, name, pckg.main); - if (!fs.existsSync(mainFile)) { - mainFile += ".js"; - } + const pckg = JSON.parse(fs.readFileSync(pckgPath).toString()); + let mainFile = path.join(directory, name, pckg.module); const index = fs.readFileSync(mainFile, "utf8"); + // Cater for JS or TS test files. const test = fs.existsSync(path.join(directory, name, "test.ts")) ? fs.readFileSync(path.join(directory, name, "test.ts"), "utf8") @@ -221,8 +218,8 @@ test("turf -- parsing dependencies from index.js", (t) => { // Test for missing modules test("turf -- missing modules", (t) => { const files = { - typescript: fs.readFileSync(path.join(__dirname, "dist/cjs/index.d.cts")), - modules: fs.readFileSync(path.join(__dirname, "dist/cjs/index.cjs")), + typescript: fs.readFileSync(path.join(__dirname, "dist/esm/index.d.ts")), + modules: fs.readFileSync(path.join(__dirname, "dist/esm/index.js")), }; modules.forEach(({ name }) => { diff --git a/packages/turf/tsconfig.cjs.json b/packages/turf/tsconfig.cjs.json new file mode 100644 index 0000000000..df34aac11f --- /dev/null +++ b/packages/turf/tsconfig.cjs.json @@ -0,0 +1,356 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + }, + "references": [ + { + "path": "../turf-along" + }, + { + "path": "../turf-angle" + }, + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-clip" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-bearing" + }, + { + "path": "../turf-bezier-spline" + }, + { + "path": "../turf-boolean-clockwise" + }, + { + "path": "../turf-boolean-concave" + }, + { + "path": "../turf-boolean-contains" + }, + { + "path": "../turf-boolean-crosses" + }, + { + "path": "../turf-boolean-disjoint" + }, + { + "path": "../turf-boolean-equal" + }, + { + "path": "../turf-boolean-intersects" + }, + { + "path": "../turf-boolean-overlap" + }, + { + "path": "../turf-boolean-parallel" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-boolean-touches" + }, + { + "path": "../turf-boolean-valid" + }, + { + "path": "../turf-boolean-within" + }, + { + "path": "../turf-buffer" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-center-mean" + }, + { + "path": "../turf-center-median" + }, + { + "path": "../turf-center-of-mass" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-circle" + }, + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-clusters" + }, + { + "path": "../turf-clusters-dbscan" + }, + { + "path": "../turf-clusters-kmeans" + }, + { + "path": "../turf-collect" + }, + { + "path": "../turf-combine" + }, + { + "path": "../turf-concave" + }, + { + "path": "../turf-convex" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-difference" + }, + { + "path": "../turf-directional-mean" + }, + { + "path": "../turf-dissolve" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-distance-weight" + }, + { + "path": "../turf-ellipse" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-flatten" + }, + { + "path": "../turf-flip" + }, + { + "path": "../turf-geojson-rbush" + }, + { + "path": "../turf-great-circle" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-hex-grid" + }, + { + "path": "../turf-interpolate" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-isobands" + }, + { + "path": "../turf-isolines" + }, + { + "path": "../turf-kinks" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-line-arc" + }, + { + "path": "../turf-line-chunk" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-line-offset" + }, + { + "path": "../turf-line-overlap" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-line-slice" + }, + { + "path": "../turf-line-slice-along" + }, + { + "path": "../turf-line-split" + }, + { + "path": "../turf-line-to-polygon" + }, + { + "path": "../turf-mask" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-midpoint" + }, + { + "path": "../turf-moran-index" + }, + { + "path": "../turf-nearest-neighbor-analysis" + }, + { + "path": "../turf-nearest-point" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-nearest-point-to-line" + }, + { + "path": "../turf-planepoint" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-point-on-feature" + }, + { + "path": "../turf-point-to-line-distance" + }, + { + "path": "../turf-point-to-polygon-distance" + }, + { + "path": "../turf-points-within-polygon" + }, + { + "path": "../turf-polygon-smooth" + }, + { + "path": "../turf-polygon-tangents" + }, + { + "path": "../turf-polygon-to-line" + }, + { + "path": "../turf-polygonize" + }, + { + "path": "../turf-projection" + }, + { + "path": "../turf-quadrat-analysis" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-rectangle-grid" + }, + { + "path": "../turf-rewind" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-sample" + }, + { + "path": "../turf-sector" + }, + { + "path": "../turf-shortest-path" + }, + { + "path": "../turf-simplify" + }, + { + "path": "../turf-square" + }, + { + "path": "../turf-square-grid" + }, + { + "path": "../turf-standard-deviational-ellipse" + }, + { + "path": "../turf-tag" + }, + { + "path": "../turf-tesselate" + }, + { + "path": "../turf-tin" + }, + { + "path": "../turf-transform-rotate" + }, + { + "path": "../turf-transform-scale" + }, + { + "path": "../turf-transform-translate" + }, + { + "path": "../turf-triangle-grid" + }, + { + "path": "../turf-truncate" + }, + { + "path": "../turf-union" + }, + { + "path": "../turf-unkink-polygon" + }, + { + "path": "../turf-voronoi" + } + ] +} diff --git a/packages/turf/tsconfig.json b/packages/turf/tsconfig.json index 563bf86442..ebb1fdc74c 100644 --- a/packages/turf/tsconfig.json +++ b/packages/turf/tsconfig.json @@ -1,3 +1,351 @@ { - "extends": "../../tsconfig.shared.json" + "extends": "../../tsconfig.shared.json", + "include": [ + "index.ts", + "lib/**/*.ts" + ], + "references": [ + { + "path": "../turf-along" + }, + { + "path": "../turf-angle" + }, + { + "path": "../turf-area" + }, + { + "path": "../turf-bbox" + }, + { + "path": "../turf-bbox-clip" + }, + { + "path": "../turf-bbox-polygon" + }, + { + "path": "../turf-bearing" + }, + { + "path": "../turf-bezier-spline" + }, + { + "path": "../turf-boolean-clockwise" + }, + { + "path": "../turf-boolean-concave" + }, + { + "path": "../turf-boolean-contains" + }, + { + "path": "../turf-boolean-crosses" + }, + { + "path": "../turf-boolean-disjoint" + }, + { + "path": "../turf-boolean-equal" + }, + { + "path": "../turf-boolean-intersects" + }, + { + "path": "../turf-boolean-overlap" + }, + { + "path": "../turf-boolean-parallel" + }, + { + "path": "../turf-boolean-point-in-polygon" + }, + { + "path": "../turf-boolean-point-on-line" + }, + { + "path": "../turf-boolean-touches" + }, + { + "path": "../turf-boolean-valid" + }, + { + "path": "../turf-boolean-within" + }, + { + "path": "../turf-buffer" + }, + { + "path": "../turf-center" + }, + { + "path": "../turf-center-mean" + }, + { + "path": "../turf-center-median" + }, + { + "path": "../turf-center-of-mass" + }, + { + "path": "../turf-centroid" + }, + { + "path": "../turf-circle" + }, + { + "path": "../turf-clean-coords" + }, + { + "path": "../turf-clone" + }, + { + "path": "../turf-clusters" + }, + { + "path": "../turf-clusters-dbscan" + }, + { + "path": "../turf-clusters-kmeans" + }, + { + "path": "../turf-collect" + }, + { + "path": "../turf-combine" + }, + { + "path": "../turf-concave" + }, + { + "path": "../turf-convex" + }, + { + "path": "../turf-destination" + }, + { + "path": "../turf-difference" + }, + { + "path": "../turf-directional-mean" + }, + { + "path": "../turf-dissolve" + }, + { + "path": "../turf-distance" + }, + { + "path": "../turf-distance-weight" + }, + { + "path": "../turf-ellipse" + }, + { + "path": "../turf-envelope" + }, + { + "path": "../turf-explode" + }, + { + "path": "../turf-flatten" + }, + { + "path": "../turf-flip" + }, + { + "path": "../turf-geojson-rbush" + }, + { + "path": "../turf-great-circle" + }, + { + "path": "../turf-helpers" + }, + { + "path": "../turf-hex-grid" + }, + { + "path": "../turf-interpolate" + }, + { + "path": "../turf-intersect" + }, + { + "path": "../turf-invariant" + }, + { + "path": "../turf-isobands" + }, + { + "path": "../turf-isolines" + }, + { + "path": "../turf-kinks" + }, + { + "path": "../turf-length" + }, + { + "path": "../turf-line-arc" + }, + { + "path": "../turf-line-chunk" + }, + { + "path": "../turf-line-intersect" + }, + { + "path": "../turf-line-offset" + }, + { + "path": "../turf-line-overlap" + }, + { + "path": "../turf-line-segment" + }, + { + "path": "../turf-line-slice" + }, + { + "path": "../turf-line-slice-along" + }, + { + "path": "../turf-line-split" + }, + { + "path": "../turf-line-to-polygon" + }, + { + "path": "../turf-mask" + }, + { + "path": "../turf-meta" + }, + { + "path": "../turf-midpoint" + }, + { + "path": "../turf-moran-index" + }, + { + "path": "../turf-nearest-neighbor-analysis" + }, + { + "path": "../turf-nearest-point" + }, + { + "path": "../turf-nearest-point-on-line" + }, + { + "path": "../turf-nearest-point-to-line" + }, + { + "path": "../turf-planepoint" + }, + { + "path": "../turf-point-grid" + }, + { + "path": "../turf-point-on-feature" + }, + { + "path": "../turf-point-to-line-distance" + }, + { + "path": "../turf-point-to-polygon-distance" + }, + { + "path": "../turf-points-within-polygon" + }, + { + "path": "../turf-polygon-smooth" + }, + { + "path": "../turf-polygon-tangents" + }, + { + "path": "../turf-polygon-to-line" + }, + { + "path": "../turf-polygonize" + }, + { + "path": "../turf-projection" + }, + { + "path": "../turf-quadrat-analysis" + }, + { + "path": "../turf-random" + }, + { + "path": "../turf-rectangle-grid" + }, + { + "path": "../turf-rewind" + }, + { + "path": "../turf-rhumb-bearing" + }, + { + "path": "../turf-rhumb-destination" + }, + { + "path": "../turf-rhumb-distance" + }, + { + "path": "../turf-sample" + }, + { + "path": "../turf-sector" + }, + { + "path": "../turf-shortest-path" + }, + { + "path": "../turf-simplify" + }, + { + "path": "../turf-square" + }, + { + "path": "../turf-square-grid" + }, + { + "path": "../turf-standard-deviational-ellipse" + }, + { + "path": "../turf-tag" + }, + { + "path": "../turf-tesselate" + }, + { + "path": "../turf-tin" + }, + { + "path": "../turf-transform-rotate" + }, + { + "path": "../turf-transform-scale" + }, + { + "path": "../turf-transform-translate" + }, + { + "path": "../turf-triangle-grid" + }, + { + "path": "../turf-truncate" + }, + { + "path": "../turf-union" + }, + { + "path": "../turf-unkink-polygon" + }, + { + "path": "../turf-voronoi" + } + ] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 757550c403..c37d68f7a0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,9 +27,6 @@ catalogs: tstyche: specifier: ^6.2.0 version: 6.2.0 - tsup: - specifier: ^8.4.0 - version: 8.4.0 tsx: specifier: ^4.19.4 version: 4.19.4 @@ -116,15 +113,18 @@ importers: meow: specifier: ^13.2.0 version: 13.2.0 + nx: + specifier: ^22.7.1 + version: 22.7.1 prettier: specifier: ^3.5.3 version: 3.5.3 progress: specifier: ^2.0.3 version: 2.0.3 - tsup: - specifier: ^8.4.0 - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) + tsx: + specifier: ^4.19.4 + version: 4.19.4 typescript: specifier: ^5.8.3 version: 5.8.3 @@ -133,7 +133,7 @@ importers: version: 8.38.0(eslint@9.31.0)(typescript@5.8.3) yaml: specifier: ^2.8.2 - version: 2.8.2 + version: 2.8.3 packages/turf: dependencies: @@ -486,7 +486,7 @@ importers: specifier: ^3.0.5 version: 3.0.5 tslib: - specifier: ^2.8.1 + specifier: 'catalog:' version: 2.8.1 devDependencies: '@babel/core': @@ -507,9 +507,15 @@ importers: '@rollup/plugin-terser': specifier: ^0.4.4 version: 0.4.4(rollup@4.40.1) + '@types/benchmark': + specifier: 'catalog:' + version: 2.1.5 '@types/tape': - specifier: ^5.8.1 + specifier: 'catalog:' version: 5.8.1 + benchmark: + specifier: 'catalog:' + version: 2.1.4 camelcase: specifier: ^8.0.0 version: 8.0.0 @@ -526,16 +532,13 @@ importers: specifier: ^0.13.0 version: 0.13.0(rollup@4.40.1) tape: - specifier: ^5.9.0 + specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: ^8.4.0 - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: - specifier: ^4.19.4 + specifier: 'catalog:' version: 4.19.4 typescript: - specifier: ^5.8.3 + specifier: 'catalog:' version: 5.8.3 packages/turf-along: @@ -577,9 +580,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -632,9 +632,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -675,9 +672,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -715,9 +709,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -758,9 +749,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -795,9 +783,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -835,9 +820,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -878,9 +860,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -921,9 +900,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -961,9 +937,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1019,9 +992,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1074,9 +1044,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1126,9 +1093,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1175,9 +1139,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1221,9 +1182,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1276,9 +1234,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1322,9 +1277,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1365,9 +1317,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1405,9 +1354,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1460,9 +1406,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1530,9 +1473,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1588,9 +1528,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1652,9 +1589,6 @@ importers: tstyche: specifier: 'catalog:' version: 6.2.0(typescript@5.8.3) - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1701,9 +1635,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1753,9 +1684,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1817,9 +1745,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1869,9 +1794,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1912,9 +1834,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -1961,9 +1880,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2013,9 +1929,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2053,9 +1966,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2090,9 +2000,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2154,9 +2061,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2224,9 +2128,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2273,9 +2174,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2310,9 +2208,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2374,9 +2269,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2423,9 +2315,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2469,9 +2358,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2515,9 +2401,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2573,9 +2456,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2625,9 +2505,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2668,9 +2545,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2717,9 +2591,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2787,9 +2658,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2833,9 +2701,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2873,9 +2738,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2916,9 +2778,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -2962,9 +2821,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3020,9 +2876,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3069,9 +2922,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3103,9 +2953,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3155,9 +3002,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3231,9 +3075,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3277,9 +3118,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3314,9 +3152,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3384,9 +3219,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3448,9 +3280,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3491,9 +3320,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3537,9 +3363,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3586,9 +3409,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3638,9 +3458,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3684,9 +3501,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3736,9 +3550,6 @@ importers: tstyche: specifier: 'catalog:' version: 6.2.0(typescript@5.8.3) - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3797,9 +3608,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3843,9 +3651,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3892,9 +3697,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -3947,9 +3749,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4008,9 +3807,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4057,9 +3853,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4106,9 +3899,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4146,9 +3936,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4189,9 +3976,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4232,9 +4016,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4296,9 +4077,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4345,9 +4123,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4403,9 +4178,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4461,9 +4233,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4501,9 +4270,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4553,9 +4319,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4608,9 +4371,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4675,9 +4435,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4730,9 +4487,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4773,9 +4527,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4813,9 +4564,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4868,9 +4616,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4911,9 +4656,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -4963,9 +4705,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5015,9 +4754,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5082,9 +4818,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5119,9 +4852,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5168,9 +4898,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5220,9 +4947,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5263,9 +4987,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5309,9 +5030,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5355,9 +5073,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5392,9 +5107,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5444,9 +5156,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5511,9 +5220,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5563,9 +5269,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5603,9 +5306,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5646,9 +5346,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5707,9 +5404,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5756,9 +5450,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5784,6 +5475,9 @@ importers: '@types/benchmark': specifier: 'catalog:' version: 2.1.5 + '@types/earcut': + specifier: ^3.0.0 + version: 3.0.0 '@types/tape': specifier: 'catalog:' version: 5.8.1 @@ -5793,9 +5487,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5827,9 +5518,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5888,9 +5576,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -5964,9 +5649,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6019,9 +5701,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6071,9 +5750,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6114,9 +5790,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6160,9 +5833,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6218,9 +5888,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6270,9 +5937,6 @@ importers: tape: specifier: 'catalog:' version: 5.9.0 - tsup: - specifier: 'catalog:' - version: 8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2) tsx: specifier: 'catalog:' version: 4.19.4 @@ -6806,12 +6470,21 @@ packages: resolution: {integrity: sha512-Y6+WUMsTFWE5jb20IFP4YGa5IrGY/+a/FbOSjDF/wz9gepU2hwCYSXRHP/vPwBvwcY3SVMASt4yXxbXNXigmZQ==} engines: {node: '>=18'} + '@emnapi/core@1.4.5': + resolution: {integrity: sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==} + '@emnapi/core@1.7.1': resolution: {integrity: sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==} + '@emnapi/runtime@1.4.5': + resolution: {integrity: sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==} + '@emnapi/runtime@1.7.1': resolution: {integrity: sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==} + '@emnapi/wasi-threads@1.0.4': + resolution: {integrity: sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==} + '@emnapi/wasi-threads@1.1.0': resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==} @@ -7235,10 +6908,6 @@ packages: resolution: {integrity: sha512-d+tsDgfkj9X5QTriqM4lKesCkMMJC3IrbPKHvayP00ELx2axdXvDfWkqjxrLXIzGcQzmj7VAUT1wopqARTvafw==} engines: {node: '>= 0.4'} - '@ljharb/through@2.3.13': - resolution: {integrity: sha512-/gKJun8NNiWGZJkGzI/Ragc53cOdcLNdzjLaIa+GEjguQs0ulsurx8WN0jijdK9yPqDvziX995sMRLyLt1uZMQ==} - engines: {node: '>= 0.4'} - '@ljharb/through@2.3.14': resolution: {integrity: sha512-ajBvlKpWucBB17FuQYUShqpqy8GRgYEpJW0vWJbUu1CV9lWyrDCapy0lScU8T8Z6qn49sSwJB3+M+evYIdGg+A==} engines: {node: '>= 0.4'} @@ -7371,53 +7040,53 @@ packages: peerDependencies: nx: '>= 21 <= 23 || ^22.0.0-0' - '@nx/nx-darwin-arm64@22.1.3': - resolution: {integrity: sha512-4D/jXGsr3jcQ0vBo8aXXZMdfmC3n4OsZ1zjFaOXlF62Ujug+RqI/IvKxycT9r7Lr09PmW2OqBC01NfIWKoBLhg==} + '@nx/nx-darwin-arm64@22.7.1': + resolution: {integrity: sha512-m00ZmBn39VUgb0Ahhu5iY6D56ETdXjDbVnOz0XF3DacJrcLtq9sZ+cg1bj6PshqtvRWVg+zJRrZBU6vL7hGuFQ==} cpu: [arm64] os: [darwin] - '@nx/nx-darwin-x64@22.1.3': - resolution: {integrity: sha512-XmdccOBp1Lx9DXUzYDX65mkFqFvXaxUKm1d63bfA43vxIYUpR59SASB81KRQ/Q4dgvvU27C0EJuxSJbXsSkSYw==} + '@nx/nx-darwin-x64@22.7.1': + resolution: {integrity: sha512-DmD8Qow+Yt7Yrmjlz1AsfiwxW+0kRzg+6MY70+d7qChtD2bTzvA/k0ut8SMy+CxU3kxgUbKhGOtml5JDXoX2ww==} cpu: [x64] os: [darwin] - '@nx/nx-freebsd-x64@22.1.3': - resolution: {integrity: sha512-O+o4mqPwhKxfdsri4KxDbXbjwIwr04GfTSfA0TwgXs6hFf68qmc45FAmPGrPSvxIJg9+mUVDeFirdS8GcUE0jQ==} + '@nx/nx-freebsd-x64@22.7.1': + resolution: {integrity: sha512-HboVrUCHcuYTXtuX3dMyRszP7JO90ZVBLWgnmaM7jUM7jnllZjmezUMtpNHfN1GQbVFafJf/NBShDWsu9LuaUA==} cpu: [x64] os: [freebsd] - '@nx/nx-linux-arm-gnueabihf@22.1.3': - resolution: {integrity: sha512-ZIPDgzLq8qmvrZ3Bp+bWXam5uKwahjcChBNtORVtrHQfm4mxov2RMUMKTg2ZsVAWVP64zK+gmzG5LuoZjPMm4Q==} + '@nx/nx-linux-arm-gnueabihf@22.7.1': + resolution: {integrity: sha512-5Gm8Y7L8WXMLUjHhiy1eqGz5/PiRw1YLanFg5audBNkZvH6Jkwzdpoz0dbeKjwMDHz4NmniUV1s76Th8VLWmiQ==} cpu: [arm] os: [linux] - '@nx/nx-linux-arm64-gnu@22.1.3': - resolution: {integrity: sha512-wgpPaTpQKl+cCkSuE5zamTVrg14mRvT+bLAeN/yHSUgMztvGxwl3Ll+K9DgEcktBo1PLECTWNkVaW8IAsJm4Rg==} + '@nx/nx-linux-arm64-gnu@22.7.1': + resolution: {integrity: sha512-GdgPYMfbijBRFJs1absL/9QdSNLsTAGdyKykDf9CaVxEMZ92VB+pncpX9Vn/ZBCSeeWTLF+bSK3UM5v+loIObQ==} cpu: [arm64] os: [linux] - '@nx/nx-linux-arm64-musl@22.1.3': - resolution: {integrity: sha512-o9XmQehSPR2y0RD4evD+Ob3lNFuwsFOL5upVJqZ3rcE6GkJIFPg8SwEP5FaRIS5MwS04fxnek20NZ18BHjjV/g==} + '@nx/nx-linux-arm64-musl@22.7.1': + resolution: {integrity: sha512-HyBgPtY1hyNTk8683nt7F29jh3lVdS/zul9vS0NgKeCSoYL3GRM3nLoTPynoHUxyVP/tWYOE3ymvnk92qYwL4Q==} cpu: [arm64] os: [linux] - '@nx/nx-linux-x64-gnu@22.1.3': - resolution: {integrity: sha512-ekcinyDNTa2huVe02T2SFMR8oArohozRbMGO19zftbObXXI4dLdoAuLNb3vK9Pe4vYOpkhfxBVkZvcWMmx7JdA==} + '@nx/nx-linux-x64-gnu@22.7.1': + resolution: {integrity: sha512-bQBgRiEsanNvKcDOjVAUPjvcp0iDLofYYUL2af2iuCDxreLOej+J6MeA5bWTLNly5ly1d4voKGTqa+OsouVyLg==} cpu: [x64] os: [linux] - '@nx/nx-linux-x64-musl@22.1.3': - resolution: {integrity: sha512-CqpRIJeIgELCqIgjtSsYnnLi6G0uqjbp/Pw9d7w4im4/NmJXqaE9gxpdHA1eowXLgAy9W1LkfzCPS8Q2IScPuQ==} + '@nx/nx-linux-x64-musl@22.7.1': + resolution: {integrity: sha512-gcco2GjcAztF/fRcAgFxtWxrWDnQdNmPaAN9FTt1+qQ9RUSLvdL8bQxKx4Kd9N9T+gXPlrWhMkBkKbbV09+X1Q==} cpu: [x64] os: [linux] - '@nx/nx-win32-arm64-msvc@22.1.3': - resolution: {integrity: sha512-YbuWb8KQsAR9G0+7b4HA16GV962/VWtRcdS7WY2yaScmPT2W5rObl528Y2j4DuB0j/MVZj12qJKrYfUyjL+UJA==} + '@nx/nx-win32-arm64-msvc@22.7.1': + resolution: {integrity: sha512-IT9oEn0YQ83iPH7666aoPyTRsUzBIBJdBLMXeLX4I60fHPXWhUSGpfiLtIsgU2OfeOVb9hU9idwNh1wc4u9rWQ==} cpu: [arm64] os: [win32] - '@nx/nx-win32-x64-msvc@22.1.3': - resolution: {integrity: sha512-G90Sp409ypeOUbmj6nmEbdy043KJUKaZ7pffxmM6i63yEe2F2WdmMgdi525vUEgmq+pfB9zQQOX1sDR/rPFvtg==} + '@nx/nx-win32-x64-msvc@22.7.1': + resolution: {integrity: sha512-P2zeSKXVH2Eiwsb8UfP2rMMS7//cHWpiO4M9zt6q0c4lI/hN1vXBciRKVWruGk9ZrWLHuhaMAhG94+MJtzKuRQ==} cpu: [x64] os: [win32] @@ -7747,6 +7416,9 @@ packages: '@types/debug@4.1.12': resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} + '@types/earcut@3.0.0': + resolution: {integrity: sha512-k/9fOUGO39yd2sCjrbAJvGDEQvRwRnQIZlBz43roGwUZo5SHAmyVvSFyaVVZkicRVCaDXPKlbxrUcBuJoSWunQ==} + '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} @@ -7913,10 +7585,6 @@ packages: '@yarnpkg/lockfile@1.1.0': resolution: {integrity: sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==} - '@yarnpkg/parsers@3.0.2': - resolution: {integrity: sha512-/HcYgtUSiJiot/XWGLOlGxPYUG65+/31V8oqk17vZLW1xlCoR4PampyePljOxY2n8/3jz9+tIFzICsyGujJZoA==} - engines: {node: '>=18.12.0'} - '@zkochan/js-yaml@0.0.7': resolution: {integrity: sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==} hasBin: true @@ -7990,9 +7658,6 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} - any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -8007,9 +7672,6 @@ packages: resolution: {integrity: sha512-8NFOo126uYKQJyXNSLY/jSklgfLQL+XWAcPXGo876JwEQ8nSOPXWNI3TV2jLZMN8QEw8uksJ1ZwS4npjBca8MA==} engines: {node: '>=0.4.0'} - argparse@1.0.10: - resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} - argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} @@ -8058,8 +7720,8 @@ packages: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} engines: {node: '>= 0.4'} - axios@1.13.2: - resolution: {integrity: sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==} + axios@1.15.0: + resolution: {integrity: sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==} babel-plugin-polyfill-corejs2@0.4.13: resolution: {integrity: sha512-3sX/eOms8kd3q2KZ6DAhKPc0dgm525Gqq5NtWKZ7QYYZEv57OQ54KtblzJzH1lQF/eQxO8KjWGIK9IPUJNus5g==} @@ -8082,6 +7744,10 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.3: + resolution: {integrity: sha512-1pHv8LX9CpKut1Zp4EXey7Z8OfH11ONNH6Dhi2WDUt31VVZFXZzKwXcysBgqSumFCmR+0dqjMK5v5JiFHzi0+g==} + engines: {node: 20 || >=22} + base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} @@ -8117,6 +7783,10 @@ packages: brace-expansion@2.0.2: resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + brace-expansion@5.0.2: + resolution: {integrity: sha512-Pdk8c9poy+YhOgVWw1JNN22/HcivgKWwpxKq04M/jTmHyCZn12WPJebZxdjSa5TmBqISrUSgNYU3eRORljfCCw==} + engines: {node: 20 || >=22} + braces@3.0.3: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} @@ -8132,20 +7802,10 @@ packages: buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - bundle-require@5.1.0: - resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - peerDependencies: - esbuild: '>=0.18' - byte-size@8.1.1: resolution: {integrity: sha512-tUkzZWK0M/qdoLEqikxBWe4kumyuwjl3HO6zHTr4yEI23EojPtLYXdG1+AQY7MN0cGyNDvEaJ8wiYQm6P2bPxg==} engines: {node: '>=12.17'} - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - cacache@19.0.1: resolution: {integrity: sha512-hdsUxulXCi5STId78vRVYEtDAjq99ICAUktLTeTYsLoTE6Z8dS0c8pWNCxwdrk9YfJeobDZc2Y186hD/5ZQgFQ==} engines: {node: ^18.17.0 || >=20.5.0} @@ -8158,10 +7818,6 @@ packages: resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} engines: {node: '>= 0.4'} - call-bind@1.0.7: - resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} - engines: {node: '>= 0.4'} - call-bind@1.0.8: resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==} engines: {node: '>= 0.4'} @@ -8224,10 +7880,6 @@ packages: resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} engines: {node: '>= 8.10.0'} - chokidar@4.0.3: - resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} - engines: {node: '>= 14.16.0'} - chownr@2.0.0: resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} engines: {node: '>=10'} @@ -8345,10 +7997,6 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - commander@4.1.1: - resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} - engines: {node: '>= 6'} - common-ancestor-path@1.0.1: resolution: {integrity: sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==} @@ -8368,10 +8016,6 @@ packages: concaveman@1.2.1: resolution: {integrity: sha512-PwZYKaM/ckQSa8peP5JpVr7IMJ4Nn/MHIaWUjP4be+KoZ7Botgs8seAZGpmaOM+UZXawcdYRao/px9ycrCihHw==} - consola@3.4.2: - resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} - engines: {node: ^14.18.0 || >=16.10.0} - console-control-strings@1.1.0: resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==} @@ -8632,8 +8276,8 @@ packages: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} engines: {node: '>=8'} - dotenv-expand@11.0.7: - resolution: {integrity: sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==} + dotenv-expand@12.0.3: + resolution: {integrity: sha512-uc47g4b+4k/M/SeaW1y4OApx+mtLWl92l5LMPP0GNXctZqELk+YGgOPIIC5elYmUH4OuoK3JLhuRUYegeySiFA==} engines: {node: '>=12'} dotenv@16.4.7: @@ -8659,6 +8303,11 @@ packages: engines: {node: '>=0.10.0'} hasBin: true + ejs@5.0.1: + resolution: {integrity: sha512-COqBPFMxuPTPspXl2DkVYaDS3HtrD1GpzOGkNTJ1IYkifq/r9h8SVEFrjA3D9/VJGOEoMQcrlhpntcSUrM8k6A==} + engines: {node: '>=0.12.18'} + hasBin: true + electron-to-chromium@1.5.145: resolution: {integrity: sha512-pZ5EcTWRq/055MvSBgoFEyKf2i4apwfoqJbK/ak2jnFq8oHjZ+vzc3AhRcz37Xn+ZJfL58R666FLJx0YOK9yTw==} @@ -8677,8 +8326,8 @@ packages: encoding@0.1.13: resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} - end-of-stream@1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + end-of-stream@1.4.5: + resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} enhanced-resolve@5.18.1: resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==} @@ -8720,10 +8369,6 @@ packages: engines: {node: '>= 4'} hasBin: true - es-define-property@1.0.0: - resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} - engines: {node: '>= 0.4'} - es-define-property@1.0.1: resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} engines: {node: '>= 0.4'} @@ -8735,18 +8380,10 @@ packages: es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} - es-object-atoms@1.0.0: - resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} - engines: {node: '>= 0.4'} - es-object-atoms@1.1.1: resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} engines: {node: '>= 0.4'} - es-set-tostringtag@2.0.3: - resolution: {integrity: sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ==} - engines: {node: '>= 0.4'} - es-set-tostringtag@2.1.0: resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} engines: {node: '>= 0.4'} @@ -8971,8 +8608,8 @@ packages: fn.name@1.1.0: resolution: {integrity: sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==} - follow-redirects@1.15.6: - resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} + follow-redirects@1.15.11: + resolution: {integrity: sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==} engines: {node: '>=4.0'} peerDependencies: debug: '*' @@ -8991,9 +8628,6 @@ packages: resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==} engines: {node: '>= 6'} - front-matter@4.0.2: - resolution: {integrity: sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg==} - fs-constants@1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} @@ -9049,10 +8683,6 @@ packages: resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} engines: {node: '>=18'} - get-intrinsic@1.2.4: - resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} - engines: {node: '>= 0.4'} - get-intrinsic@1.3.0: resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} @@ -9099,6 +8729,7 @@ packages: git-raw-commits@3.0.0: resolution: {integrity: sha512-b5OHmZ3vAgGrDn/X0kS+9qCfNKWe4K/jFnhwzVWWg0/k5eLa3060tZShrRg8Dja5kPc+YjS0Gc6y7cRr44Lpjw==} engines: {node: '>=14'} + deprecated: This package is no longer maintained. For the JavaScript API, please use @conventional-changelog/git-client instead. hasBin: true git-remote-origin-url@2.0.0: @@ -9108,6 +8739,7 @@ packages: git-semver-tags@5.0.1: resolution: {integrity: sha512-hIvOeZwRbQ+7YEUmCkHqo8FOLQZCEn18yevLHADlFPZY02KJGsu5FZt9YW/lybfK2uhWFI7Qg/07LekJiTv7iA==} engines: {node: '>=14'} + deprecated: This package is no longer maintained. For the JavaScript API, please use @conventional-changelog/git-client instead. hasBin: true git-up@7.0.0: @@ -9193,10 +8825,6 @@ packages: engines: {node: '>=0.6.0'} hasBin: true - gopd@1.1.0: - resolution: {integrity: sha512-FQoVQnqcdk4hVM4JN1eromaun4iuS34oStkdlLENLdpULsuQcTyXj8w7ayhuUfPwEYZ1ZOooOTT6fdA9Vmx/RA==} - engines: {node: '>= 0.4'} - gopd@1.2.0: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} @@ -9666,17 +9294,9 @@ packages: resolution: {integrity: sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-yaml@3.14.2: - resolution: {integrity: sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==} - hasBin: true - js-yaml@4.1.1: resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} hasBin: true @@ -9815,10 +9435,6 @@ packages: resolution: {integrity: sha512-Gnxj3ev3mB5TkVBGad0JM6dmLiQL+o0t23JPBZ9sd+yvSLk05mFoqKBw5N8gbbkU4TNXyqCgIrl/VM17OgUIgQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - load-tsconfig@0.2.5: - resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - locate-path@2.0.0: resolution: {integrity: sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==} engines: {node: '>=4'} @@ -9844,9 +9460,6 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - lodash.sortby@4.7.0: - resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} - lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} @@ -10106,6 +9719,10 @@ packages: resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==} engines: {node: 20 || >=22} + minimatch@10.2.4: + resolution: {integrity: sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==} + engines: {node: 18 || 20 || >=22} + minimatch@3.0.5: resolution: {integrity: sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==} @@ -10222,9 +9839,6 @@ packages: resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==} engines: {node: ^18.17.0 || >=20.5.0} - mz@2.7.0: - resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -10250,9 +9864,6 @@ packages: engines: {node: ^18.17.0 || >=20.5.0} hasBin: true - node-machine-id@1.1.12: - resolution: {integrity: sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==} - node-releases@2.0.19: resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} @@ -10332,22 +9943,18 @@ packages: resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - nx@22.1.3: - resolution: {integrity: sha512-8zS/jhz1ZYSlW3tDEkqIA3oXaS/BTnpuFNV6L3tGKAaIxdn1sD5BuOdxIVK+G/TaoxOhw2iKrGiZeSSpV7fILw==} + nx@22.7.1: + resolution: {integrity: sha512-SadJUQY57MiwRIetm9rhZhdpFeOe1Csib2Vg9C423Pw/h0fZE14qUo6+OBby9vLh5QCkRfRZ0WaHkeO5q6yNtA==} hasBin: true peerDependencies: - '@swc-node/register': ^1.8.0 - '@swc/core': ^1.3.85 + '@swc-node/register': ^1.11.1 + '@swc/core': ^1.15.8 peerDependenciesMeta: '@swc-node/register': optional: true '@swc/core': optional: true - object-assign@4.1.1: - resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} - engines: {node: '>=0.10.0'} - object-inspect@1.13.3: resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} @@ -10607,10 +10214,6 @@ packages: resolution: {integrity: sha512-KocF8ve28eFjjuBKKGvzOBGzG8ew2OqOOSxTTZhirkzH7h3BI1vyzqlR0qbfcDBve1Yzo3FVlWUAtCRrbVN8Fw==} engines: {node: '>=14.16'} - pirates@4.0.6: - resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} - engines: {node: '>= 6'} - pkg-dir@4.2.0: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} @@ -10631,24 +10234,6 @@ packages: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} - postcss-load-config@6.0.1: - resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} - engines: {node: '>= 18'} - peerDependencies: - jiti: '>=1.21.0' - postcss: '>=8.0.9' - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - jiti: - optional: true - postcss: - optional: true - tsx: - optional: true - yaml: - optional: true - postcss-selector-parser@7.1.1: resolution: {integrity: sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==} engines: {node: '>=4'} @@ -10731,8 +10316,9 @@ packages: protocols@2.0.1: resolution: {integrity: sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==} - proxy-from-env@1.1.0: - resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + proxy-from-env@2.1.0: + resolution: {integrity: sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==} + engines: {node: '>=10'} punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} @@ -10821,10 +10407,6 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - readdirp@4.1.2: - resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} - engines: {node: '>= 14.18.0'} - redent@3.0.0: resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} engines: {node: '>=8'} @@ -11020,18 +10602,13 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - semver@7.6.3: - resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} - engines: {node: '>=10'} - hasBin: true - - semver@7.7.1: - resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==} + semver@7.7.2: + resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==} engines: {node: '>=10'} hasBin: true - semver@7.7.2: - resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==} + semver@7.7.4: + resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} engines: {node: '>=10'} hasBin: true @@ -11101,6 +10678,10 @@ packages: smob@1.4.1: resolution: {integrity: sha512-9LK+E7Hv5R9u4g4C3p+jjLstaLe11MDsL21UpYaCNmapvMkYhqCV4A/f/3gyH8QjMyh6l68q9xC85vihY9ahMQ==} + smol-toml@1.6.1: + resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==} + engines: {node: '>= 18'} + socks-proxy-agent@8.0.3: resolution: {integrity: sha512-VNegTZKhuGq5vSD6XNKlbqWhyt/40CgoEw8XxD6dhnm8Jq9IEa3nIa4HwnM8XOqU0CdB0BwWVXusqiFXfHB3+A==} engines: {node: '>= 14'} @@ -11132,11 +10713,6 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - source-map@0.8.0-beta.0: - resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} - engines: {node: '>= 8'} - deprecated: The work that was done in this beta branch won't be included in future versions - space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} @@ -11161,9 +10737,6 @@ packages: split@1.0.1: resolution: {integrity: sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==} - sprintf-js@1.0.3: - resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - ssri@12.0.0: resolution: {integrity: sha512-S7iGNosepx9RadX82oimUkvr0Ct7IjJbEbs4mJcTxst8um95J3sDYU1RBEOvdu6oL1Wek2ODI5i4MAw+dZ6cAQ==} engines: {node: ^18.17.0 || >=20.5.0} @@ -11263,11 +10836,6 @@ packages: engines: {node: '>=18'} hasBin: true - sucrase@3.35.0: - resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} - engines: {node: '>=16 || 14 >=14.17'} - hasBin: true - supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -11306,10 +10874,12 @@ packages: tar@6.2.1: resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} + deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me tar@7.5.2: resolution: {integrity: sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==} engines: {node: '>=18'} + deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me temp-dir@1.0.0: resolution: {integrity: sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ==} @@ -11327,22 +10897,12 @@ packages: text-hex@1.0.0: resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} - thenify-all@1.6.0: - resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} - engines: {node: '>=0.8'} - - thenify@3.3.1: - resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - through2@2.0.5: resolution: {integrity: sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==} through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - tinyexec@0.3.2: - resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} - tinyglobby@0.2.12: resolution: {integrity: sha512-qkf4trmKSIiMTs/E63cxH+ojC2unam7rJ0WrauAzpT3ECNTxGRMlaXxVbfxMUC/w0LaYk6jQ4y/nGR9uBO3tww==} engines: {node: '>=12.0.0'} @@ -11354,8 +10914,8 @@ packages: tinyqueue@2.0.3: resolution: {integrity: sha512-ppJZNDuKGgxzkHihX8v9v9G5f+18gzaTfrukGrq6ueg0lmH4nqVnA2IPG0AEH3jKEk2GRJCUhDoqpoiw3PHLBA==} - tmp@0.2.5: - resolution: {integrity: sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==} + tmp@0.2.4: + resolution: {integrity: sha512-UdiSoX6ypifLmrfQ/XfiawN6hkjSBpCjhKxxZcWlUUmoXLaCKQU0bx4HF/tdDK2uzRuchf1txGvrWBzYREssoQ==} engines: {node: '>=14.14'} to-regex-range@5.0.1: @@ -11370,9 +10930,6 @@ packages: resolution: {integrity: sha512-/VS9j/ffKr2XAOjlZ9CgyyeLmgJ9dMwq6Y0YEON8O7p/tGGk+dCWnrE03zEdu7i4L7YsFZLEPZPzCvcB7lEEXw==} hasBin: true - tr46@1.0.1: - resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} - tree-kill@1.2.2: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} hasBin: true @@ -11401,9 +10958,6 @@ packages: peerDependencies: typescript: '>=4.8.4' - ts-interface-checker@0.1.13: - resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - tsconfig-paths@4.2.0: resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} engines: {node: '>=6'} @@ -11421,25 +10975,6 @@ packages: typescript: optional: true - tsup@8.4.0: - resolution: {integrity: sha512-b+eZbPCjz10fRryaAA7C8xlIHnf8VnsaRqydheLIqwG/Mcpfk8Z5zp3HayX7GaTygkigHl5cBUs+IhcySiIexQ==} - engines: {node: '>=18'} - hasBin: true - peerDependencies: - '@microsoft/api-extractor': ^7.36.0 - '@swc/core': ^1 - postcss: ^8.4.12 - typescript: '>=4.5.0' - peerDependenciesMeta: - '@microsoft/api-extractor': - optional: true - '@swc/core': - optional: true - postcss: - optional: true - typescript: - optional: true - tsx@4.19.4: resolution: {integrity: sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==} engines: {node: '>=18.0.0'} @@ -11656,12 +11191,6 @@ packages: web-namespaces@2.0.1: resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==} - webidl-conversions@4.0.2: - resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} - - whatwg-url@7.1.0: - resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} - which-boxed-primitive@1.1.0: resolution: {integrity: sha512-Ei7Miu/AXe2JJ4iNF5j/UphAgRoma4trE6PtisM09bPygb3egMH3YLW/befsWb1A1AxvNSFidOFTB18XtnIIng==} engines: {node: '>= 0.4'} @@ -11781,8 +11310,13 @@ packages: resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} engines: {node: '>=18'} - yaml@2.8.2: - resolution: {integrity: sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==} + yaml@2.8.0: + resolution: {integrity: sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==} + engines: {node: '>= 14.6'} + hasBin: true + + yaml@2.8.3: + resolution: {integrity: sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==} engines: {node: '>= 14.6'} hasBin: true @@ -12537,15 +12071,28 @@ snapshots: gonzales-pe: 4.3.0 node-source-walk: 7.0.1 + '@emnapi/core@1.4.5': + dependencies: + '@emnapi/wasi-threads': 1.0.4 + tslib: 2.8.1 + '@emnapi/core@1.7.1': dependencies: '@emnapi/wasi-threads': 1.1.0 tslib: 2.8.1 + '@emnapi/runtime@1.4.5': + dependencies: + tslib: 2.8.1 + '@emnapi/runtime@1.7.1': dependencies: tslib: 2.8.1 + '@emnapi/wasi-threads@1.0.4': + dependencies: + tslib: 2.8.1 + '@emnapi/wasi-threads@1.1.0': dependencies: tslib: 2.8.1 @@ -12878,7 +12425,7 @@ snapshots: '@npmcli/arborist': 9.1.6 '@npmcli/package-json': 7.0.2 '@npmcli/run-script': 10.0.2 - '@nx/devkit': 22.1.3(nx@22.1.3) + '@nx/devkit': 22.1.3(nx@22.7.1) '@octokit/plugin-enterprise-rest': 6.0.1 '@octokit/rest': 20.1.2 aproba: 2.0.0 @@ -12913,7 +12460,7 @@ snapshots: npm-package-arg: 13.0.1 npm-packlist: 10.0.3 npm-registry-fetch: 19.1.0 - nx: 22.1.3 + nx: 22.7.1 p-map: 4.0.0 p-map-series: 2.1.0 p-queue: 6.6.2 @@ -12953,12 +12500,8 @@ snapshots: '@ljharb/resumer@0.1.3': dependencies: - '@ljharb/through': 2.3.13 - call-bind: 1.0.7 - - '@ljharb/through@2.3.13': - dependencies: - call-bind: 1.0.7 + '@ljharb/through': 2.3.14 + call-bind: 1.0.8 '@ljharb/through@2.3.14': dependencies: @@ -12969,7 +12512,7 @@ snapshots: '@monorepolint/config': 0.6.0-alpha.6 '@monorepolint/core': 0.6.0-alpha.6 '@monorepolint/utils': 0.6.0-alpha.6 - chalk: 5.6.2 + chalk: 5.4.1 tslib: 2.8.1 yargs: 17.7.2 @@ -13183,45 +12726,45 @@ snapshots: transitivePeerDependencies: - supports-color - '@nx/devkit@22.1.3(nx@22.1.3)': + '@nx/devkit@22.1.3(nx@22.7.1)': dependencies: '@zkochan/js-yaml': 0.0.7 ejs: 3.1.10 enquirer: 2.3.6 minimatch: 9.0.3 - nx: 22.1.3 + nx: 22.7.1 semver: 7.7.2 tslib: 2.8.1 yargs-parser: 21.1.1 - '@nx/nx-darwin-arm64@22.1.3': + '@nx/nx-darwin-arm64@22.7.1': optional: true - '@nx/nx-darwin-x64@22.1.3': + '@nx/nx-darwin-x64@22.7.1': optional: true - '@nx/nx-freebsd-x64@22.1.3': + '@nx/nx-freebsd-x64@22.7.1': optional: true - '@nx/nx-linux-arm-gnueabihf@22.1.3': + '@nx/nx-linux-arm-gnueabihf@22.7.1': optional: true - '@nx/nx-linux-arm64-gnu@22.1.3': + '@nx/nx-linux-arm64-gnu@22.7.1': optional: true - '@nx/nx-linux-arm64-musl@22.1.3': + '@nx/nx-linux-arm64-musl@22.7.1': optional: true - '@nx/nx-linux-x64-gnu@22.1.3': + '@nx/nx-linux-x64-gnu@22.7.1': optional: true - '@nx/nx-linux-x64-musl@22.1.3': + '@nx/nx-linux-x64-musl@22.7.1': optional: true - '@nx/nx-win32-arm64-msvc@22.1.3': + '@nx/nx-win32-arm64-msvc@22.7.1': optional: true - '@nx/nx-win32-x64-msvc@22.1.3': + '@nx/nx-win32-x64-msvc@22.7.1': optional: true '@octokit/auth-token@4.0.0': {} @@ -13527,6 +13070,8 @@ snapshots: dependencies: '@types/ms': 0.7.34 + '@types/earcut@3.0.0': {} + '@types/estree@1.0.6': {} '@types/estree@1.0.7': {} @@ -13666,7 +13211,7 @@ snapshots: fast-glob: 3.3.3 is-glob: 4.0.3 minimatch: 9.0.5 - semver: 7.7.1 + semver: 7.7.2 ts-api-utils: 2.1.0(typescript@5.8.3) typescript: 5.8.3 transitivePeerDependencies: @@ -13682,7 +13227,7 @@ snapshots: fast-glob: 3.3.3 is-glob: 4.0.3 minimatch: 9.0.5 - semver: 7.7.1 + semver: 7.7.2 ts-api-utils: 2.1.0(typescript@5.8.3) typescript: 5.8.3 transitivePeerDependencies: @@ -13743,11 +13288,6 @@ snapshots: '@yarnpkg/lockfile@1.1.0': {} - '@yarnpkg/parsers@3.0.2': - dependencies: - js-yaml: 3.14.2 - tslib: 2.8.1 - '@zkochan/js-yaml@0.0.7': dependencies: argparse: 2.0.1 @@ -13809,8 +13349,6 @@ snapshots: ansi-styles@6.2.1: {} - any-promise@1.3.0: {} - anymatch@3.1.3: dependencies: normalize-path: 3.0.0 @@ -13822,15 +13360,11 @@ snapshots: arc@0.2.0: {} - argparse@1.0.10: - dependencies: - sprintf-js: 1.0.3 - argparse@2.0.1: {} array-buffer-byte-length@1.0.1: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 is-array-buffer: 3.0.4 array-differ@3.0.0: {} @@ -13841,20 +13375,20 @@ snapshots: array.prototype.every@1.1.6: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 es-abstract: 1.23.5 - es-object-atoms: 1.0.0 + es-object-atoms: 1.1.1 is-string: 1.1.0 arraybuffer.prototype.slice@1.0.3: dependencies: array-buffer-byte-length: 1.0.1 - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 es-abstract: 1.23.5 es-errors: 1.3.0 - get-intrinsic: 1.2.4 + get-intrinsic: 1.3.0 is-array-buffer: 3.0.4 is-shared-array-buffer: 1.0.3 @@ -13872,11 +13406,11 @@ snapshots: dependencies: possible-typed-array-names: 1.0.0 - axios@1.13.2: + axios@1.15.0: dependencies: - follow-redirects: 1.15.6 + follow-redirects: 1.15.11 form-data: 4.0.5 - proxy-from-env: 1.1.0 + proxy-from-env: 2.1.0 transitivePeerDependencies: - debug @@ -13908,6 +13442,8 @@ snapshots: balanced-match@1.0.2: {} + balanced-match@4.0.3: {} + base64-js@1.5.1: {} before-after-hook@2.2.3: {} @@ -13952,6 +13488,10 @@ snapshots: dependencies: balanced-match: 1.0.2 + brace-expansion@5.0.2: + dependencies: + balanced-match: 4.0.3 + braces@3.0.3: dependencies: fill-range: 7.1.1 @@ -13970,15 +13510,8 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bundle-require@5.1.0(esbuild@0.25.3): - dependencies: - esbuild: 0.25.3 - load-tsconfig: 0.2.5 - byte-size@8.1.1: {} - cac@6.7.14: {} - cacache@19.0.1: dependencies: '@npmcli/fs': 4.0.0 @@ -14013,14 +13546,6 @@ snapshots: es-errors: 1.3.0 function-bind: 1.1.2 - call-bind@1.0.7: - dependencies: - es-define-property: 1.0.0 - es-errors: 1.3.0 - function-bind: 1.1.2 - get-intrinsic: 1.2.4 - set-function-length: 1.2.2 - call-bind@1.0.8: dependencies: call-bind-apply-helpers: 1.0.2 @@ -14080,10 +13605,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - chokidar@4.0.3: - dependencies: - readdirp: 4.1.2 - chownr@2.0.0: {} chownr@3.0.0: {} @@ -14181,8 +13702,6 @@ snapshots: commander@2.20.3: {} - commander@4.1.1: {} - common-ancestor-path@1.0.1: {} commondir@1.0.1: {} @@ -14208,8 +13727,6 @@ snapshots: robust-predicates: 2.0.4 tinyqueue: 2.0.3 - consola@3.4.2: {} - console-control-strings@1.1.0: {} conventional-changelog-angular@7.0.0: @@ -14305,19 +13822,19 @@ snapshots: data-view-buffer@1.0.1: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 is-data-view: 1.0.1 data-view-byte-length@1.0.1: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 is-data-view: 1.0.1 data-view-byte-offset@1.0.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 is-data-view: 1.0.1 @@ -14356,9 +13873,9 @@ snapshots: deep-equal@2.2.3: dependencies: array-buffer-byte-length: 1.0.1 - call-bind: 1.0.7 + call-bind: 1.0.8 es-get-iterator: 1.1.3 - get-intrinsic: 1.2.4 + get-intrinsic: 1.3.0 is-arguments: 1.1.1 is-array-buffer: 3.0.4 is-date-object: 1.0.5 @@ -14384,9 +13901,9 @@ snapshots: define-data-property@1.1.4: dependencies: - es-define-property: 1.0.0 + es-define-property: 1.0.1 es-errors: 1.3.0 - gopd: 1.1.0 + gopd: 1.2.0 define-lazy-prop@2.0.0: {} @@ -14528,7 +14045,7 @@ snapshots: dependencies: is-obj: 2.0.0 - dotenv-expand@11.0.7: + dotenv-expand@12.0.3: dependencies: dotenv: 16.4.7 @@ -14552,6 +14069,8 @@ snapshots: dependencies: jake: 10.8.7 + ejs@5.0.1: {} + electron-to-chromium@1.5.145: {} emoji-regex@10.4.0: {} @@ -14567,7 +14086,7 @@ snapshots: iconv-lite: 0.6.3 optional: true - end-of-stream@1.4.4: + end-of-stream@1.4.5: dependencies: once: 1.4.0 @@ -14599,20 +14118,20 @@ snapshots: array-buffer-byte-length: 1.0.1 arraybuffer.prototype.slice: 1.0.3 available-typed-arrays: 1.0.7 - call-bind: 1.0.7 + call-bind: 1.0.8 data-view-buffer: 1.0.1 data-view-byte-length: 1.0.1 data-view-byte-offset: 1.0.0 - es-define-property: 1.0.0 + es-define-property: 1.0.1 es-errors: 1.3.0 - es-object-atoms: 1.0.0 - es-set-tostringtag: 2.0.3 + es-object-atoms: 1.1.1 + es-set-tostringtag: 2.1.0 es-to-primitive: 1.3.0 function.prototype.name: 1.1.6 - get-intrinsic: 1.2.4 + get-intrinsic: 1.3.0 get-symbol-description: 1.0.2 globalthis: 1.0.4 - gopd: 1.1.0 + gopd: 1.2.0 has-property-descriptors: 1.0.2 has-proto: 1.1.0 has-symbols: 1.1.0 @@ -14654,18 +14173,14 @@ snapshots: supports-color: 8.1.1 winston: 3.17.0 - es-define-property@1.0.0: - dependencies: - get-intrinsic: 1.2.4 - es-define-property@1.0.1: {} es-errors@1.3.0: {} es-get-iterator@1.1.3: dependencies: - call-bind: 1.0.7 - get-intrinsic: 1.2.4 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 has-symbols: 1.1.0 is-arguments: 1.1.1 is-map: 2.0.3 @@ -14674,20 +14189,10 @@ snapshots: isarray: 2.0.5 stop-iteration-iterator: 1.0.0 - es-object-atoms@1.0.0: - dependencies: - es-errors: 1.3.0 - es-object-atoms@1.1.1: dependencies: es-errors: 1.3.0 - es-set-tostringtag@2.0.3: - dependencies: - get-intrinsic: 1.2.4 - has-tostringtag: 1.0.2 - hasown: 2.0.2 - es-set-tostringtag@2.1.0: dependencies: es-errors: 1.3.0 @@ -14971,7 +14476,7 @@ snapshots: fn.name@1.1.0: {} - follow-redirects@1.15.6: {} + follow-redirects@1.15.11: {} for-each@0.3.3: dependencies: @@ -14990,10 +14495,6 @@ snapshots: hasown: 2.0.2 mime-types: 2.1.35 - front-matter@4.0.2: - dependencies: - js-yaml: 3.14.2 - fs-constants@1.0.0: {} fs-extra@11.3.0: @@ -15019,7 +14520,7 @@ snapshots: function.prototype.name@1.1.6: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 es-abstract: 1.23.5 functions-have-names: 1.2.3 @@ -15045,14 +14546,6 @@ snapshots: get-east-asian-width@1.3.0: {} - get-intrinsic@1.2.4: - dependencies: - es-errors: 1.3.0 - function-bind: 1.1.2 - has-proto: 1.1.0 - has-symbols: 1.1.0 - hasown: 2.0.2 - get-intrinsic@1.3.0: dependencies: call-bind-apply-helpers: 1.0.2 @@ -15092,9 +14585,9 @@ snapshots: get-symbol-description@1.0.2: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 - get-intrinsic: 1.2.4 + get-intrinsic: 1.3.0 get-tsconfig@4.8.1: dependencies: @@ -15204,7 +14697,7 @@ snapshots: globalthis@1.0.4: dependencies: define-properties: 1.2.1 - gopd: 1.1.0 + gopd: 1.2.0 globby@14.1.0: dependencies: @@ -15219,10 +14712,6 @@ snapshots: dependencies: minimist: 1.2.8 - gopd@1.1.0: - dependencies: - get-intrinsic: 1.2.4 - gopd@1.2.0: {} graceful-fs@4.2.11: {} @@ -15244,18 +14733,18 @@ snapshots: has-dynamic-import@2.1.0: dependencies: - call-bind: 1.0.7 - get-intrinsic: 1.2.4 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 has-flag@4.0.0: {} has-property-descriptors@1.0.2: dependencies: - es-define-property: 1.0.0 + es-define-property: 1.0.1 has-proto@1.1.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-symbols@1.1.0: {} @@ -15464,13 +14953,13 @@ snapshots: is-arguments@1.1.1: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-tostringtag: 1.0.2 is-array-buffer@3.0.4: dependencies: - call-bind: 1.0.7 - get-intrinsic: 1.2.4 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 is-arrayish@0.2.1: {} @@ -15490,7 +14979,7 @@ snapshots: is-boolean-object@1.2.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-tostringtag: 1.0.2 is-buffer@2.0.5: {} @@ -15523,7 +15012,7 @@ snapshots: is-finalizationregistry@1.1.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 is-fullwidth-code-point@3.0.0: {} @@ -15551,7 +15040,7 @@ snapshots: is-number-object@1.1.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-tostringtag: 1.0.2 is-number@7.0.0: {} @@ -15572,7 +15061,7 @@ snapshots: is-regex@1.1.4: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-tostringtag: 1.0.2 is-regexp@1.0.0: {} @@ -15585,7 +15074,7 @@ snapshots: is-shared-array-buffer@1.0.3: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 is-ssh@1.4.0: dependencies: @@ -15599,12 +15088,12 @@ snapshots: is-string@1.1.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-tostringtag: 1.0.2 is-symbol@1.1.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-symbols: 1.1.0 safe-regex-test: 1.0.3 @@ -15632,12 +15121,12 @@ snapshots: is-weakref@1.0.2: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 is-weakset@2.0.3: dependencies: - call-bind: 1.0.7 - get-intrinsic: 1.2.4 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 is-windows@1.0.2: {} @@ -15677,15 +15166,8 @@ snapshots: chalk: 4.1.2 pretty-format: 30.2.0 - joycon@3.1.1: {} - js-tokens@4.0.0: {} - js-yaml@3.14.2: - dependencies: - argparse: 1.0.10 - esprima: 4.0.1 - js-yaml@4.1.1: dependencies: argparse: 2.0.1 @@ -15755,7 +15237,7 @@ snapshots: '@npmcli/arborist': 9.1.6 '@npmcli/package-json': 7.0.2 '@npmcli/run-script': 10.0.2 - '@nx/devkit': 22.1.3(nx@22.1.3) + '@nx/devkit': 22.1.3(nx@22.7.1) '@octokit/plugin-enterprise-rest': 6.0.1 '@octokit/rest': 20.1.2 aproba: 2.0.0 @@ -15796,7 +15278,7 @@ snapshots: npm-package-arg: 13.0.1 npm-packlist: 10.0.3 npm-registry-fetch: 19.1.0 - nx: 22.1.3 + nx: 22.7.1 p-map: 4.0.0 p-map-series: 2.1.0 p-pipe: 3.1.0 @@ -15878,7 +15360,7 @@ snapshots: micromatch: 4.0.8 pidtree: 0.6.0 string-argv: 0.3.2 - yaml: 2.8.2 + yaml: 2.8.3 transitivePeerDependencies: - supports-color @@ -15907,8 +15389,6 @@ snapshots: load-json-file@7.0.1: {} - load-tsconfig@0.2.5: {} - locate-path@2.0.0: dependencies: p-locate: 2.0.0 @@ -15932,8 +15412,6 @@ snapshots: lodash.merge@4.6.2: {} - lodash.sortby@4.7.0: {} - lodash@4.17.21: {} log-symbols@4.1.0: @@ -16390,6 +15868,10 @@ snapshots: dependencies: '@isaacs/brace-expansion': 5.0.0 + minimatch@10.2.4: + dependencies: + brace-expansion: 5.0.2 + minimatch@3.0.5: dependencies: brace-expansion: 1.1.12 @@ -16473,7 +15955,7 @@ snapshots: dependencies: define-data-property: 1.1.4 functions-have-names: 1.2.3 - gopd: 1.1.0 + gopd: 1.2.0 has-property-descriptors: 1.0.2 hasown: 2.0.2 isarray: 2.0.5 @@ -16507,12 +15989,6 @@ snapshots: mute-stream@2.0.0: {} - mz@2.7.0: - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - nanoid@3.3.11: {} nanoid@3.3.8: {} @@ -16538,8 +16014,6 @@ snapshots: transitivePeerDependencies: - supports-color - node-machine-id@1.1.12: {} - node-releases@2.0.19: {} node-source-walk@7.0.1: @@ -16561,7 +16035,7 @@ snapshots: dependencies: hosted-git-info: 4.1.0 is-core-module: 2.13.1 - semver: 7.6.3 + semver: 7.7.2 validate-npm-package-license: 3.0.4 normalize-path@3.0.0: {} @@ -16640,71 +16114,144 @@ snapshots: dependencies: path-key: 4.0.0 - nx@22.1.3: + nx@22.7.1: dependencies: + '@emnapi/core': 1.4.5 + '@emnapi/runtime': 1.4.5 + '@emnapi/wasi-threads': 1.0.4 + '@jest/diff-sequences': 30.0.1 '@napi-rs/wasm-runtime': 0.2.4 + '@tybys/wasm-util': 0.9.0 '@yarnpkg/lockfile': 1.1.0 - '@yarnpkg/parsers': 3.0.2 '@zkochan/js-yaml': 0.0.7 - axios: 1.13.2 + ansi-colors: 4.1.3 + ansi-regex: 5.0.1 + ansi-styles: 4.3.0 + argparse: 2.0.1 + asynckit: 0.4.0 + axios: 1.15.0 + balanced-match: 4.0.3 + base64-js: 1.5.1 + bl: 4.1.0 + brace-expansion: 5.0.2 + buffer: 5.7.1 + call-bind-apply-helpers: 1.0.2 chalk: 4.1.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1 cliui: 8.0.1 + clone: 1.0.4 + color-convert: 2.0.1 + color-name: 1.1.4 + combined-stream: 1.0.8 + defaults: 1.0.4 + define-lazy-prop: 2.0.0 + delayed-stream: 1.0.0 dotenv: 16.4.7 - dotenv-expand: 11.0.7 + dotenv-expand: 12.0.3 + dunder-proto: 1.0.1 + ejs: 5.0.1 + emoji-regex: 8.0.0 + end-of-stream: 1.4.5 enquirer: 2.3.6 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + es-set-tostringtag: 2.1.0 + escalade: 3.2.0 + escape-string-regexp: 1.0.5 figures: 3.2.0 flat: 5.0.2 - front-matter: 4.0.2 + follow-redirects: 1.15.11 + form-data: 4.0.5 + fs-constants: 1.0.0 + function-bind: 1.1.2 + get-caller-file: 2.0.5 + get-intrinsic: 1.3.0 + get-proto: 1.0.1 + gopd: 1.2.0 + has-flag: 4.0.0 + has-symbols: 1.1.0 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + ieee754: 1.2.1 ignore: 7.0.5 - jest-diff: 30.2.0 + inherits: 2.0.4 + is-docker: 2.2.1 + is-fullwidth-code-point: 3.0.0 + is-interactive: 1.0.0 + is-unicode-supported: 0.1.0 + is-wsl: 2.2.0 + json5: 2.2.3 jsonc-parser: 3.2.0 lines-and-columns: 2.0.3 - minimatch: 9.0.3 - node-machine-id: 1.1.12 + log-symbols: 4.1.0 + math-intrinsics: 1.1.0 + mime-db: 1.52.0 + mime-types: 2.1.35 + mimic-fn: 2.1.0 + minimatch: 10.2.4 + minimist: 1.2.8 npm-run-path: 4.0.1 + once: 1.4.0 + onetime: 5.1.2 open: 8.4.2 ora: 5.3.0 + path-key: 3.1.1 + picocolors: 1.1.1 + proxy-from-env: 2.1.0 + readable-stream: 3.6.2 + require-directory: 2.1.1 resolve.exports: 2.0.3 - semver: 7.7.2 + restore-cursor: 3.1.0 + safe-buffer: 5.2.1 + semver: 7.7.4 + signal-exit: 3.0.7 + smol-toml: 1.6.1 string-width: 4.2.3 + string_decoder: 1.3.0 + strip-ansi: 6.0.1 + strip-bom: 3.0.0 + supports-color: 7.2.0 tar-stream: 2.2.0 - tmp: 0.2.5 + tmp: 0.2.4 tree-kill: 1.2.2 tsconfig-paths: 4.2.0 tslib: 2.8.1 - yaml: 2.8.2 + util-deprecate: 1.0.2 + wcwidth: 1.0.1 + wrap-ansi: 7.0.0 + wrappy: 1.0.2 + y18n: 5.0.8 + yaml: 2.8.0 yargs: 17.7.2 yargs-parser: 21.1.1 optionalDependencies: - '@nx/nx-darwin-arm64': 22.1.3 - '@nx/nx-darwin-x64': 22.1.3 - '@nx/nx-freebsd-x64': 22.1.3 - '@nx/nx-linux-arm-gnueabihf': 22.1.3 - '@nx/nx-linux-arm64-gnu': 22.1.3 - '@nx/nx-linux-arm64-musl': 22.1.3 - '@nx/nx-linux-x64-gnu': 22.1.3 - '@nx/nx-linux-x64-musl': 22.1.3 - '@nx/nx-win32-arm64-msvc': 22.1.3 - '@nx/nx-win32-x64-msvc': 22.1.3 + '@nx/nx-darwin-arm64': 22.7.1 + '@nx/nx-darwin-x64': 22.7.1 + '@nx/nx-freebsd-x64': 22.7.1 + '@nx/nx-linux-arm-gnueabihf': 22.7.1 + '@nx/nx-linux-arm64-gnu': 22.7.1 + '@nx/nx-linux-arm64-musl': 22.7.1 + '@nx/nx-linux-x64-gnu': 22.7.1 + '@nx/nx-linux-x64-musl': 22.7.1 + '@nx/nx-win32-arm64-msvc': 22.7.1 + '@nx/nx-win32-x64-msvc': 22.7.1 transitivePeerDependencies: - debug - object-assign@4.1.1: {} - object-inspect@1.13.3: {} object-is@1.1.6: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 object-keys@1.1.1: {} object.assign@4.1.5: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 has-symbols: 1.1.0 object-keys: 1.1.1 @@ -16962,8 +16509,6 @@ snapshots: pify@6.1.0: {} - pirates@4.0.6: {} - pkg-dir@4.2.0: dependencies: find-up: 4.1.0 @@ -16981,14 +16526,6 @@ snapshots: possible-typed-array-names@1.0.0: {} - postcss-load-config@6.0.1(postcss@8.5.3)(tsx@4.19.4)(yaml@2.8.2): - dependencies: - lilconfig: 3.1.3 - optionalDependencies: - postcss: 8.5.3 - tsx: 4.19.4 - yaml: 2.8.2 - postcss-selector-parser@7.1.1: dependencies: cssesc: 3.0.0 @@ -17079,7 +16616,7 @@ snapshots: protocols@2.0.1: {} - proxy-from-env@1.1.0: {} + proxy-from-env@2.1.0: {} punycode@2.3.1: {} @@ -17179,8 +16716,6 @@ snapshots: dependencies: picomatch: 2.3.1 - readdirp@4.1.2: {} - redent@3.0.0: dependencies: indent-string: 4.0.0 @@ -17188,12 +16723,12 @@ snapshots: reflect.getprototypeof@1.0.7: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 es-abstract: 1.23.5 es-errors: 1.3.0 - get-intrinsic: 1.2.4 - gopd: 1.1.0 + get-intrinsic: 1.3.0 + gopd: 1.2.0 which-builtin-type: 1.2.0 regenerate-unicode-properties@10.2.0: @@ -17210,7 +16745,7 @@ snapshots: regexp.prototype.flags@1.5.3: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 es-errors: 1.3.0 set-function-name: 2.0.2 @@ -17323,7 +16858,7 @@ snapshots: resolve@2.0.0-next.5: dependencies: - is-core-module: 2.13.1 + is-core-module: 2.16.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -17396,8 +16931,8 @@ snapshots: safe-array-concat@1.1.2: dependencies: - call-bind: 1.0.7 - get-intrinsic: 1.2.4 + call-bind: 1.0.8 + get-intrinsic: 1.3.0 has-symbols: 1.1.0 isarray: 2.0.5 @@ -17407,7 +16942,7 @@ snapshots: safe-regex-test@1.0.3: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 is-regex: 1.1.4 @@ -17424,12 +16959,10 @@ snapshots: semver@6.3.1: {} - semver@7.6.3: {} - - semver@7.7.1: {} - semver@7.7.2: {} + semver@7.7.4: {} + serialize-javascript@6.0.2: dependencies: randombytes: 2.1.0 @@ -17441,8 +16974,8 @@ snapshots: define-data-property: 1.1.4 es-errors: 1.3.0 function-bind: 1.1.2 - get-intrinsic: 1.2.4 - gopd: 1.1.0 + get-intrinsic: 1.3.0 + gopd: 1.2.0 has-property-descriptors: 1.0.2 set-function-name@2.0.2: @@ -17460,9 +16993,9 @@ snapshots: side-channel@1.0.6: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 - get-intrinsic: 1.2.4 + get-intrinsic: 1.3.0 object-inspect: 1.13.3 signal-exit@3.0.7: {} @@ -17504,6 +17037,8 @@ snapshots: smob@1.4.1: {} + smol-toml@1.6.1: {} + socks-proxy-agent@8.0.3: dependencies: agent-base: 7.1.1 @@ -17538,10 +17073,6 @@ snapshots: source-map@0.6.1: {} - source-map@0.8.0-beta.0: - dependencies: - whatwg-url: 7.1.0 - space-separated-tokens@2.0.2: {} spdx-correct@3.2.0: @@ -17568,8 +17099,6 @@ snapshots: dependencies: through: 2.3.8 - sprintf-js@1.0.3: {} - ssri@12.0.0: dependencies: minipass: 7.1.2 @@ -17606,22 +17135,22 @@ snapshots: string.prototype.trim@1.2.9: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 es-abstract: 1.23.5 - es-object-atoms: 1.0.0 + es-object-atoms: 1.1.1 string.prototype.trimend@1.0.8: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 - es-object-atoms: 1.0.0 + es-object-atoms: 1.1.1 string.prototype.trimstart@1.0.8: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 define-properties: 1.2.1 - es-object-atoms: 1.0.0 + es-object-atoms: 1.1.1 string_decoder@1.1.1: dependencies: @@ -17672,16 +17201,6 @@ snapshots: dependencies: commander: 12.1.0 - sucrase@3.35.0: - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - commander: 4.1.1 - glob: 10.5.0 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.6 - ts-interface-checker: 0.1.13 - supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -17707,9 +17226,9 @@ snapshots: tape@5.9.0: dependencies: '@ljharb/resumer': 0.1.3 - '@ljharb/through': 2.3.13 + '@ljharb/through': 2.3.14 array.prototype.every: 1.1.6 - call-bind: 1.0.7 + call-bind: 1.0.8 deep-equal: 2.2.3 defined: 1.0.1 dotignore: 0.1.2 @@ -17732,7 +17251,7 @@ snapshots: tar-stream@2.2.0: dependencies: bl: 4.1.0 - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 fs-constants: 1.0.0 inherits: 2.0.4 readable-stream: 3.6.2 @@ -17767,14 +17286,6 @@ snapshots: text-hex@1.0.0: {} - thenify-all@1.6.0: - dependencies: - thenify: 3.3.1 - - thenify@3.3.1: - dependencies: - any-promise: 1.3.0 - through2@2.0.5: dependencies: readable-stream: 2.3.8 @@ -17782,8 +17293,6 @@ snapshots: through@2.3.8: {} - tinyexec@0.3.2: {} - tinyglobby@0.2.12: dependencies: fdir: 6.4.4(picomatch@4.0.2) @@ -17796,7 +17305,7 @@ snapshots: tinyqueue@2.0.3: {} - tmp@0.2.5: {} + tmp@0.2.4: {} to-regex-range@5.0.1: dependencies: @@ -17810,10 +17319,6 @@ snapshots: dependencies: commander: 2.20.3 - tr46@1.0.1: - dependencies: - punycode: 2.3.1 - tree-kill@1.2.2: {} treeverse@3.0.0: {} @@ -17830,8 +17335,6 @@ snapshots: dependencies: typescript: 5.8.3 - ts-interface-checker@0.1.13: {} - tsconfig-paths@4.2.0: dependencies: json5: 2.2.3 @@ -17844,33 +17347,6 @@ snapshots: optionalDependencies: typescript: 5.8.3 - tsup@8.4.0(postcss@8.5.3)(tsx@4.19.4)(typescript@5.8.3)(yaml@2.8.2): - dependencies: - bundle-require: 5.1.0(esbuild@0.25.3) - cac: 6.7.14 - chokidar: 4.0.3 - consola: 3.4.2 - debug: 4.4.0 - esbuild: 0.25.3 - joycon: 3.1.1 - picocolors: 1.1.1 - postcss-load-config: 6.0.1(postcss@8.5.3)(tsx@4.19.4)(yaml@2.8.2) - resolve-from: 5.0.0 - rollup: 4.40.1 - source-map: 0.8.0-beta.0 - sucrase: 3.35.0 - tinyexec: 0.3.2 - tinyglobby: 0.2.13 - tree-kill: 1.2.2 - optionalDependencies: - postcss: 8.5.3 - typescript: 5.8.3 - transitivePeerDependencies: - - jiti - - supports-color - - tsx - - yaml - tsx@4.19.4: dependencies: esbuild: 0.25.3 @@ -17902,33 +17378,33 @@ snapshots: typed-array-buffer@1.0.2: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 es-errors: 1.3.0 is-typed-array: 1.1.13 typed-array-byte-length@1.0.1: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 for-each: 0.3.3 - gopd: 1.1.0 + gopd: 1.2.0 has-proto: 1.1.0 is-typed-array: 1.1.13 typed-array-byte-offset@1.0.3: dependencies: available-typed-arrays: 1.0.7 - call-bind: 1.0.7 + call-bind: 1.0.8 for-each: 0.3.3 - gopd: 1.1.0 + gopd: 1.2.0 has-proto: 1.1.0 is-typed-array: 1.1.13 reflect.getprototypeof: 1.0.7 typed-array-length@1.0.7: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 for-each: 0.3.3 - gopd: 1.1.0 + gopd: 1.2.0 is-typed-array: 1.1.13 possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.7 @@ -17957,7 +17433,7 @@ snapshots: unbox-primitive@1.0.2: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 has-bigints: 1.0.2 has-symbols: 1.1.0 which-boxed-primitive: 1.1.0 @@ -18122,14 +17598,6 @@ snapshots: web-namespaces@2.0.1: {} - webidl-conversions@4.0.2: {} - - whatwg-url@7.1.0: - dependencies: - lodash.sortby: 4.7.0 - tr46: 1.0.1 - webidl-conversions: 4.0.2 - which-boxed-primitive@1.1.0: dependencies: is-bigint: 1.1.0 @@ -18140,7 +17608,7 @@ snapshots: which-builtin-type@1.2.0: dependencies: - call-bind: 1.0.7 + call-bind: 1.0.8 function.prototype.name: 1.1.6 has-tostringtag: 1.0.2 is-async-function: 2.0.0 @@ -18164,9 +17632,9 @@ snapshots: which-typed-array@1.1.16: dependencies: available-typed-arrays: 1.0.7 - call-bind: 1.0.7 + call-bind: 1.0.8 for-each: 0.3.3 - gopd: 1.1.0 + gopd: 1.2.0 has-tostringtag: 1.0.2 which@2.0.2: @@ -18297,7 +17765,9 @@ snapshots: yallist@5.0.0: {} - yaml@2.8.2: {} + yaml@2.8.0: {} + + yaml@2.8.3: {} yargs-parser@20.2.4: {} diff --git a/scripts/cjs-package-json.ts b/scripts/cjs-package-json.ts new file mode 100644 index 0000000000..e94ab219b7 --- /dev/null +++ b/scripts/cjs-package-json.ts @@ -0,0 +1,35 @@ +import { writeFileSync, mkdirSync, readdirSync, statSync } from "fs"; +import { join } from "path"; + +const packagesDir = join(process.cwd(), "packages"); +const packageJsonContent = { + type: "commonjs", +}; + +// Get all directories in packages/ +const directories = readdirSync(packagesDir).filter((item) => { + const fullPath = join(packagesDir, item); + return statSync(fullPath).isDirectory() && item.startsWith("turf"); +}); + +let count = 0; + +// Process each turf* directory +for (const dir of directories) { + const distCjsDir = join(packagesDir, dir, "dist", "cjs"); + const packageJsonPath = join(distCjsDir, "package.json"); + + // Create the directory if it doesn't exist + mkdirSync(distCjsDir, { recursive: true }); + + // Write the package.json file + writeFileSync( + packageJsonPath, + JSON.stringify(packageJsonContent, null, 2) + "\n" + ); + + console.log(`✓ Created package.json in packages/${dir}/dist/cjs/`); + count++; +} + +console.log(`\nTotal: ${count} package.json file(s) created`); diff --git a/templates/package/tsconfig.cjs.json b/templates/package/tsconfig.cjs.json new file mode 100644 index 0000000000..5a88431afe --- /dev/null +++ b/templates/package/tsconfig.cjs.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": ["index.ts", "lib/**/*.ts"], + "compilerOptions": { + "module": "commonjs", + "moduleResolution": "node", + "outDir": "${configDir}/dist/cjs" + } +} diff --git a/templates/package/tsconfig.json b/templates/package/tsconfig.json new file mode 100644 index 0000000000..8f3020c811 --- /dev/null +++ b/templates/package/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../../tsconfig.shared.json", + "include": ["index.ts", "lib/**/*.ts"] +} diff --git a/templates/package/tsconfig.types.json b/templates/package/tsconfig.types.json new file mode 100644 index 0000000000..262fefbf0c --- /dev/null +++ b/templates/package/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + }, + "include": ["types.ts"], +} diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json new file mode 100644 index 0000000000..eca417d84e --- /dev/null +++ b/tsconfig.cjs.json @@ -0,0 +1,120 @@ +{ + "files": [], + "references": [ + { "path": "packages/turf/tsconfig.cjs.json" }, + { "path": "packages/turf-along/tsconfig.cjs.json" }, + { "path": "packages/turf-angle/tsconfig.cjs.json" }, + { "path": "packages/turf-area/tsconfig.cjs.json" }, + { "path": "packages/turf-bbox/tsconfig.cjs.json" }, + { "path": "packages/turf-bbox-clip/tsconfig.cjs.json" }, + { "path": "packages/turf-bbox-polygon/tsconfig.cjs.json" }, + { "path": "packages/turf-bearing/tsconfig.cjs.json" }, + { "path": "packages/turf-bezier-spline/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-clockwise/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-concave/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-contains/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-crosses/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-disjoint/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-equal/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-intersects/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-overlap/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-parallel/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-point-in-polygon/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-point-on-line/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-touches/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-valid/tsconfig.cjs.json" }, + { "path": "packages/turf-boolean-within/tsconfig.cjs.json" }, + { "path": "packages/turf-buffer/tsconfig.cjs.json" }, + { "path": "packages/turf-center/tsconfig.cjs.json" }, + { "path": "packages/turf-center-mean/tsconfig.cjs.json" }, + { "path": "packages/turf-center-median/tsconfig.cjs.json" }, + { "path": "packages/turf-center-of-mass/tsconfig.cjs.json" }, + { "path": "packages/turf-centroid/tsconfig.cjs.json" }, + { "path": "packages/turf-circle/tsconfig.cjs.json" }, + { "path": "packages/turf-clean-coords/tsconfig.cjs.json" }, + { "path": "packages/turf-clone/tsconfig.cjs.json" }, + { "path": "packages/turf-clusters/tsconfig.cjs.json" }, + { "path": "packages/turf-clusters-dbscan/tsconfig.cjs.json" }, + { "path": "packages/turf-clusters-kmeans/tsconfig.cjs.json" }, + { "path": "packages/turf-collect/tsconfig.cjs.json" }, + { "path": "packages/turf-combine/tsconfig.cjs.json" }, + { "path": "packages/turf-concave/tsconfig.cjs.json" }, + { "path": "packages/turf-convex/tsconfig.cjs.json" }, + { "path": "packages/turf-destination/tsconfig.cjs.json" }, + { "path": "packages/turf-difference/tsconfig.cjs.json" }, + { "path": "packages/turf-directional-mean/tsconfig.cjs.json" }, + { "path": "packages/turf-dissolve/tsconfig.cjs.json" }, + { "path": "packages/turf-distance/tsconfig.cjs.json" }, + { "path": "packages/turf-distance-weight/tsconfig.cjs.json" }, + { "path": "packages/turf-ellipse/tsconfig.cjs.json" }, + { "path": "packages/turf-envelope/tsconfig.cjs.json" }, + { "path": "packages/turf-explode/tsconfig.cjs.json" }, + { "path": "packages/turf-flatten/tsconfig.cjs.json" }, + { "path": "packages/turf-flip/tsconfig.cjs.json" }, + { "path": "packages/turf-geojson-rbush/tsconfig.cjs.json" }, + { "path": "packages/turf-great-circle/tsconfig.cjs.json" }, + { "path": "packages/turf-helpers/tsconfig.cjs.json" }, + { "path": "packages/turf-hex-grid/tsconfig.cjs.json" }, + { "path": "packages/turf-interpolate/tsconfig.cjs.json" }, + { "path": "packages/turf-intersect/tsconfig.cjs.json" }, + { "path": "packages/turf-invariant/tsconfig.cjs.json" }, + { "path": "packages/turf-isobands/tsconfig.cjs.json" }, + { "path": "packages/turf-isolines/tsconfig.cjs.json" }, + { "path": "packages/turf-kinks/tsconfig.cjs.json" }, + { "path": "packages/turf-length/tsconfig.cjs.json" }, + { "path": "packages/turf-line-arc/tsconfig.cjs.json" }, + { "path": "packages/turf-line-chunk/tsconfig.cjs.json" }, + { "path": "packages/turf-line-intersect/tsconfig.cjs.json" }, + { "path": "packages/turf-line-offset/tsconfig.cjs.json" }, + { "path": "packages/turf-line-overlap/tsconfig.cjs.json" }, + { "path": "packages/turf-line-segment/tsconfig.cjs.json" }, + { "path": "packages/turf-line-slice/tsconfig.cjs.json" }, + { "path": "packages/turf-line-slice-along/tsconfig.cjs.json" }, + { "path": "packages/turf-line-split/tsconfig.cjs.json" }, + { "path": "packages/turf-line-to-polygon/tsconfig.cjs.json" }, + { "path": "packages/turf-mask/tsconfig.cjs.json" }, + { "path": "packages/turf-meta/tsconfig.cjs.json" }, + { "path": "packages/turf-midpoint/tsconfig.cjs.json" }, + { "path": "packages/turf-moran-index/tsconfig.cjs.json" }, + { "path": "packages/turf-nearest-neighbor-analysis/tsconfig.cjs.json" }, + { "path": "packages/turf-nearest-point/tsconfig.cjs.json" }, + { "path": "packages/turf-nearest-point-on-line/tsconfig.cjs.json" }, + { "path": "packages/turf-nearest-point-to-line/tsconfig.cjs.json" }, + { "path": "packages/turf-planepoint/tsconfig.cjs.json" }, + { "path": "packages/turf-point-grid/tsconfig.cjs.json" }, + { "path": "packages/turf-point-on-feature/tsconfig.cjs.json" }, + { "path": "packages/turf-point-to-line-distance/tsconfig.cjs.json" }, + { "path": "packages/turf-point-to-polygon-distance/tsconfig.cjs.json" }, + { "path": "packages/turf-points-within-polygon/tsconfig.cjs.json" }, + { "path": "packages/turf-polygon-smooth/tsconfig.cjs.json" }, + { "path": "packages/turf-polygon-tangents/tsconfig.cjs.json" }, + { "path": "packages/turf-polygon-to-line/tsconfig.cjs.json" }, + { "path": "packages/turf-polygonize/tsconfig.cjs.json" }, + { "path": "packages/turf-projection/tsconfig.cjs.json" }, + { "path": "packages/turf-quadrat-analysis/tsconfig.cjs.json" }, + { "path": "packages/turf-random/tsconfig.cjs.json" }, + { "path": "packages/turf-rectangle-grid/tsconfig.cjs.json" }, + { "path": "packages/turf-rewind/tsconfig.cjs.json" }, + { "path": "packages/turf-rhumb-bearing/tsconfig.cjs.json" }, + { "path": "packages/turf-rhumb-destination/tsconfig.cjs.json" }, + { "path": "packages/turf-rhumb-distance/tsconfig.cjs.json" }, + { "path": "packages/turf-sample/tsconfig.cjs.json" }, + { "path": "packages/turf-sector/tsconfig.cjs.json" }, + { "path": "packages/turf-shortest-path/tsconfig.cjs.json" }, + { "path": "packages/turf-simplify/tsconfig.cjs.json" }, + { "path": "packages/turf-square/tsconfig.cjs.json" }, + { "path": "packages/turf-square-grid/tsconfig.cjs.json" }, + { "path": "packages/turf-standard-deviational-ellipse/tsconfig.cjs.json" }, + { "path": "packages/turf-tag/tsconfig.cjs.json" }, + { "path": "packages/turf-tesselate/tsconfig.cjs.json" }, + { "path": "packages/turf-tin/tsconfig.cjs.json" }, + { "path": "packages/turf-transform-rotate/tsconfig.cjs.json" }, + { "path": "packages/turf-transform-scale/tsconfig.cjs.json" }, + { "path": "packages/turf-transform-translate/tsconfig.cjs.json" }, + { "path": "packages/turf-triangle-grid/tsconfig.cjs.json" }, + { "path": "packages/turf-truncate/tsconfig.cjs.json" }, + { "path": "packages/turf-union/tsconfig.cjs.json" }, + { "path": "packages/turf-unkink-polygon/tsconfig.cjs.json" }, + { "path": "packages/turf-voronoi/tsconfig.cjs.json" } + ] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000000..740c3276a0 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,120 @@ +{ + "files": [], + "references": [ + { "path": "packages/turf" }, + { "path": "packages/turf-along" }, + { "path": "packages/turf-angle" }, + { "path": "packages/turf-area" }, + { "path": "packages/turf-bbox" }, + { "path": "packages/turf-bbox-clip" }, + { "path": "packages/turf-bbox-polygon" }, + { "path": "packages/turf-bearing" }, + { "path": "packages/turf-bezier-spline" }, + { "path": "packages/turf-boolean-clockwise" }, + { "path": "packages/turf-boolean-concave" }, + { "path": "packages/turf-boolean-contains" }, + { "path": "packages/turf-boolean-crosses" }, + { "path": "packages/turf-boolean-disjoint" }, + { "path": "packages/turf-boolean-equal" }, + { "path": "packages/turf-boolean-intersects" }, + { "path": "packages/turf-boolean-overlap" }, + { "path": "packages/turf-boolean-parallel" }, + { "path": "packages/turf-boolean-point-in-polygon" }, + { "path": "packages/turf-boolean-point-on-line" }, + { "path": "packages/turf-boolean-touches" }, + { "path": "packages/turf-boolean-valid" }, + { "path": "packages/turf-boolean-within" }, + { "path": "packages/turf-buffer" }, + { "path": "packages/turf-center" }, + { "path": "packages/turf-center-mean" }, + { "path": "packages/turf-center-median" }, + { "path": "packages/turf-center-of-mass" }, + { "path": "packages/turf-centroid" }, + { "path": "packages/turf-circle" }, + { "path": "packages/turf-clean-coords" }, + { "path": "packages/turf-clone" }, + { "path": "packages/turf-clusters" }, + { "path": "packages/turf-clusters-dbscan" }, + { "path": "packages/turf-clusters-kmeans" }, + { "path": "packages/turf-collect" }, + { "path": "packages/turf-combine" }, + { "path": "packages/turf-concave" }, + { "path": "packages/turf-convex" }, + { "path": "packages/turf-destination" }, + { "path": "packages/turf-difference" }, + { "path": "packages/turf-directional-mean" }, + { "path": "packages/turf-dissolve" }, + { "path": "packages/turf-distance" }, + { "path": "packages/turf-distance-weight" }, + { "path": "packages/turf-ellipse" }, + { "path": "packages/turf-envelope" }, + { "path": "packages/turf-explode" }, + { "path": "packages/turf-flatten" }, + { "path": "packages/turf-flip" }, + { "path": "packages/turf-geojson-rbush" }, + { "path": "packages/turf-great-circle" }, + { "path": "packages/turf-helpers" }, + { "path": "packages/turf-hex-grid" }, + { "path": "packages/turf-interpolate" }, + { "path": "packages/turf-intersect" }, + { "path": "packages/turf-invariant" }, + { "path": "packages/turf-isobands" }, + { "path": "packages/turf-isolines" }, + { "path": "packages/turf-kinks" }, + { "path": "packages/turf-length" }, + { "path": "packages/turf-line-arc" }, + { "path": "packages/turf-line-chunk" }, + { "path": "packages/turf-line-intersect" }, + { "path": "packages/turf-line-offset" }, + { "path": "packages/turf-line-overlap" }, + { "path": "packages/turf-line-segment" }, + { "path": "packages/turf-line-slice" }, + { "path": "packages/turf-line-slice-along" }, + { "path": "packages/turf-line-split" }, + { "path": "packages/turf-line-to-polygon" }, + { "path": "packages/turf-mask" }, + { "path": "packages/turf-meta" }, + { "path": "packages/turf-midpoint" }, + { "path": "packages/turf-moran-index" }, + { "path": "packages/turf-nearest-neighbor-analysis" }, + { "path": "packages/turf-nearest-point" }, + { "path": "packages/turf-nearest-point-on-line" }, + { "path": "packages/turf-nearest-point-to-line" }, + { "path": "packages/turf-planepoint" }, + { "path": "packages/turf-point-grid" }, + { "path": "packages/turf-point-on-feature" }, + { "path": "packages/turf-point-to-line-distance" }, + { "path": "packages/turf-point-to-polygon-distance" }, + { "path": "packages/turf-points-within-polygon" }, + { "path": "packages/turf-polygon-smooth" }, + { "path": "packages/turf-polygon-tangents" }, + { "path": "packages/turf-polygon-to-line" }, + { "path": "packages/turf-polygonize" }, + { "path": "packages/turf-projection" }, + { "path": "packages/turf-quadrat-analysis" }, + { "path": "packages/turf-random" }, + { "path": "packages/turf-rectangle-grid" }, + { "path": "packages/turf-rewind" }, + { "path": "packages/turf-rhumb-bearing" }, + { "path": "packages/turf-rhumb-destination" }, + { "path": "packages/turf-rhumb-distance" }, + { "path": "packages/turf-sample" }, + { "path": "packages/turf-sector" }, + { "path": "packages/turf-shortest-path" }, + { "path": "packages/turf-simplify" }, + { "path": "packages/turf-square" }, + { "path": "packages/turf-square-grid" }, + { "path": "packages/turf-standard-deviational-ellipse" }, + { "path": "packages/turf-tag" }, + { "path": "packages/turf-tesselate" }, + { "path": "packages/turf-tin" }, + { "path": "packages/turf-transform-rotate" }, + { "path": "packages/turf-transform-scale" }, + { "path": "packages/turf-transform-translate" }, + { "path": "packages/turf-triangle-grid" }, + { "path": "packages/turf-truncate" }, + { "path": "packages/turf-union" }, + { "path": "packages/turf-unkink-polygon" }, + { "path": "packages/turf-voronoi" }, + ], +} diff --git a/tsconfig.shared.json b/tsconfig.shared.json index 81cb45d275..8d7a615818 100644 --- a/tsconfig.shared.json +++ b/tsconfig.shared.json @@ -1,13 +1,26 @@ { + "include": [ + "${configDir}/index.ts", + "${configDir}/lib/**/*.ts", + "${configDir}/lib/**/*.js", + ], "compilerOptions": { - "target": "es2017", - "module": "node16", - "declaration": true, - "esModuleInterop": true, + "allowSyntheticDefaultImports": true, "strict": true, - "moduleResolution": "node16", - "importHelpers": true, + "erasableSyntaxOnly": true, + "esModuleInterop": true, "skipLibCheck": true, - "erasableSyntaxOnly": true - } + "forceConsistentCasingInFileNames": true, + "module": "node16", + "moduleResolution": "node16", + "resolveJsonModule": true, + "isolatedModules": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "target": "es2017", + "composite": true, + "outDir": "${configDir}/dist/esm", + "rootDir": "${configDir}", + }, } diff --git a/tsup.config.ts b/tsup.config.ts deleted file mode 100644 index 283f087732..0000000000 --- a/tsup.config.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defineConfig, type Options } from "tsup"; - -const baseOptions: Options = { - clean: true, - dts: true, - entry: ["index.?s"], // while we have a mix of TS and JS packages - minify: false, - skipNodeModulesBundle: true, - sourcemap: true, - target: "es2017", - tsconfig: "./tsconfig.json", - // treeshake: true, causes "chunk.default" warning, breaks CJS exports? - cjsInterop: true, - splitting: true, -}; - -export default [ - defineConfig({ - ...baseOptions, - outDir: "dist/cjs", - format: "cjs", - }), - defineConfig({ - ...baseOptions, - outDir: "dist/esm", - format: "esm", - }), -];