Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ts-node with tsx in doc and test related build scripts #2489

Merged
merged 4 commits into from
Sep 11, 2023

Conversation

smallsaucepan
Copy link
Member

This PR replaces ts-node with tsx in doc generation and test scripts wherever possible to allow us more flexible use of third party libraries.

Background: as part of working on issue #1726 and associated PR #2476 I ran in to some problems where ts-node fell over trying to run the turf unit tests. A third party library we would like to use introduced import mechanisms that ts-node wasn't coping with when running tests. This seems to be related to mixing CJS / ESM imports.

Note that the turf library itself was building fine - just the tests were failing.

Once this PR is merged it will clear the way for PR #2476 to progress.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Have read How To Contribute.
  • Run npm test at the sub modules where changes have occurred.
  • Run npm run lint to ensure code style at the turf module level.

Submitting a new TurfJS Module.
n/a

package.json Show resolved Hide resolved
@mfedderly mfedderly merged commit 4469661 into Turfjs:master Sep 11, 2023
3 checks passed
@smallsaucepan smallsaucepan deleted the replace-tsnode-with-tsx branch September 11, 2023 03:06
smallsaucepan added a commit to smallsaucepan/turf that referenced this pull request Sep 14, 2023
…meaning we can use import rather than require. Tightened up distance module function names and their optional parameters as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants