Skip to content

Commit

Permalink
Update from @std/esm to esm
Browse files Browse the repository at this point in the history
- @std/esm has been deprecated in favor of just esm, this fixes building on newer node versions.
- Moved the dependency from every package.json into the root package.json
  • Loading branch information
mfedderly committed Mar 9, 2020
1 parent 7998240 commit 657c9fa
Show file tree
Hide file tree
Showing 41 changed files with 119 additions and 309 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"documentation": "*",
"eslint": "*",
"eslint-config-mourner": "*",
"esm": "^3.2.25",
"fs-extra": "*",
"lerna": "2.8.0",
"load-json-file": "*",
Expand Down
11 changes: 3 additions & 8 deletions packages/turf-buffer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand Down Expand Up @@ -43,7 +43,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "*",
"benchmark": "*",
"load-json-file": "*",
Expand All @@ -59,9 +58,5 @@
"@turf/projection": "6.x",
"d3-geo": "1.7.1",
"turf-jsts": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-dissolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -37,7 +37,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -54,9 +53,5 @@
"@turf/union": "^5.1.5",
"geojson-rbush": "3.x",
"get-closest": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-ellipse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -37,7 +37,6 @@
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@mapbox/geojsonhint": "*",
"@std/esm": "*",
"@turf/bbox-polygon": "6.x",
"@turf/circle": "6.x",
"@turf/destination": "6.x",
Expand All @@ -54,9 +53,5 @@
"@turf/invariant": "6.x",
"@turf/rhumb-destination": "6.x",
"@turf/transform-rotate": "^5.1.5"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-envelope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -36,7 +36,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -46,9 +45,5 @@
"@turf/bbox": "6.x",
"@turf/bbox-polygon": "6.x",
"@turf/helpers": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-explode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -35,7 +35,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"geojson-fixtures": "*",
"load-json-file": "*",
Expand All @@ -46,9 +45,5 @@
"dependencies": {
"@turf/helpers": "6.x",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-flatten/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -40,7 +40,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -50,9 +49,5 @@
"dependencies": {
"@turf/helpers": "6.x",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-flip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -35,7 +35,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"benchmark": "*",
"load-json-file": "*",
"rollup": "*",
Expand All @@ -46,9 +45,5 @@
"@turf/clone": "6.x",
"@turf/helpers": "6.x",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-great-circle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -42,7 +42,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "6.x",
"benchmark": "*",
"load-json-file": "*",
Expand All @@ -53,9 +52,5 @@
"dependencies": {
"@turf/helpers": "6.x",
"@turf/invariant": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-interpolate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -37,7 +37,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "6.x",
"benchmark": "*",
"chromatism": "*",
Expand All @@ -58,9 +57,5 @@
"@turf/point-grid": "6.x",
"@turf/square-grid": "^5.1.5",
"@turf/triangle-grid": "^5.1.5"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-isobands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -42,7 +42,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/envelope": "^5.1.5",
"@turf/point-grid": "6.x",
"@turf/random": "6.x",
Expand All @@ -65,9 +64,5 @@
"@turf/invariant": "6.x",
"@turf/meta": "6.x",
"object-assign": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
9 changes: 2 additions & 7 deletions packages/turf-isolines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -40,7 +40,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "0.21.x",
"@turf/envelope": "^5.1.5",
"@turf/point-grid": "6.x",
"@turf/random": "6.x",
Expand All @@ -59,9 +58,5 @@
"@turf/invariant": "6.x",
"@turf/meta": "6.x",
"object-assign": "*"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
11 changes: 3 additions & 8 deletions packages/turf-line-chunk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"test": "node -r esm test.js",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r esm bench.js",
"docs": "node ../../scripts/generate-readmes"
},
"repository": {
Expand All @@ -42,7 +42,6 @@
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@std/esm": "*",
"@turf/truncate": "6.x",
"benchmark": "*",
"load-json-file": "*",
Expand All @@ -55,9 +54,5 @@
"@turf/length": "6.x",
"@turf/line-slice-along": "^5.1.5",
"@turf/meta": "6.x"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
}
Loading

0 comments on commit 657c9fa

Please sign in to comment.