Skip to content

Make last-checks tests less strict about @turf/helpers devDependencies#3105

Merged
mfedderly merged 1 commit into
masterfrom
mf/less-strict-helpers-last-check
Jul 22, 2026
Merged

Make last-checks tests less strict about @turf/helpers devDependencies#3105
mfedderly merged 1 commit into
masterfrom
mf/less-strict-helpers-last-check

Conversation

@mfedderly

Copy link
Copy Markdown
Collaborator

It is possible to have a Turf module that only uses @turf/helpers in dev code (#3011). This loosens the check in last-checks to allow helpers to be a devDependency only if it is not used in code that winds up in the dist.

The check itself is a little sloppy (we check cjs for import statements, and we check using just raw string operations instead of parsing). In v8 we will only be shipping esm code though, and this is just a CI-time issue so we can always re-work the check later if we really need to move to a proper parser.

It is possible to have a Turf module that only uses @turf/helpers in dev code (#3011).
This loosens the check in last-checks to allow helpers to be a devDependency only if
it is not used in code that winds up in the dist.

The check itself is a little sloppy (we check cjs for import statements, and
we check using just raw string operations instead of parsing). In v8 we will
only be shipping esm code though, and this is just a CI-time issue so we can always
re-work the check later if we really need to move to a proper parser.
@mfedderly mfedderly added this to the v7.4 milestone Jul 22, 2026
@mfedderly
mfedderly merged commit 3a04c3a into master Jul 22, 2026
5 checks passed
@mfedderly
mfedderly deleted the mf/less-strict-helpers-last-check branch July 22, 2026 15:45
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.

1 participant