Skip to content

Commit

Permalink
Support TS node16, nodenext and bundler module resolutions (#2400)
Browse files Browse the repository at this point in the history
* Support TS node16, nodenext and bundler module resoutions

Support TypeScript node16, nodenext and bundler module resolutions.

* Fix mrl config to require exports.types

* Fix all packages to have exports.types
  • Loading branch information
evgenyt1 authored Mar 7, 2023
1 parent 4eebe7a commit 625b420
Show file tree
Hide file tree
Showing 114 changed files with 115 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .monorepolint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ module.exports = {
exports: {
"./package.json": "./package.json",
".": {
types: "./index.d.ts",
import: "./dist/es/index.js",
require: "./dist/js/index.js",
},
Expand All @@ -115,6 +116,7 @@ module.exports = {
exports: {
"./package.json": "./package.json",
".": {
types: "./index.d.ts",
import: "./dist/es/index.js",
require: "./dist/js/index.js",
},
Expand Down
1 change: 1 addition & 0 deletions packages/turf-along/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-angle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-area/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-bbox-clip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-bbox-polygon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-bbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-bearing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-bezier-spline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-clockwise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-concave/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-contains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-crosses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-disjoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-equal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-intersects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-overlap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-parallel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-point-in-polygon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-point-on-line/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-touches/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-boolean-within/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-buffer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-center-mean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-center-median/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-center-of-mass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-center/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-centroid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-clean-coords/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-clone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-clusters-dbscan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-clusters-kmeans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-clusters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-collect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-combine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-concave/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-convex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-destination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-difference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-directional-mean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-dissolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-distance-weight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-distance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-ellipse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-envelope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-explode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions packages/turf-flatten/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/js/index.js"
}
Expand Down
Loading

0 comments on commit 625b420

Please sign in to comment.