* Moving to pnpm as package manager. Also taking the opportunity to tidy up our cjs / esm situation using tsup (instead of tsc and rollup). Can't get monorepolint to work with new setup so disabling for the time being.
* Changing all Turf imports to use named imports. Adding a few missing named exports. Updating github workflow actions to pnpm instead of yarn.
* Updating typescript module and moduleResolution mechanisms to "node16". Not tracking nodenext just yet. Changing tsup command to generate d.ts files that arethetypeswrong approves of.
* Tweaking github workflows to explicitely install pnpm.
* Looks like node needs the chosen cache binary installed first. Trying without cache as a first step.
* Seem to be hitting the tsx bug described here: https://github.com/privatenumber/tsx/issues/421 Upgrading to latest tsx to remedy.
* Forgot to update lock file after updating tsx dep in package.json files.
* Sorting modules exported from @turf/turf alphabetically. Preparatory commit to add unexported modules.
* Converting index.mjs to typescript, and simplifying re-exported imports, and ordering alphabetically. Added in a couple of packages - convex, booleanValid and nearestNeighbourAnalysis. Rollup now only used in packages/turf so merging project root base config into there. Also now only using rollup in packages/turf to do final conversion to web module. JS and d.ts files generated the same as other modules, using tsup.
* Including tslib in @turf/turf build now that it's a TS module.
* Lot of per-package tsconfig items now on the tsup command line, so stripping back tsconfig.json to the bare minimum. Adding tsconfig.json to packages that while still only JS, are now processed by tsup.
* Same as last commit - simplifying tsconfig.json - except these are the subset of packages that had multiple entry points e.g. 3rd party code hosted locally in lib/
* Incorporating some suggestions from @favna on being more explicit with d.ts entries. https://github.com/Turfjs/turf/issues/2307#issuecomment-1858653048 Specifying overall module type as commonjs explicitly.
* Reapplying cjsInterop / splitting workaround for CJS exports that we had on build target command line earlier in this PR in to tsup config file. Also disabling treeshaking as this was generating a warning for CJS files and causing the workaround above to not work.
* Upgrading rollup and related plugins. Updating to recommended modern browserslist config in babel.config.json e.g. previous chrome 67 and edge 17 are 5 years old, ie11 is just ... ugh
* Fluffed the browserslist config - need to cover es5 as well.
* Update .github/workflows/turf.yml to use actions/checkout v4.
Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
---------
Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
* Upgrading to newest @types/node for the typescript version we currently use (3.8.3). https://www.npmjs.com/package/@types/node?activeTab=versions
* Big update to lerna to address security vulnerabilities. bootstrap command no longer required. Seems to build and test ok. May need some tweaking. Will add build caching at a later date.
* Updating documentation (the NPM library) to address security vulnerabilities. Had to wrap body of script so as be async, though otherwise unchanged.
* Updating es-check to address security vulnerabilities.
* Updating tape library to address security vulnerabilities.
* Add lerna caching (via nx). Simplistic setup so will need some tweaking. Remove redundant packages setting from lerna.json (will default to packages setting in package.json instead). Have to add --npm-path to all npm-run-all calls so that lerna doesn't accidentally end up being used as the npm binary. https://github.com/mysticatea/npm-run-all/issues/218 and https://github.com/lerna/lerna/issues/1842 have more details.
* Missed a couple of carats in package.json dependency specs.
* Also need to commit a new yarn.lock file to reflect version spec changes in previous commit.
---------
Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
* (huge) changelog
* v7.0.0-alpha.0
* Update yarn.lock to handle the fact that our dependencies take dependencies on turf itself
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
* Update changelog for 6.2.0-alpha.3 changes
* Update changelog
* v6.2.0-alpha.3
* v6.2.0-alpha.3
* Looks like prettier and lerna are fighting, let lerna win.
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>
- Set lerna publish registry
- Force publishConfig.access to be public so new packages will publish
Co-authored-by: Matt Fedderly <mfedderly@palantir.com>