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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@twiceme-technology/api-types

v2.9.1

Published

Shared API types and schemas for Twiceme-API

Downloads

1,991

Readme

API Types Package Management Guide

📚 Table of Contents

  1. Local Development
  2. Publishing a New Version
  3. Using the Package
  4. Troubleshooting

🛠 Local Development

When developing locally and testing changes to this package in a consuming project, follow these steps:

1. Link the Package Locally

In the consuming project's package.json, change the package version to the local file path. For example:

{
  "dependencies": {
    "@twiceme-technology/api-types": "file:../api-types"
  }
}

2. Apply Changes

To apply changes made in the package to your consuming project:

  1. Build the package:

    cd ../api-types
    yarn build
  2. Reinstall the package in your project:

    cd ../twiceme-api
    yarn install --force

The --force flag ensures that the package is reinstalled from the local directory, applying any changes you've made.

🚀 Publishing a New Version

Follow these steps each time you want to publish a new version of the package.

1. Prepare for Release

⚠️ IMPORTANT: All changes must be on the main branch before release!

  • Ensure all desired changes for this release are merged into the main branch
  • Pull the latest changes from the main branch to your local repository:
git checkout main
git pull origin main

2. Update Version in package.json

a. Create a Feature Branch

  • Create and switch to a new branch for your changes

b. Update Version in package.json field following semantic versioning:

  • Patch version for bug fixes (e.g., 1.0.1 to 1.0.2)
  • Minor version for new features (e.g., 1.0.0 to 1.1.0)
  • Major version for breaking changes (e.g., 1.0.0 to 2.0.0)

💡 Tip: Use yarn version to automatically update the version:

  • yarn version --patch
  • yarn version --minor
  • yarn version --major

3. Create and Merge your Pull Request

  • Push your branch and create a PR to merge into main
  • Get necessary approvals and merge the PR

4. Create a GitHub Release

  • Go to your repository on GitHub → Releases
  • Click "Create a new release"
  • Choose a tag version matching your package.json version (e.g., v1.0.1)
  • Ensure the target branch is set to main
  • Set a release title and description
  • Click "Publish release"

The GitHub Action will automatically publish your package with the new version using the code from the main branch.

📦 Using the Package

To use the published package in other projects:

  1. Install the package:

    yarn add @twiceme-technology/api-types
  2. Update the version of the package in package.json to use the latest release in other projects.

🔍 Troubleshooting

  • Publish Failed? Check the Actions tab in GitHub for error logs
  • Version Conflict? Make sure your package.json version and GitHub release tag match
  • Wrong Code Published? Ensure all changes were merged to main before creating the release