npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ember-codemod-add-component-signatures

v5.6.0

Published

Codemod to add component signatures

Readme

This project uses GitHub Actions for continuous integration.

ember-codemod-add-component-signatures

Codemod to add component signatures

What is it?

To introduce Glint, you will need to write the signature and template registry for each component. This can be an error-prone, onerous task for large projects.

You can run this codemod to get started.

Features

  • Scaffolds signature for components
  • Adds template registry for components (Glint v1)
  • Supports <template> tag (Glint v2)

Usage

Step 1. Quickly migrate.1

cd <path/to/your/project>
pnpx ember-codemod-add-component-signatures <arguments>

Step 2. Review the package.

  • [x] Fill in missing type information.
  • [x] Confirm that you can run all scripts in package.json.

For more information, please check the FAQ.

1. The codemod assumes that your apps and addons follow the Octane layout (flat or nested). If not, you can run codemods to move away from classic and pod.

Arguments

By default, the codemod considers all files and folders for components, routes, and tests. Pass --entity to limit the search to 1 entity and its sub-entities (if any). You may use curly braces to specify multiple entities.

# `ui/form` only
pnpx ember-codemod-add-component-signatures --entity ui/form

By default, an Octane project has the flat component structure. Pass --component-structure to indicate otherwise.

pnpx ember-codemod-add-component-signatures --component-structure nested

By default, the codemod ignores component classes written in *.{js,gjs}. Pass --convert-javascript to allow the codemod to change the file extension to *.{ts,gts} and add the component signature.

pnpx ember-codemod-add-component-signatures --convert-javascript

By default, the codemod doesn't add registries to component classes, because these registries are unnecessary for Glint v2 (strict mode templates). Pass --create-registries if you use Glint v1 (loose mode templates).

pnpx ember-codemod-add-component-signatures --create-registries

Pass --root to run the codemod on a project somewhere else (i.e. not in the current directory).

pnpx ember-codemod-add-component-signatures --root <path/to/your/project>

Limitations

The codemod is designed to cover typical cases. It is not designed to cover one-off cases. (Classic components are not supported.)

To better meet your needs, consider cloning the repo and running the codemod locally.

cd <path/to/cloned/repo>

# Compile TypeScript
pnpm build

# Run codemod
./dist/bin/ember-codemod-add-component-signatures.js --root <path/to/your/project>

Compatibility

  • Node.js v22 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.