Skip to content

💡 Detect create-typescript-app from create-typescript-app.config.js #1016

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggest an idea for Knip

https://github.com/JoshuaKGoldberg/create-typescript-app now supports an optional create-typescript-app.config.js config file. Example here: https://github.com/JoshuaKGoldberg/github-sponsors-to-markdown/pull/749/files#diff-0a58614224d2fb069bf0ef946b864a49635ec6736bf313bf6bf619bf59e6f387

// create-typescript-app.config.js
import { createConfig } from "create-typescript-app";

export default createConfig({
  // ...
});

This is a separate piece of dev tooling from the repo itself, so although create-typescript-app is listed as a package.json devDependency, the package doesn't show up anywhere else in the repo. That makes Knip think it's unused:

$ pnpm lint:knip

> [email protected] lint:knip /Users/josh/repos/github-sponsors-to-markdown
> knip

Unused devDependencies (1)
create-typescript-app  package.json:51:4

Would it be possible to add a plugin for CTA? I'd be happy to send a PR 🙂 Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions