* MRL configuration changes to replace ts-node with tsx, a more robust TS runtime. Will run MRL --fix and commit per-package changes next.
* JS projects can also rely on tsx to run scripts that used to be run by node.
* Need to keep ts-node around (at the monorepo level at least) for monorepolint.
* Almost entirely MRL automatic fixes for tsx dev dependencies, bench, doc, and test:tape. Hand edited last-checks scripts in packages/turf/
* Fix generate-readmes script to work with typescript packages
* auto generated changes from generate-readmes and new documentationjs version
* Update husky to enforce docs builds at commit time
* migrate to geojson types package
* strip geojson further
* migrate geojson type imports
* migrate more geojson type imports
* bump to geojson-rbush 3.2.0 and add line-overlap fix
* few more type migrations
* migrate to new internal es5 @turf/geojson-rbush
* migrate buffer to geojson types
* fix convertLength import
* Move @turf/polygonize to typescript instead of its own custom rollup
* validate-es5-dependencies -> es-check
* @turf/buffer const -> var
* polygon-clipping dependency from 0.14.3 -> 0.15.2 to swap es6 code for es5 code
* @turf/turf - Change rollup config to better support tree shaking, remove buble reference
* Remove deprecated exports from @turf/helpers, they are still covered in @turf/turf:
- radians2degrees
- degrees2radians
- distanceToDegrees
- distanceToRadians
- radiansToDistance
- bearingToAngle
- convertDistance
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
* Configure ESlint and Prettier
- Disable all eslint rules that trigger
- Build's lint step now runs monorepoint, prettier, and eslint
- Remove all tslint references
* [auto] run prettier on everything
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
- No longer have bench and test call prepare explicitly
- bench.js, test.js, types.ts all use the local copy of the code, not the built copy
- Fixed quite a few bench.js files that were just broken
- Rework root package.json for build clarity
- Change prepare scripts to build so that they don't run on publish
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
Co-authored-by: Rowan Winsemius <rowanwins@yahoo.com.au>
Configure monorepolint
- Monorepolint lets us easily manage all of our subpackages declaratively
- Husky installs commit hooks to prevent invalid commits from even merging
- lint-staged gives us rules for custom linting depending on what files changed
- Alphabetize the package.json scripts
- Change travis node version from 9->12 to get to a supported version
- Bump all of the typescript dependencies to the latest, fixes a build error with some types in our dependencies being 3.x dependent.
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
* Standardize on a single tsconfig
* Standardize tsconfig output
- Move output of es5 code into dist/js (leaves room for dist/es for modules)
- Update references from ./index over to ./dist/js/index.js
- Seems like this will publish types for several new packages
- A few packages needed to be slightly modified to publish correctly to dist
- Small fixes to @turf/turf due to the file path changes
- Note: not currently using types.ts for testing (next commit)
* Re-enable testing using types.ts in packages where that exists
* Run packages/turf tests after everything else has built
* Enforce tsc before bench
* nearest-neighbor-analysis test updates from rowanwins
- @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