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

Use dirent.parentPath instead of deprecated .path #6172

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented Nov 15, 2024

Use dirent.parentPath instead of deprecated .path

Pull Request Type

  • Other - Build tooling fix

Description

Dirent.path was removed in this Node.js commit nodejs/node@d9540b5 it hasn't been released yet but when it does it will break this script, so I'm updating the script now already so we don't have to wonder later why the production (nightly, release etc) builds are failing.

Testing

  1. yarn run pack (don't leave out the run part, otherwise you'll just get a tar.gz npm bundle)
  2. npx prettier@2.8.8 --write --no-config dist/main.js, prettier is more forceful than other formatters which is why I used it to make the mimified file readable (prettier 3 silently fails on the command line, which is why I explicitly specified the last version of v2)
  3. Search for /static/ in dist/main.js
  4. Check that the injected paths look okay.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 2fd0170

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) November 15, 2024 23:12
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 15, 2024
@FreeTubeBot FreeTubeBot merged commit f849565 into FreeTubeApp:development Nov 17, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 17, 2024
@absidue absidue deleted the dirent-parent-path branch November 17, 2024 21:10
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
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.

5 participants