Skip to content

Conversation

@pieh
Copy link
Contributor

@pieh pieh commented Aug 5, 2025

Description

gatsbyjs/devcert@7085e48 is what is different, those @types/* deps being in deps, are being installed when gatsby is installed and they contain * version selectors sometimes pulling latest of packages that might not be compatible with node 18 that is still min version and needs to keep working

https://github.com/expo/devcert seems to be maintained fork, so instead of using our own, let's use this one

This also drops some test helper packages with similar problems and just use builtins

Documentation

Tests

Related Issues

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 5, 2025
@pieh pieh removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 5, 2025
@pieh pieh force-pushed the fix/indirect-devcert-deps-requiring-node-20 branch from cdeeb46 to 06d79aa Compare August 5, 2025 18:43
@pieh pieh force-pushed the fix/indirect-devcert-deps-requiring-node-20 branch from ce44fd0 to 32f56c8 Compare August 6, 2025 14:54
Comment on lines +60 to +64

const dotCachePath = path.join(process.cwd(), `.cache`)
fs.mkdirpSync(dotCachePath)
const tmpFileName = tmp.tmpNameSync({
tmpdir: path.join(process.cwd(), `.cache`),
tmpdir: dotCachePath,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raszi/node-tmp@1cf4ec5#diff-1cf97fc30a5d84b74b60007e190ead611730d702c2dd9d353586dfa16862bb5dR29-R486 this change that was recently released in tmp package make it so provided tmpdir need to exist, while previous patch version of package didn't need that

so instead of pinning, I just ensure dir exist

@pieh pieh marked this pull request as ready for review August 6, 2025 15:29
@pieh pieh changed the title fix: use forked devcert to avoid pulling transitive deps from its @types/* deps fix: use forked devcert to avoid pulling transitive deps from its @types/* deps, handle change in tmp package Aug 6, 2025
Copy link
Member

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pieh pieh merged commit 4b1be67 into master Aug 6, 2025
36 of 38 checks passed
@pieh pieh deleted the fix/indirect-devcert-deps-requiring-node-20 branch August 6, 2025 15:47
pieh added a commit that referenced this pull request Aug 6, 2025
…pes/* deps, handle change in tmp package (#39343)

* fix: use forked devcert to avoid pulling transitive deps from its @types/* deps

* chore: remove cpy from structured-logging test

* chore: remove del-cli from cli test

* chore: use gatsbyjs fork and not private one

* chore: use @expo/devcert as it is being maintained

* fix: create .cache directory before trying to create temp file in it

(cherry picked from commit 4b1be67)
pieh added a commit that referenced this pull request Aug 6, 2025
…pes/* deps, handle change in tmp package (#39343) (#39345)

* fix: use forked devcert to avoid pulling transitive deps from its @types/* deps

* chore: remove cpy from structured-logging test

* chore: remove del-cli from cli test

* chore: use gatsbyjs fork and not private one

* chore: use @expo/devcert as it is being maintained

* fix: create .cache directory before trying to create temp file in it

(cherry picked from commit 4b1be67)

Co-authored-by: Michal Piechowiak <[email protected]>
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.

3 participants