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

🛠 Tooling: Refactor imageSize to properly use Bingo Inputs #1993

Open
3 tasks done
JoshuaKGoldberg opened this issue Mar 18, 2025 · 0 comments
Open
3 tasks done

🛠 Tooling: Refactor imageSize to properly use Bingo Inputs #1993

JoshuaKGoldberg opened this issue Mar 18, 2025 · 0 comments
Labels
area: tooling Managing the repository's maintenance status: in discussion Not yet ready for implementation or a pull request

Comments

@JoshuaKGoldberg
Copy link
Owner

Tooling Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

Right now in CTA, image-size is used to get the size of a logo image on disk:

This is one of the last pieces of Base options getting that doesn't use take the proper way. Which makes it a bit harder to test internally.

Putting in status: in discussion to see if there's a good way to, say, have it use Bingo's plumbing for file system access. Which is tricky, as imageSize takes in a file path or buffer data, while bingo-fs only deals in strings...

Additional Info

I really don't want to complicate bingo-fs with binary/buffer data concepts 😬. It's really nice having everything just be strings...

🎁

@JoshuaKGoldberg JoshuaKGoldberg added area: tooling Managing the repository's maintenance status: in discussion Not yet ready for implementation or a pull request labels Mar 18, 2025
JoshuaKGoldberg added a commit that referenced this issue Mar 18, 2025
…#1994)

## PR Checklist

- [x] Addresses an existing open issue: fixes #1987
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md)
were taken

## Overview

Cleans up some pending code TODOs:

* Bumping `@vitest/eslint-plugin` to include
vitest-dev/eslint-plugin-vitest#682
* Refactors `retGitDefaults` to execute a straightforward `git remote
get-url origin` instead of the full `git-remote-origin-url`
* Uses [`sort-keys`](http://npmjs.com/package/sort-keys) instead of the
ad-hoc internal `sortKeys`
* Uses [`zod-package-json`](http://npmjs.com/package/zod-package-json)
instead of a manually written schema

Otherwise doesn't change behavior, instead adding links to:

* #1990
* #1991
* #1992
* #1993

🎁
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tooling Managing the repository's maintenance status: in discussion Not yet ready for implementation or a pull request
Projects
None yet
Development

No branches or pull requests

1 participant