-
Notifications
You must be signed in to change notification settings - Fork 10.3k
fix: use forked devcert to avoid pulling transitive deps from its @types/* deps, handle change in tmp package #39343
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
Conversation
cdeeb46 to
06d79aa
Compare
ce44fd0 to
32f56c8
Compare
|
|
||
| const dotCachePath = path.join(process.cwd(), `.cache`) | ||
| fs.mkdirpSync(dotCachePath) | ||
| const tmpFileName = tmp.tmpNameSync({ | ||
| tmpdir: path.join(process.cwd(), `.cache`), | ||
| tmpdir: dotCachePath, |
There was a problem hiding this comment.
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
serhalp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…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)
…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]>
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 workinghttps://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