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

chore(core): partial scripts TS conversion #3353

Merged
merged 15 commits into from
Jan 17, 2024

Conversation

jakehamtexas
Copy link
Contributor

Explanation of Bugfix/Feature/Modification:
This is a partial conversion attempt for the scripts dir in the repo root. I wanted to stop before the diff got too out of control.

This accomplishes the following:

  1. Stands up ts-node dependency.
  2. Handles about half of the dir's conversions.
  3. Defines a scripts/lib dir based on some commonalities observed between all of the scripts
  4. Does some refactoring of common code between compressSrc.ts and compressDist.ts

Once this is merged, I'll work on the remaining scripts dir, and then move on to the application code.

I ran all of the scripts that I converted, they seemed to do what they had before conversion/refactoring.

Comment on lines +31 to +33
archiver.directory(file, file);
} else {
archiver.file(file, { name: file });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These lines used to omit the second argument to archive.directory and archive.file. I read the source code for the archiver package and determined that passing the same path in the second argument would yield the equivalent behavior.

Copy link
Member

@joshmadewell joshmadewell left a comment

Choose a reason for hiding this comment

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

validated these run normally on my machine, seems good! thanks!

@joshmadewell joshmadewell merged commit a9727ba into toolkit-for-ynab:main Jan 17, 2024
2 checks passed
@jakehamtexas jakehamtexas deleted the ts-conversion branch January 18, 2024 16:33
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.

None yet

2 participants