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

@toss/tds-migration

v0.0.2

Published

TDS migration CLI tool for @toss-design-system/* to @toss/tds-*

Readme

@toss/tds-migration

@toss-design-system/* 패키지를 @toss/tds-*로 마이그레이션하기 위한 CLI 도구입니다.

설치

pnpm add -D @toss/tds-migration

사용법

Import Path 마이그레이션

TypeScript/TSX 파일의 import path를 변환합니다.

# 기본 사용법
npx tds-migrate imports

# 특정 경로 지정
npx tds-migrate imports --path "src/**/*.{ts,tsx}"

# tsconfig 경로 지정
npx tds-migrate imports --tsconfig tsconfig.json

# dry-run (변경 미리보기)
npx tds-migrate imports --dry-run

변환 예시

// Before
import { colors } from '@toss-design-system/colors';
import { flex, spacing } from '@toss-design-system/css-utils';
import { TDSMobile } from '@toss-design-system/mobile';

// After
import { colors } from '@toss/tds-colors';
import { flex, spacing } from '@toss/tds-css-utils';
import { TDSMobile } from '@toss/tds-mobile';

Package.json Dependencies 마이그레이션

package.json의 dependencies를 변환하고 버전을 업데이트합니다.

# 기본 사용법
npx tds-migrate deps

# 특정 경로 지정
npx tds-migrate deps --path "packages/**/package.json"

# dry-run (변경 미리보기)
npx tds-migrate deps --dry-run

변환 예시

// Before
{
  "dependencies": {
    "@toss-design-system/colors": "0.1.0",
    "@toss-design-system/mobile": "2.1.0"
  }
}

// After
{
  "dependencies": {
    "@toss/tds-colors": "^0",
    "@toss/tds-mobile": "^2"
  }
}

전체 마이그레이션

import path와 package.json dependencies를 모두 마이그레이션합니다.

# 기본 사용법
npx tds-migrate all

# 특정 경로 지정
npx tds-migrate all --path "./src"

# dry-run
npx tds-migrate all --dry-run

옵션

| 옵션 | 설명 | 기본값 | |------|------|--------| | -p, --path <path> | 마이그레이션 대상 경로 (glob 패턴) | **/*.{ts,tsx} / **/package.json | | --tsconfig <path> | tsconfig.json 경로 | tsconfig.json | | --dry-run | 변경 없이 미리보기만 | false |

마이그레이션 매핑

| From | To | Version | |------|-----|---------| | @toss-design-system/colors | @toss/tds-colors | ^0 | | @toss-design-system/css-utils | @toss/tds-css-utils | ^0 | | @toss-design-system/typography | @toss/tds-typography | ^0 | | @toss-design-system/color-utils | @toss/tds-color-utils | ^0 | | @toss-design-system/spring-easing | @toss/tds-spring-easing | ^0 | | @toss-design-system/easings | @toss/tds-easings | ^0 | | @toss-design-system/react-native | @toss/tds-react-native | ^1 | | @toss-design-system/mobile | @toss/tds-mobile | ^2 | | @toss-design-system/mobile-bedrock | @toss/tds-mobile-ait | ^1 | | @toss-design-system/mobile-migration | @toss/tds-mobile-migration | ^2 |

Programmatic API

CLI 외에 프로그래밍 방식으로도 사용할 수 있습니다.

import {
  migrateImportDeclarations,
  migratePackageJsonFile,
  MIGRATION_MAP
} from '@toss/tds-migration';
import { Project } from 'ts-morph';

// Import 마이그레이션
const project = new Project();
const sourceFile = project.addSourceFileAtPath('src/index.ts');
const changes = migrateImportDeclarations(sourceFile);
sourceFile.saveSync();

// Package.json 마이그레이션
const result = migratePackageJsonFile('package.json');
console.log(result.changedPackages);